New to symfony and mvc framework here.
I am doing the jobeet tutorial and just trying to figure out the code structure and inheritance and my question is in this code:
- Code: Select all
class jobActions extends sfActions
public function executeShow(sfWebRequest $request)
$this->job = $this->getRoute()->getObject();
I am trying to figure out how was symfony able to find the option to use or access the getObject() method of the sfObjectRoute class since when I looked at the sfAction::getRoute() method I cant find any instance of sfObjectRoute class where getObject() belongs nor when I look at the structure of sfAction I cant find any instance of sfObjectRoute?
I am probably over thinking this but from a new users point of view, when I look at the documentation I would have no idea that I can use the getObject() method when I use getRoute().
Thanks for the help and enlightening me.