search
top
Currently Browsing: CakePHP Hints

Quickie: SecurityComponent, Ajax and input.disabled

Don’t mess wit teh formz. I thought it’s cool to disable a field simply by using the disabled Element property. Being distracted by other parts in the app i just applied it and left it alone – “How can this be bad, right?”. After some more time i did test the form again and found myself being blackholed all of a sudden – whaaa? – Took me some time to find out what... read more

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
 Page 2 of 3 « 1  2  3 »
top