Published: on 25/6/08 | Comments (0)
Hi Everyone,
Quick tip for all cakePHP developers today, have you ever wanted to obtain a list within your code, of all the controllers in your application?
CakePHP makes this pretty simple with the $configure class, just use:
$controllerList = Configure::listObjects('controller');
and by the magic of cake $controllerList will now contain an array of controllers you can iterate through.
Within my own code, I tend to use it quite frequently to build a basic admin menu, by iterating...
Published: on 23/6/08 | Comments (11)
Ever needed a reliable currency converter, that you can just drop into your application and never worry about manually updating the rates for.
Well I do for a current application I have been developing and I decided that it would make an ideal example for demonstrating how easy it is to create usefull CakePHP components.
So after a little Googling, I found that the Central European Bank, rather conveniently publishes an XML feed of rates against the Euro that is updated nightly, by using...
Published: on 20/6/08 | Comments (99)
In my earlier article CakePHP Auth Component - Users, Groups & Permissions I demonstrated step by step how to create a complete Authentication & Authorization system based around cakePHPs' Auth component.
Judging from the number of visits the article has had and the great comments I have received from the article, it prooved to be a bit of a winner, and as the last couple of weeks I haven't had a chance to post, due to sheer workload, I thought today, I would sit down and refactor the code...
Published: on 2/6/08 | Comments (0)
In my first article in this series, I outlined a flexible and powerfull way of implementing a complete User Authentication and Authorization system, which:
In this article I am going to expand on the system and show how you can use the code to get a basic but flexible Admin menu with minimum...
Published: on 20/5/08 | Comments (32)
following on from the great response I have received to this article and numerous suggestions and requests left in the comments, I have now published an updated version of this article, which you can find here, the updated version contains all the code found here plus it has been refactored and improved to add features such as CakePHP 1.2.0.7125RC1 support, along with Permissions Caching and Controller Wide Permissions Wildcard support.
Ok, I've been using CakePHP for about three...
Studio Canaria is the web site of freelance web developer, Peter Butler. Articles on this site relate to designing, developing and marketing modern web applications.
CakePHP Auth Component - Users, Groups & Permissions Revisited
CakePHP Auth Component - Users, Groups & Permissions