I’m newbie at PHP OOP please patient to teach me.
With the code below, the page will call “index” method to be shown.
And the “index” method wants to call from another method (getView).
How to correct the code method of “index”.
Please help.
Thank you!
class Report {
public function index(){
$over = $this->overview;
return $over;
}
public function getView()
{
$overview = 'I want this show up at index';
return $overview;
}
}
Advertisements