I had a look at that code and i didn't like how you had to set it up

this is how i handled it :

helper/MenuHelper.php

<?php

// @author : James

function link_to_menu($text, $location){

  $concat = sfContext::getInstance()->getModuleName() . '/' .
sfContext::getInstance()->getActionName();


  if ($concat == $location){

    $e = link_to($text, $location, 'class=menu-activate');

  }
  else
  {

    $e = link_to($text, $location);

  }

  return $e;

}




in any template

use_helper('Menu')

<?php echo link_to_menu('LINKY','main/index') ?>




On 1 oct, 06:41, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> I came across a nice solution based on the sliding doors technique.
> Provides dynamic width + rollover. Thought I would share:
>
> http://blog.thembid.com/index.php/2007/07/09/dynamic-css-tabs-in-symf...
>
> Cheers,
>
> Alexis P


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to