|Trying to understand the framework structure/inheritance [message #96996]
||Thu, 08 April 2010 23:35
Registered: April 2010
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:
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.
[Updated on: Thu, 08 April 2010 23:50]