For small Cake websites with admin routing enabled, I like to use the Auth component to require a login for all admin routes, and allow access to everything else using the following beforeFilter in the AppController superclass: function beforeFilter(){ $admin = Configure::read('Routing.admin'); if (isset($this->params[$admin]) and $this->params[$admin]){ $this->layout = 'admin'; } else { $this->Auth->allow(); } } [...]
Posted on April 7th, 2009 by Dave
Filed under: CakePHP, Technology, Web | 13 Comments »
In the first part of my CakePHP tutorial, I showed you how to use Cake’s Bake utility to set up the basic back end of an online illustration portfolio. In this part, I’ll tweak the automatically generated code into useable website and admin section and show you how to use some of Cake’s features along [...]
Posted on March 31st, 2009 by Dave
Filed under: CakePHP, Technology, Web | 13 Comments »
A friend of mine recently asked me to help him build an online portfolio for his illustration pieces, and I decided to use CakePHP 1.2 to get the back end up and running quickly. I thought someone might find a tutorial taking a simple website through from start to finish useful, so this tutorial series [...]
Posted on March 28th, 2009 by Dave
Filed under: CakePHP, Technology, Web | 12 Comments »