Kohana is discontinued. RIP Kohana, it was nice to do business with you…. You can download it from github. Any pull request will be more than welcome! Set the routes default controller will be login. ORM is included with the Kohana 3.
|Published (Last):||20 July 2008|
|PDF File Size:||4.3 Mb|
|ePub File Size:||18.98 Mb|
|Price:||Free* [*Free Regsitration Required]|
This article presents a Kohana demo application demonstrating the compatibility and use of several Kohana modules I wrote in the course of the last few years.
The application is compatible to Kohana 3. While revisiting most of my Kohana modules, initially developed between and , I decided to code a small application demonstrating the use of these modules. This also helped to update the modules to the latest version of Kohana 3. The demo application is available on GitHub:.
Security features include user-dependent salts as well as application wide salt, iterative hashing, tokens to remember logins and prohibit frequent login attempts and the combination with the database session driver. A tutorial can be found in this blog entry. An access control module based on Red allowing to control access to models and controllers by organizing users in roles e. The access control rules are stored in the database and are easily extendable as discussed in this blog entry.
A user configuration module based on Red allowing to easily store and retrieve user-specific configuration options in the database.
The user configuration options are stored serialized allowing to store structured data such as arrays or objects. Through default values, the applications does not need to ensure that all configuration options are known when creating new users. Logging module based on Green allowing to log controller and model access by users.
Based on a configuration method which is part of the model, the module automatically generates a form the corresponding views can be adapted to the frontend framework used, e.
Twitter Bootstrap , validates the use input and updates the model if validation passes. The registered assets are then bundled, minified on the fly and written to the cache. This way, the bundled assets are only downloaded by the browser whenever the included files have changed. The demo application is compatible with Kohana 3.
In order to install the application for a specific version, checkout the correct branch of the GitHub repository. For Kohana 3. The --recursive will make sure that all required modules as well as the kohana core are checked out. When using the branches for version 3. Furthermore, the session is stored in the database, as well. The following SQL scheme should be applied to the new database:. If the installation is not located in the server root e.
A few screenshots are shown in Figure 1. Authentication as well as user creation is realized through the Red module, similarly controller access logs are created through Yellow, a provided user configuration option with direct impact on the user interface is realized through the Blue module and for administrators, the Green module allows to edit the two available users.
CSS and JS files are served through the Media module, the navigation is created through the Navigation module and the edit form for users is generated and validated by the Gaps module. Overall, the application is self-explanatory while demonstrating simple uses cases for all presented modules.
Figure 1 click to enlarge : Screenshots from the demo application demonstrating the login as well as some individual components as described in the text. What is your opinion on this article? Did you find it interesting or useful? Let me know your thoughts in the comments below:.
Installation The demo application is compatible with Kohana 3. Screenshots A few screenshots are shown in Figure 1.
Getting Started with Kohana 3, Part I – Initial Setup
Get the latest tutorials on SysAdmin and open source topics. Write for DigitalOcean You get paid, we donate to tech non-profits. DigitalOcean Meetups Find and meet other developers in your city. Amongst many PHP based frameworks, Kohana sets itself apart from the rest with its ideology of following common conventions and rules to develop fully object oriented web applications. This BSD licensed framework does not come with commercial strings attached and it has a build-by-the-community, for-the-community type of philosophy.