Friday, July 26, 2013

Kohana Framework: My Experience

Hello everyone,

Recently I went for an interview, the job was for a Magento development position.

After the initial screening the interviewer said they will test me on something which not many people use, so that they know I work with a new framework, this was the first time I heard of Kohana framework.

Anyways, the task was to develop this small module in Kohana, which is done.I also thought I should record what I have learnt in last 2 days.

Kohana is an HMVC(Hierarchical model–view–controller) PHP5 framework.

Official website: http://kohanaframework.org/ which has a download link as well. Latest stable version is 3.3.0 'badius' right now.


Installation:

Download the package and extract it where you have your webserver's webroot. There is no requirement of database setup, if your application doesn't require any database then you don't need to set it up ever.

After extraction if you open up the framework folder through your browser like http://localhost/kohana then the framework will provide you with information on setup and if its requirements are fulfilled or not.
If everything is fine then it will ask you to rename / remove the index.php file. If you are at this stage then we are pretty much done with the installation.

Few posts on the net says to play with \kohana\application\config\config.php file for some configuration, believe me the framework has evolved since then and nothing is required as such. Infact in the latest version of Kohana you won't even find a config.php in \kohana\application\config.


No comments:

Post a Comment