Feb 4, 2009
How to overwrite HtmlHelper tags
In some cases you find it desirable to overwrite the tag templates used by the HtmlHelper. For example if you put all your assets onto a CDN and don’t want to put the hostname in front of all paths (messy..). With this small modification in the AppHelper class you can do that in bootstrap using Configure, which also allows you to make the tags conditional if you want.. In short: flexibility! The... read more
Feb 4, 2009
Did you know? image() can has url!
Now this is a quick one here. Most of you know the following code from the default.ctp after you “just baked” the app. echo $html->link( $html->image('cake.power.gif', array('alt'=> __("CakePHP...", true), 'border'=>"0")), 'http://www.cakephp.org/', array('target'=>'_blank'), null, false ); This displays the small “CakePHP Power” badge with a link to their website. Much code... read more

