search
top
Currently Browsing: CakePHP Tricks

Environment: Support methods in param matching

Some of you probably remember the fine Environment Class developed by Rafael Bandeira. I still use and love it for handling dev, staging and production environments. And it’s super awesome that you may create a AppEnvironment class to tweak the config and param mapping. However, i found one thing missing and that’s support for arrays when matching the mapped params. For example: You have one... read more

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