Skip to content

Kohana- elegant HMVC framewrok with bootstrap theme, HTML5 boilerplate and a CRUD based tutorial

License

Notifications You must be signed in to change notification settings

praveen-garg/kohana-nerds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • Kohana [v3.3.1] with H5BP, Bootstrap (Mobile responsive) theme
  • Tested/Developed using MAMP & PHP 5.4.4

Examples / Tutorials

A basic example, which explains CRUD operation on entity using ORM [object resource mapping] technique.

Basic example, which explains CRUD operation

Find [kohana_example.sql] (kohana_example.sql), in app root directory.

An example, using auth module for user sign-in/sign-up using ORM, server side validations for sign-up, and AJAX enabled controller login action.

Auth Module example, with boostrap theme sign-up

Find [kohana_auth.sql] (kohana_auth.sql), in app root directory.

Demo login credentials: praveen/kohana123

In User controller, action_login handles AJAX request. check before() method for more details.

To make login work via AJAX (main.js), enable 'id' => 'do-login' in views/user/login.php form submit button.

Directory structure:

    kohana-nerds/
      application/
      assets/
        js/
          main.js
          plugin.js
          vendor/
            bootstrap.js
            jquery-1.10.1.min.js
            ...
        css/
          main.css
          bootstrap.css
          ...
        img/
            ...
        fonts/
            ...
      system/
      .htaccess
      crossdomain.xml
      build.xml
      composer.json
      humans.txt
      robots.txt
      favicon.ico

What is inside?

Kohana PHP Framework v3.3.1 is an elegant, open source, and object oriented HMVC framework built using PHP5, by a team of volunteers. It aims to be swift, secure, and small. Released under a BSD license, Kohana can be used legally for any open source, commercial, or personal project.

[Initializr] (http://www.initializr.com/) H5BP 4.2.0 Bootstrap 3.0.0 jQuery 1.10.1

Initializr is an HTML5 templates generator to help you getting started with a new project based on HTML5 Boilerplate. It generates for you a clean customizable template with just what you need to start!

How to start/install from basic kohana code

[Basic steps to install] (steps-taken-to-install.txt)

Notes:

[PSR-0 and case-sensitivity] (http://kohanaframework.org/3.3/guide/kohana/tips)

With the introduction of PSR-0 support, the autoloading of classes is case sensitive. e.g. url::base() will work on MAC OSX and windows but not on Linux machine.

Mainly because filesystems used by Mac OSX and Windows are case insensitive but a Unix/Linux based server is not.

[Conventions] (http://kohanaframework.org/3.3/guide/kohana/conventions)

It is encouraged that you follow coding style as per the language / framework. Also, use plural name for DB tables.

TODO

P1

  • Catch any 404 eror and show custom error/404 page
  • Explaination on examples provided, add Tutorials steps
  • pure SQL (with parammeter binding)

P2

  • Add unit tests [sorry! I understand it should be the first step. but soon...]

P3

Thank you!

[Praveen Garg] (http://www.gargpraveen.blogspot.com/)

All used framework/libraries are trademarks of their respective owners. and open source [free licensed to use] to community (as per my knowledge), if any issue please report at: ([email protected]).

The use of these does not indicate endorsement of the trademark holder by nerdapplabs, nor vice versa.

[@nerdapplabs] (http://nerdapplabs.com)

About

Kohana- elegant HMVC framewrok with bootstrap theme, HTML5 boilerplate and a CRUD based tutorial

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published