Return of the Demos

By Andy, filed under CakePHP, Tools, Tips, Plugins

A brief not to say that I'll be putting a couple of Demos back on the site, and I'll be adding to the main demo page as I go. All of the demos will be put up as plugins.

The pagination demo and source has always been available, and adding to that, the the next example is the Title tutorial. A very simple example based on the original tutorial from the wiki...

read more11 comments

  • Plugins and Routes

    By Andy, filed under CakePHP, Tips, Plugins, Routes

    Routes are a great feature, but if you try using them with Plugins you might find that you start pulling your hair out. Fear not however, there's always a solution and it's usually not that difficult. If you use routes of the form below, you can map directly to a plugin's page:

    $Route->connect('/Something/*', array('controller' => 
    
    'PluginName', 'action' => 'ControllerName',...
    1. $Route->connect('/Something/*', array('controller' =>
    2. 'PluginName', 'action' => 'ControllerName',...

    read more0 comments

  • Sessions and Plugins

    By Andy, filed under CakePHP, Tips, Sessions, Plugins

    If you use plugins, you may have noticed that your app session data isn't avaialbe in your plugins and vice-versa. There's a good reason for that, as a plugin is intended to be a mini application, self contained etc.

    In my case, this was a problem as my plugins are extensions or parts of my application and not seperate. To get around the wandering session data it was...

    read more6 comments

«  »