Mar 14, 2010
All your $base are belong to Ajax
We have custom routes, completly dynamic. We can even move the whole app to a subdirectory and still it works! So nice! But how to deal with that in static Javascript files? What about the Ajax and maybe some JS asset configs like image folders and such? In this small post i will tell you a good practice of mine which allows me to forget about that problem. ... read more
Mar 14, 2010
QuickTip: Pesky missing layout when requesting extensions
In CakePHP you can use a different layout (other than default.ctp) for all your views by simply changing the $layout property in your controller. I use this to deliver a different layout for, let’s say, the admin panel of the application – or maybe a member area. Let’s stick with the admin panel example: $this->layout = 'admin'; Now we all do some neat Ajax or XML here and there... read more

