Login Try it Free

Kohana

Last Updated: Sep 26, 2012 05:00PM MDT

Because Kohana is a development framework, your Pagoda Box configuration will vary greatly depending on the requirements of your application. The following is the Boxfile and Database configuration for a simple blog running on Kohana.

Boxfile Example

 YAMLKohana Boxfile Example 

/Boxfile

Database Connection Example

We suggest configuring your application to use different database settings depending on the environment it's running in. You'll be using some precreated environment variables if you use this method.

 PHPDatabase Settings

/application/bootstrap.php

Once you've made this change you'll need to create two seperate folders in /modules/database/config a live one and a development one. Just move all the files in /modules/database/config into each of the folders. Now all you need to do is modify the database settings in the live folder

 PHPDatabase Settings

/modules/database/config/live/database.php

You'll need to create an environment variable to specify the platform. We recommend PLATFORM = PAGODABOX.

If you have any suggestions or corrections for this guide, please submit a ticket.

Contact Us