- Preperation steps
git clone git://github.com/kohana/kohana yourdomain.com
cd yourdomain.com
git submodule update --init
rm install.php
cd application
chmod 0777 cache
chmod 0777 logs
echo '{"require": {"gabordemooij/redbean": "dev-master", "twig/twig": "v1.13.0" }}' >> composer.json
curl -s https://getcomposer.org/installer | php
php composer.phar install
- Create files
Copy the files to APPPATH/classes/Controller, and APPPATH/views.
Note: dashes in file name represent directory seperator (slash).
- Update bootstrap.php and enjoy
Edit your APPPATH/bootstrap.php (base_url, index_file, lang etc.)
echo -e "\nCookie::$salt = 'your salt key';\n" >> bootstrap.php
echo -e "\nrequire_once Kohana::find_file('vendor', 'autoload');" >> bootstrap.php
Optional: change your default controller to 'book' to show on the index page. (@line: 128)
Book library done!