A base controller using Kohana v3.0.3

Here’s how I created a base controller for websites I develop using Kohana v3 1. create a website config file ( application/config/website.php ): <?php defined(‘SYSPATH’) OR die(‘No Direct Script Access’); return array( ‘site_name’ => ‘Example site’,); <?php defined(‘SYSPATH’) OR die(‘No Direct Script Access’); return array( ‘site_name’ => ‘Example site’, );… Continue reading

Creating a content controller using Kohana v3.0

These are the things I needed to change on .httacess to have kohana default files working before creating my first controller:  # Turn on URL rewriting RewriteEngine On # Installation directory RewriteBase /kohana/ # Protect hidden files from being viewed <Files .*> Order Deny,Allow Deny From All </Files> # Protect… Continue reading

Playing around with Kohana v3

New Kohana version is out, grab it from here: http://dev.kohanaphp.com/projects/kohana3/files And again, extract to a folder on your web server. On good thing to do is extract both “Application” and “System” into a folder accessible to the user your webserver runs (usually, apache, nobody, httpd) and change the paths inside… Continue reading