Shortening your PHP Code

Learning PHP using firstly CakePHP 2 and now moving onto CakePHP 3 I'm finding there are some ways PHP has changed to allow you to write less and get the same result. Arrays Before <?php $myarray = array( 'one' => 'One', 'two' => 'Two', 'three' => 'Three'...

CakePHP & jQuery UI Autocomplete

This is a field that you enter a partial "batch" number and then the JQuery Autocomplete control queries the remote database for a matching list. This is rough code to get a jQuery UIĀ auto complete control working with CakePHP. // in Model/Label.php public function...

About the Author

James is an IT Professional based in Melbourne, Australia. He blogs about Information Technology, Open Source software, home renovations, good reads and travel.

Login

Blog History