I’ve always setup a new CakePHP project by extracting the current stable build into a project directory and editing the core.php and database.php files manually. I usually then change to the /cake/console directory of the project and run php cake.php bake (having already installed the php-cli) to bake my code. I know there are other… Continue reading Easy CakePHP in Ubuntu
I had no idea something like this existed but what a great idea. 24 days of worth of PHP articles to keep the Christmas Blues away. Today’s article is something very close to my heart and discusses the topic of Comprehensible Code. Go, read, expand your minds….
Personal experience will always advise our actions. So, the objective is to ensure positive experiences are repeated as often as possible, to encourage further positive outcomes. That’s the simple premise on which Ambit Recruitment operates the business of fitting the right people into the right positions. The Ambit Recruitment website is a bit of a… Continue reading Ambit Recruitment website goes live
I recently had to create an image map of South Africa, displaying each of the provinces with links to content for each province. As it took me most of the day to complete I thought it might be handy for someone else too. So in true open source fashion here it is for you to… Continue reading South African HTML image map
I’ve decided to spend less of my free time on blogging and more on learning new things. I had planned to change this site to run on WordPress, but have decided instead to learn Ruby on Rails. From what I can see it is (in many ways) similar to CakePHP (which I love) but with… Continue reading Riding on Rails
If you are like me, you prefer to have a specific url mapped to your applications control panel/backend etc. This is usually something along the lines of www.url.com/admin or www.url.com/cms. Normally during the CakePHP “bake” process, the system will ask you what you want your admin route to be (default “admin”). Once this has been… Continue reading Developing with CakePHP: Creating a simple admin control panel
You could simply code: but thats the “noob” way, a real coder creates a function… Update: 13/05/2018 Sigh What was wrong with me back then, this would have been so much better. Keep it simple, stupid!
A short while ago I posted about testing if a variable exists in a list and I spoke about the MySQL “IN” keyword. I realised this week that not everyone knows about the MySQL “IN” keyword, so I’ve decided to explain this very handy SQL keyword. Lets say you have a user table with the… Continue reading MySQL: filtering results from a list of id's