Welcome Guest, Not a member yet? Register   Sign In
autocontrollers
#4

[eluser]pickupman[/eluser]
Ah...I haven't tried it but it seems if you code it in the same ways as some of the core class this maybe possible. It would seem if you create a master controller with
Code:
if(!method_exists('some_method'){
   function some_method(){
     //Do stuff here
   }
}

Then when you create a parent controller, then child class can extend it. Take at look at this [url="http://www.philsturgeon.co.uk/news/2010/02/CodeIgniter-Base-Classes-Keeping-it-DRY"]post[/url]. This might be on the track to take it to the next step for you.


Messages In This Thread
autocontrollers - by El Forum - 06-09-2010, 05:51 AM
autocontrollers - by El Forum - 06-09-2010, 03:53 PM
autocontrollers - by El Forum - 06-10-2010, 05:03 AM
autocontrollers - by El Forum - 06-10-2010, 06:09 AM
autocontrollers - by El Forum - 06-11-2010, 06:12 AM
autocontrollers - by El Forum - 06-11-2010, 08:37 AM
autocontrollers - by El Forum - 06-15-2010, 04:40 AM
autocontrollers - by El Forum - 06-15-2010, 05:31 AM
autocontrollers - by El Forum - 06-16-2010, 01:17 AM
autocontrollers - by El Forum - 06-16-2010, 06:47 AM
autocontrollers - by El Forum - 06-17-2010, 01:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB