From: Tim G. <tgr...@gm...> - 2008-10-14 14:59:23
|
The symfony sfView and sfController classes are responsible for rendering the newSuccess view, storing the results as $content, and then injecting that back into the page layout. To understand the basics of how the actions are called and the views are rendered, I highly recommend reading the relevant chapters of the symfony book: http://www.symfony-project.org/book/1_0/06-Inside-the-Controller-Layer http://www.symfony-project.org/book/1_0/07-Inside-the-View-Layer If you just want to add some fields to each entity the process is detailed here: http://wiserplatform.org/documentation/index.php?title=Adding_fields_to_an_entity Tim. On Mon, Oct 13, 2008 at 6:19 PM, Justin Tilson <jus...@gm...>wrote: > I'm trying to familiarize myself with how the entity pages are assembled. > To start with, I'm trying to understand how the new entity page works. I've > followed the instructions on adding fields<http://wiserplatform.org/documentation/index.php?title=Adding_fields_to_an_entity>successfully. > > This is what I've got so far: > > /wiser_platform/apps/frontend/templates/layout.php is the master template > with contains a variable called '$content'. > > From what I can tell the value of '$content' is populated by: > > > /wiser_platform/apps/frontend/modules/<entity>/templates/common/newSuccess.php > > I can't figure out where/how '$content' gets populated by the code in > newSuccess.php. Something must be weaving these two pieces together. > > Right now all entities share the common template ('newSuccess.php') but I > need to tweak my install so each entity will use their own version of > newSuccess.php because I'm adding questions and sustainability indicators > that are unique to each entity. > > thx > Justin > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Wiserplatform-support mailing list > Wis...@li... > https://lists.sourceforge.net/lists/listinfo/wiserplatform-support > > |