PHP Code:class Login
{
function Login()
{
// Do stuff here
}
}
PHP Code:class System extends Login
{
function System()
{
$this->Login() // <- What I do now
// Do stuff here
}
}
So my basic question is, is there a method I can use to get it to run the Login() constructor and System() constructor automaticall when calling SomePage()? Or do I have to stick with my current method?PHP Code:class SomePage extends System
{
function SomePage()
{
$this->System() // <- What I do now
// Do stuff here
}
}







Bookmarks