Kohana, PHP

Kohana – Setting up for multiple applications

Make sure to download Kohana first

The structure:

|-apps
|—– app1
|—– -> index.php
|——— 1.0
|——— -> bootstrap.php
|——— 1.1
|——— 1.2
|—– app2
|—– -> index.php
|——— 1.0
|——— -> bootstrap.php
|
|-kohana
|—– version
|——– 3.2.0
|——– 3.3.0

  1. Copy index.php into app/app_1 folder
  2. Copy index.php into app/app_1 folder
  3. Set the following in index.php:
    • Kohana Version -> $kohana_version (new variable)
    • Application Version -> $app_version (new variable)
    • Application Path -> $application
    • Module Path -> $modules
    • System Path -> $system
  4. Set Cookie::$salt = md5('some string here'); in bootstrap.php
  5. Test http://localhost/apps/app1

Reference: Sharing Kohana

Leave a Reply

Your email address will not be published. Required fields are marked *

4 × five =