Development

Changeset 4043

You must first sign up to be able to contribute.

Changeset 4043

Show
Ignore:
Timestamp:
05/19/07 01:36:28 (2 years ago)
Author:
Jonathan.Wage
Message:

sfContentGetterPlugin: Added examples to readme.

Files:

Legend:

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

    r4041 r4043  
    11=== Symfony Content Getter Plugin === 
    22 
     3{{{ 
     4<?php 
     5// get result of partial 
     6echo sfContentGetter::getInstance('module/_partial_name', array('var1' => 'variable'), 'default_module_name')->output(); 
     7 
     8// get result component 
     9echo sfContentGetter::getInstance('module/__component_name', array('var1' => 'variable'), 'default_module_name')->output(); 
     10 
     11// get result action 
     12echo sfContentGetter::getInstance('module/___action_name', array('var1' => 'variable'), 'default_module_name')->output(); 
     13 
     14// template helpers also exist 
     15echo get_content('content_getter_string', array('var1' => 'variable'), 'default_module_name'); 
     16include_content('content_getter_string', array('var1' => 'variable'), 'default_module_name'); 
     17?> 
     18}}} 
     19 
    320This plugin is in ALPHA state and is provided as is, please use at your own risk and read the source if you have any questions. A stable release of this plugin will be release in August 2007.