CakePHP HtmlHelper link()
method accepts 2 types of variable as second parameter (the link URL param).
Now I wonder if using array for the param, like
array('controller'=>'users','action'=>'login')
is slower than using string, like '/users/login'
. Because Helper won't have to parse the array, just display the link.
If it is so, then what is the purpose of link()
method? For now, I am using HtmlHelper::url()
method with a regular <a>
to display all of my links, to keep my template clean!
Please correct me :)