| 2 |
lars |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
$frameworkPath='/var/www/lars-tiefland/prado/htdocs/framework/prado.php';
|
|
|
4 |
|
|
|
5 |
// The following directory checks may be removed if performance is required
|
|
|
6 |
$basePath=dirname(__FILE__);
|
|
|
7 |
$assetsPath=$basePath.'/assets';
|
|
|
8 |
$runtimePath=$basePath.'/protected/runtime';
|
|
|
9 |
|
|
|
10 |
if(!is_file($frameworkPath))
|
|
|
11 |
die("Unable to find prado framework path $frameworkPath.");
|
|
|
12 |
if(!is_writable($assetsPath))
|
|
|
13 |
die("Please make sure that the directory $assetsPath is writable by Web server process.");
|
|
|
14 |
if(!is_writable($runtimePath))
|
|
|
15 |
die("Please make sure that the directory $runtimePath is writable by Web server process.");
|
|
|
16 |
|
|
|
17 |
|
|
|
18 |
require_once($frameworkPath);
|
|
|
19 |
|
|
|
20 |
$application=new TApplication;
|
|
|
21 |
$application->run();
|
|
|
22 |
|
|
|
23 |
?>
|