Articles tagged with "session"

Validation in another controller

By Alex McFadyen
You have 2 controllers, posts and comments, you want to be able to have a form on a posts view which submits to the comments controller, which does its thing then redirect to referrer - easy! BUT you also want the validation errors (if any) to display on the posts view - but currently they get lost when your redirect. Heres how to get around it!
[Read more]

Multiple flashes with different classes

By Danny Ferguson
There were a couple of things I didn't like about using $this->Session->setFlash(), so I wrote my own method for saving flashes and helper for displaying them.
[Read more]

CakePHP & SMF

By Paul Kirkpatrick
A quick guide on getting SMF and CakePHP working together. Uses SMF for login, session handling, even layout.
[Read more]

Force login on Ajax requests

By Michal Szajbe
Users often encounter situations when they want to perform an action on a web site and get redirected to login page. Application’s task is to take care of performing the requested action right after user’s successful log in. It is easy job, unless the action is requested via ajax.
[Read more]