Welcome Guest, Not a member yet? Register   Sign In
extending own class
#1

[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{
}
#2

[eluser]James McMurray[/eluser]
That looks right. What is the error you're getting? Perhaps it can't find Controller?
#3

[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
#4

[eluser]harly[/eluser]
what
#5

[eluser]harly[/eluser]
Testing Forum




Theme © iAndrew 2016 - Forum software by © MyBB