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
- Copy
index.php
intoapp/app_1 folder
- Copy
index.php
intoapp/app_1 folder
- 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
- Kohana Version ->
- Set
Cookie::$salt = md5('some string here');
inbootstrap.php
- Test
http://localhost/apps/app1
Reference: Sharing Kohana