Development

Symfony11LayoutUpgrade (diff)

You must first sign up to be able to contribute.

Changes between Version 2 and Version 3 of Symfony11LayoutUpgrade

Show
Ignore:
Author:
fabien (IP: 90.95.199.66)
Timestamp:
04/12/08 18:45:50 (9 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Symfony11LayoutUpgrade

    v2 v3  
    2727 
    2828The right way to do this is by defining a slot like this: 
    29  
    30   {{{ 
    31   // in the template 
    32   <?php slot('title') ?>foo<?php end_slot() ?> 
    33  
    34   // in the layout 
    35   ... 
    36   <head> 
    37     <title><?php echo get_slot('title') ?></title> 
    38   ... 
    39   }}} 
    40  
    41 There is also a shortcut available: 
    4229 
    4330  {{{