James McDonald

Access

Blog History

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'...

read more

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...

read more

CakePHP ACL and other challenges

If you have implemented ACL in CakePHP and then you add an action to your controller or create a new controller and actions you will get locked out when you try to access it (unless you have granted access further up the tree) Firstly perform aco_sync using the...

read more