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.
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.
This one had me scratching my head. You try to edit a record in your cake bake view but a text box is empty.
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.