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]){
[...]
Posted on April 7th, 2009 by Dave
Filed under: CakePHP, Technology, Web | 11 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 | 8 Comments »
As you may know, if it can’t find an index.html the apache web server will show a list of files in the current directory. I was browsing through lists of images on my file server the other day and I thought, wouldn’t it be nice to have a next button? So I started digging around.
In [...]
Posted on March 1st, 2009 by Matt
Filed under: Technology, Web | 5 Comments »
Note: This is a bit out of date now, but Chris Peplin has built a proper plugin for tiddlywiki which does this for the latest versions of everything. So check it out! If you’re still interested in the old way then read on…
When adding posts to my TiddlyWiki, I oft found myself craving vi, rather [...]
Posted on May 13th, 2008 by Dave
Filed under: TiddlyWiki | 6 Comments »
This post is adapted from my LatexRenderPluginDoc page on my wiki, so might contain a couple of errors on the copy over. If something doesn’t seem right, refer to that page, and please tell me in a comment below.
This uses LatexRender, my simple TiddlyWiki macro, LatexRenderPlugin, and a custom script I created for the purpose, [...]
Posted on May 13th, 2008 by Dave
Filed under: TiddlyWiki | 1 Comment »