March 2010
3 posts
1 tag
CakePHP Visible URL Links Using Proper Routes
If you are every writing body content that requires you to mention a local URL then you are like to be tempted to write a very static, such as:
http://yourdomain.com/users/login
Instead it’s better to use CakePHP routes, just in case you change the URL structure of your site (ie, to use pretty urls, etc). So instead do something like this:
2 tags
Setting Timezone in CakePHP
When looking over my friend Tony Milne’s shoulder as he worked on his new blog built in CakePHP, we ran into the issue of our server being hosted in the US so comment timestamps were being given dates based on the current US date/time. To change the timezone CakePHP uses just place the following in your bootstrap.php
// place in app/config/bootstrap.php
// Australia Daylight Saving...
2 tags
Install & Uninstall MySQL - Ubuntu
Ran into an issue on with a VPS on Slicehost that I cloned the other day. The MySQL server wouldn’t start as it failed to find the mysqld.sock file (which appeared to be non-existent). I uninstalled MySQL, which was fine because we didn’t need any of the cloned databases and then just reinstalled it.
Install MySQL:
sudo aptitude install mysql-server mysql-client...