PHP - CodeIgniter - New Controller


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2.  
  3. class extends CI_Controller {
  4.  
  5. /**
  6.   * Loads models, configs, helpers, and the Zend Framework
  7.   */
  8. public function __construct()
  9. {
  10. /**
  11.   * CodeIgniter requires the parent constructor to be called
  12.   */
  13. parent::__construct();
  14.  
  15. }
  16. }
  17.  
  18. /* End of file */
  19. /* Location: ./application/controllers/ */

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.