Articles tagged with "session"
Validation in another controller
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
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
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
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] text Query by Example using CakePHP 1.2
Here is how to build a simple query interface using the CakePHP 1.2 framework.
It allows you to query text in any field in a table. Queries are case insentive and the wild card is %
It is not a full "Query By Example" implementation, it just matches strings in text fields.
[Read more] It allows you to query text in any field in a table. Queries are case insentive and the wild card is %
It is not a full "Query By Example" implementation, it just matches strings in text fields.
AutoLogin Component - An Auth remember me feature
A user can save their login information by ticking off a checkbox in the login form and AutoLogin will store their information in a cookie to automatically log them in (using the Auth Component) on their next visit.
[Read more] ACL Caching using Session
ACL checks can be costly and would benefit from caching. One approach would be to use Cake's Caching system, as implemented in http://bakery.cakephp.org/articles/view/caching-acl-permissions-with-cachedaclcomponent. Presented here is a different approach, where the cache is stored using Session.
[Read more] How to bend CakePHP's session handling to your needs
This article is an attempt to break the myth that Cakephp's current session handling is not easily customizable.
[Read more] PersistentValidation - keeping your validation data after redirects
I decided to wrap this functionality in a component because when you have several forms in a view and each one relates to a different controller it's much easier to point the form to it's controller respective action and redirect back to the originating view.
[Read more] CKEditor 3.x - New FCKEditor Version
Now FCKEditor is called CKEditor. And here is an running Version of CKEditor and CakePHP.
CKEditor is an WYSIWYG Javascript Editor.
[Read more] CKEditor is an WYSIWYG Javascript Editor.
Latest Comments