PHP: require_once and inheritance

Buckshot

New Member
If I have:\[code\]<?phprequire_once("bla.php");class controller{.....}php>\[/code\]If I then create in a different file \[code\]class control_A extends controller{...}\[/code\], do I need to again say \[code\]require_once("bla.php");\[/code\], or is it inherited?What if the \[code\]require_once\[/code\] is done inside the \[code\]class controller\[/code\] definition?Thanks!JDelage
 
Back
Top