Kohana Setup Screencast

Published on:
Tags: Kohana, PHP

Kohana logo

So, I have been following the progress of the Kohana php framework for a little while now, after completing a number of projects using CodeIgniter I started looking for a more php5 competent framework and came across the community branch of CodeIgniter called Kohana.

I’ve been slowly getting to grips with the framework for a couple of weeks now and plan to use it in the next project I’m about to take on. It seems like a fantastic framework with some really good developers who have done some awesome stuff with the core but like any early project currently suffers (IMO) from a lack of basic documentation . .so I have decided to help (hopefully) with a short screencast on how to set up a small application (a blog) just to get people using the framework.

The first screencast focuses on setting it for for development, it covers the following topics:

  • Downloading the source code from svn
  • Setting up a local site in apache (running on localhost)
  • Placing the index.php into a webroot
  • Removing the index.php from the url It’s the first screencast I have ever attempted so it is most likely very rough around the edges but I hope it can be of some to someone!

The only bit of accompanying code you will need is the rewrite rule I used within the virtual host which you can copy and paste from below;

# Turn on URL rewriting
RewriteEngine On  
# Protect application and system files from being viewed
RewriteCond $1 ^(application|system)  
# Rewrite to index.php/access_denied/URL
RewriteRule ^(.*)$ index.php/access_denied/$1 [PT,L]  
# Do not enable rewriting for files that exist
RewriteCond $1 !/index.+  
# Rewrite to index.php/URL
RewriteRule ^(.*)$ /index.php/$1 [PT,L]

If you have any questions then please do not hesitate to contact me about them!

[Download the QT movie here] [Download the compressed movie here]

EDIT – The second part in this series has now been posted up and is available hereĀ