Trying to understand the framework structure/inheritance

About symfony tutorials, symfony book and API documentation.

Moderators: dwhittle, Ian

Trying to understand the framework structure/inheritance

Postby kelmadics » Thu Apr 08, 2010 11:35 pm

Hello all,

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.
Last edited by kelmadics on Thu Apr 08, 2010 11:50 pm, edited 1 time in total.
kelmadics
Junior Member
 
Posts: 1
Joined: Thu Apr 08, 2010 8:58 pm

Return to Documentation

Who is online

Users browsing this forum: No registered users and 1 guest