Archive for August, 2009
New site built on Codeigniter
Not really a webby thing that could save you time but yesterday we finished a 2 phase build.
Phase 1: A user backend as such, consisting of a 7 part entry form including ajax image cropping, lots of custom validation and conditional form elements.
Phase 2: The frontend, uses Infinite scroll to create a single page of user profiles, there is also a ajax rating system.
Codeigniter allowed use to build the site in 6 weeks, with 3 solid weeks dev on the forms. All the JS is jQuery based.
Check it out for yourself healthy life awards
An improved .htaccess file to remove index.php in CI
A quick update of the .htaccess to remove the index.php, while still protecting the application folder.
The previous method I used meant having to add every real file or directory to the .htaccess to allow them to be accessed. The updated way checks if the requested file/directory exists and if need rewrites to the index.php.
If you need to protect more directories separate them with | i.e. application|modules
RewriteEngine On
RewriteRule ^(application) - [F,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]
