Development

Symfony11LayoutUpgrade (diff)

You must first sign up to be able to contribute.

Changes between Version 1 and Version 2 of Symfony11LayoutUpgrade

Show
Ignore:
Author:
Markus.Staab (IP: 217.228.100.225)
Timestamp:
04/12/08 15:06:02 (10 years ago)
Comment:

documented shortcut syntax

Legend:

Unmodified
Added
Removed
Modified
  • Symfony11LayoutUpgrade

    v1 v2  
    3939  }}} 
    4040 
     41There is also a shortcut available: 
     42 
     43  {{{ 
     44  // in the template 
     45  <?php slot('title', 'foo') ?> 
     46 
     47  // in the layout 
     48  ... 
     49  <head> 
     50    <title><?php echo get_slot('title') ?></title> 
     51  ... 
     52  }}} 
     53 
    4154As an added bonus, the slot can take a default value if not defined. 
    4255