I usually put this function in config/boostrap.php http://bin.cakephp.org/view/405751361
On Wed, May 28, 2008 at 9:29 AM, jaro <[EMAIL PROTECTED]> wrote: > > Thought to share it here ... > > Extended the html helper to so that I can use shortcut keys when > creating links in cakephp views. > > Old way: > echo $html->link( 'Link Test', array( 'controller' => > 'long_controller_name', 'actions' => 'index', 'plugin' => > 'long_plugin_name' ) ); > > New way: > echo $xhtml->link( 'Link Test', array( 'c' => 'long_controller_name', > 'a' => 'index', 'p' => 'long_plugin_name' ) ); > > OR > echo $xhtml->link( 'Link Test', array( 'long_controller_name', > 'index', 'long_plugin_name' ) ); > > for the keys, c = controller, a = action, p = plugin > > OR use array numbers > > 0 = controller, 1 = action, 2 = plugin > > Anyone interested, here is the file: > http://cakephp.prometsupport.com/wp-content/uploads/2008/05/xhtmlphphelper.txt > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
