[Solar-talk] _getActionHref

Rodrigo Moraes rodrigo.moraes at gmail.com
Tue Aug 7 08:49:33 CDT 2007


On 8/6/07, Jeff Surgeson wrote:
> Cheers, will play and give you a shout, thanks again

Hey, Jeff.
Apart from the router stuff, one nice thing to work with a keyed array
to build lists is the possibility to add attributes to list items. I
wanted to have title in the links, so I've added a 'href_attribs'
checking in the base list helper:

            $this->layout_local[$id] = array(
                'href' => $uri,
                'text' => $name,
                'href_attribs' => array(
                    'title' => $title,
                ),
            );

Now list links can also have title or other attributes you may need.

-- rodrigo


More information about the Solar-talk mailing list