Re: {CodeIgniter Kenya} Digest for codeigniter-kenya@googlegroups.com - 2 Messages in 1 Topic

12 views
Skip to first unread message

Nd'wex Common

unread,
Oct 7, 2011, 3:40:32 AM10/7/11
to codeigni...@googlegroups.com
Create a controller that extends the base controller then in you application use it instead of the CI_Controller

class MY_Controller extends CI_Controller {
   //code comes here thats universal rather all other controllers will work with especially your data handling objects
   //this file will be saved in core folder (CI version 2.x)
}

In your ordinary controller
class Myaccount extends My_Controller {
   //Your methods come here.
   //Note the controller being extended
}

Hope that was helpful
Reply all
Reply to author
Forward
0 new messages