How does CodeIgniter handle nested transactions?

  • CodeIgniter doesn't support nested transactions.
  • CodeIgniter handles nested transactions by using the 'trans_begin()' and 'trans_complete()' functions.
  • CodeIgniter supports nested transactions through the use of savepoints.
  • CodeIgniter uses database triggers for nested transactions.
CodeIgniter supports nested transactions using savepoints. Savepoints allow you to create intermediate points within a transaction, providing a way to roll back to specific points if needed. This is useful for complex transactions where you want more granular control over the rollback process.

A developer needs to ensure session data is available only during the current browser session. This can be achieved by setting ________ in CodeIgniter's session configuration.

  • session_destroy_on_exit
  • session_expire_on_close
  • session_regenerate_on_close
  • session_renew_on_reload
To ensure session data is available only during the current browser session in CodeIgniter, set the session_expire_on_close configuration. This causes the session to expire when the browser is closed.

How can you enable profiling in a CodeIgniter application?

  • $config['enable_profiler'] = TRUE;
  • $config['enable_profiler'] = FALSE;
  • $this->config->set_item('enable_profiler', TRUE);
  • $this->config->set_item('enable_profiler', FALSE);
In CodeIgniter, enabling profiling is done by setting the enable_profiler configuration option to TRUE. It provides a detailed report of the execution of your application, helping in performance analysis.

An application allows users to share their achievements directly to their social media accounts. This feature primarily utilizes the ________ of the social media platform's API.

  • Authentication
  • Webhooks
  • Endpoints
  • Authorization
The correct option is "Authorization." When sharing achievements on social media, the application needs to access the user's account without exposing credentials. Authorization ensures that the app has the necessary permissions to post on the user's behalf.

The ________ in MVC serves as the application's brain, containing logic and decision-making capabilities.

  • Controller
  • Model
  • Router
  • View
In the MVC architecture, the Controller acts as the application's brain, handling user input, processing logic, and making decisions based on the input. It plays a crucial role in controlling the flow of the application.

Advanced usage of the Email Class involves ________ to ensure high deliverability rates.

  • Email Blacklisting
  • Email List Segmentation
  • Email Throttling
  • SPF and DKIM Configuration
Advanced usage of the Email Class involves configuring SPF (Sender Policy Framework) and DKIM (DomainKeys Identified Mail) to authenticate emails. This, in turn, helps improve deliverability rates by establishing trust with email service providers and reducing the likelihood of emails being marked as spam.

Which CodeIgniter method checks whether the current database platform supports transactions?

  • $this->db->check_transactions();
  • $this->db->supports_transactions();
  • $this->db->trans_status();
  • $this->db->trans_supported();
The method $this->db->supports_transactions(); checks whether the current database platform supports transactions in CodeIgniter. It returns a boolean value indicating transaction support.

When a user encounters a non-existent page, redirecting them to a custom error page is handled by ________ in CodeIgniter.

  • 404_override Route
  • Controller __construct() method
  • Error Handling Class
  • Routes Configuration
The 404_override route in CodeIgniter allows developers to specify a custom controller/method to handle 404 (page not found) errors. It provides a way to redirect users to a custom error page when a non-existent page is encountered.

The use of ________ in payment gateways helps in managing recurring payments efficiently.

  • Authentication
  • Encryption
  • Secure Protocols
  • Tokenization
Tokenization is a crucial feature in payment gateways for managing recurring payments efficiently. It involves replacing sensitive payment information with a unique token, enhancing security and simplifying the process of handling recurring transactions without exposing confidential data.

In CodeIgniter, the use of ________ headers can help prevent Clickjacking attacks.

  • X-Frame-Options
  • X-Content-Type-Options
  • Strict-Transport-Security
  • Content-Security-Policy
CodeIgniter recommends setting the X-Frame-Options header to prevent Clickjacking attacks. This header controls whether a browser should be allowed to render a page in a frame or iframe, adding a security layer against UI redressing attacks.