"But using php to generate link is slower to render a page" actually its not notically at all - even under heavy load. the important fact is how MANY links there are on a single page. this will decide the page load. so as long as you dont need to output > 1000 links you will be fine.
On 11 Sep., 09:30, Ryan Schmidt <[email protected]> wrote: > On Sep 11, 2011, at 02:29, elija wrote: > > > Yes it is readable and concise but a simple <a href="..... " > is even > > easier to read and doesn't use PHP to generate a link. What I was > > actually wondering was is there any advantage in CakePHP to using the > > HTML Helper rather than just writing HTML in a view? > > The advantage of using PHP to generate the links is that if you change how > your routes are arranged, you don't then also have to update all your links > in your views. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
