I have a class like,
class test
{
public function index()
{
}
public function home()
{
}
}
but when i call my class like,
$test = new test();
It will execute the default function index(), my question is how can i call the function home() and ignore the function index()?
I tried to call the function after making the object of class like $test->home() but it still call the index() first and then call the home().
A little help or direction will be appreciated,
Thanks, Ali