extending own class |
[eluser]samitrimal[/eluser]
Hi , I need to extend the class like this it shows error: Myclass extends Controller{ } how to extend the class like this NewClass extends Myclass{ }
[eluser]James McMurray[/eluser]
That looks right. What is the error you're getting? Perhaps it can't find Controller?
[eluser]Buso[/eluser]
codeigniter does not support base classes nativelly, you have to extend Controller with a library named MY_Controller, and use that. another option is 'hacking' the config file and add spl_autoload definitions http://www.php.net/manual/en/function.sp...gister.php
|
Welcome Guest, Not a member yet? Register Sign In |