Speed up your dev: write custom bake templates

By Andy, filed under CakePHP, Tools

When I first started using cake, bake wasn't around. It took quite some time for me to decide to give it a go, but at that time what bake gave wasn't customizable, as such it's use was limited since it took nearly as much time to bake and edit the files as it did to just write the files (once you know what you are doing that is). Roll the clock forward a bit and bake ...

read more5 comments

  • DRY: Applied to your setup

    By Andy, filed under CakePHP, Tips

    As pointed out in a recent comment, when changing your cake version you may find that some of your hand written config files are nolonger compatible with the version of cake you have selected. However by making use of a a custom production setup there is a way to configure your application defensively and in less lines of code.

    Every time I use copy, paste &...

    read more0 comments

  • read populates $model->data

    By Andy, filed under CakePHP

    For the past couple of days, I've had this niggling doubt that I've been missing something. Some code that I had in a behavior, which was supposed to be triggering a save for two field values, further down the line kept turning into a save which included every field in the table with the old field values. Why was this happening? I asked Elvis, he didn't know so I had to ...

    read more3 comments

«  »