• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need to extend App_Controller

#2
[eluser]Ckirk[/eluser]
Any reason why you aren't using the built in method of extending core classes?

if you create a file in application/core called "MY_Controller" with the following:
Code:
<?php
class MY_Controller extends CI_Controller{
    function __construct(){
     parent::__construct();
    }
    // Your code
}

using your example you'd use that controller like so:
Code:
class Front_Controller extends MY_Controller {
// my code here
}

see the manual for more info: http://ellislab.com/codeigniter/user-gui...asses.html



Messages In This Thread
Need to extend App_Controller - by El Forum - 09-29-2013, 09:51 AM
Need to extend App_Controller - by El Forum - 09-29-2013, 05:52 PM
Need to extend App_Controller - by El Forum - 09-30-2013, 02:39 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.