Development

Changeset 4078

You must first sign up to be able to contribute.

Changeset 4078

Show
Ignore:
Timestamp:
05/22/07 18:50:39 (6 years ago)
Author:
mahono
Message:

added info about mixing good old action and page areas using "sf_content"

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfSimplePageControllerPlugin/README

    r4075 r4078  
    3333</div> 
    3434}}} 
     35 
    3536 
    3637== Using the default driver == 
     
    8283}}} 
    8384 
     85 
    8486== Write your own config driver == 
    8587 
     
    107109 
    108110 
     111== What about $sf_data->getRaw('sf_content') ? == 
     112 
     113There are two ways of using the simple page controller: 
     114 
     1151. Don't use sf_content at all, fully replace it by the include_simplepage_area() helper. 
     116 * Use an area 'main' for example and put the appropriate action into it. 
     117 * Useful if you want to fully control page areas by the configuration, possibly by your own driver. 
     118 
     1192. Mix <?php echo $sf_data->getRaw('sf_content') ?> with include_simplepage_area(). 
     120 
     121 * This is useful if you have a sidebar and you only want to control the contents of it separate from the action/template! 
     122  * In that case use the "page action" as an ordinary action. 
     123  * See "sf_content" as your main area and only define area 'sidebar' for example. 
     124  * Use the default driver and matching pageFoo.yml config files. 
     125 
     126 
    109127== Tips and hints == 
    110128