Router::connect in Cake. Forward URL to a controller

I’ve seen a few example of how to manually redirect one URL to a controller, so I thought I’d try and put an example of how to re-route URLs to a controller in a situation where you have lots of different URLs such as a CMS or e-commerce site.

Read more No Comments »

Redirect to another Controller in CakePHP

To cause a 302 status code to be returned to the browser and a redirect to be initialised you need to set the header using the header() method in PHP.

Read more No Comments »

CakePHP empty textbox after bake

This one had me scratching my head. You try to edit a record in your cake bake view but a text box is empty.

Read more No Comments »

CakePHP Notes – A few basics

Recently I’ve set up a laptop at home with Linux Ubuntu, and I’ve been playing with CakePHP over the past month or so. Here are a few basics I’ve noted down.

Read more No Comments »

© 2017 Garry Passarella. All Rights Reserved. Facebook Twitter Twitter