Don't mail me my site errors

By Andy, filed under CakePHP, Tools, Error, Logs, Database

I wrote recently about how to have your site(s) email you whenever a problem occurs. Trouble is "problem" turns out to be a rather broad scope. If you have a missing file or fundamental problem of some kind, you would want to know so you can fix it; if there was a dead link on your site, you would also want to fix it; if someone just mistypes the url (or follows a link...

read more0 comments

  • Change the config at run time

    By Andy, filed under CakePHP, Tools, Tips, Database

    Following on from my previous post, I thought I'd mention a similar use that can make a developers life a little easier. Usually when developing software there are at least 3 environments: Development, Test and Production. For larger projects there may be more, but for a simple website (and a tiny team of 1) there is often 2 environments: the one on the development machine...

    read more5 comments

  • One Database file - two servers

    By Andy, filed under CakePHP, Tips, Database

    If you have your website on one server for testing/development (like this laptop) and your live site on another, it's quite likely that once in a while your database.php file from one or the other will find itself referring to the wrong database. Over at With Cake a solution was proposed to allow you to switch database sources in the app model, however it might be easier to...

    read more5 comments

«  »