Jan 8, 2009
Did you know? String::insert is nice for translation!
You probably replace your language strings like so:
e(sprintf( __("Please %s or %s to write a comment", true),
$html->link(__("login", true), array('controller' => 'users', 'action' => 'login')),
...
read more
Jan 6, 2009
Datasources in Cake / [ANN] Last.FM Source
Some who follow me on twitter might know that i don’t sleep so well recently. But why waste time then? Maybe one isn’t ready for working on the big projects around 3am, but chances are that...
read more
Jan 4, 2009
Runtime – Get various system infos (UPDATE)
In my recent post i talked about the Environment class and how to use it to switch databases with ease. Today i paid the blog of Neil Crookes a visit and found his most recent post to be of the same...
read more
Jan 3, 2009
CakePHP Logging and the MacOSX dashboard
Here’s a hint for all you mac bakers: If you use the debug and error log files in your “tmp” directory or not. There is a very handy widget that helps you to keep track of their...
read more
Jan 2, 2009
How to use THIS in THAT and then some
Some common questions on IRC:
How to use a model in a component
$model = ClassRegistry::init('ModelName');
$result = $model->find('...');
How to extend a core helper
App::import('Helper',...
read more
popular articles
random articles

