|
EnInstall
Install the framework and create a new project.
Lang-En
DownloadGo to the download page and select the latest stable version (alpha, beta, RC - are not stable!). ATTENTION Use phpdays 1.1 beta instead of phpdays 1.0 final release. In phpdays 1.0 final release we found many critical bugs, which were fixed in phpdays 1.1 beta. Check requirementsOn your server (local and real) should be installed:
Install framework
Create new application
# no scan directories DirectoryIndex index.php Options -Indexes # handle all queries within main script <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^index.php$ index.php [L] RewriteRule ^/?([^/]+)(.*)$ $1/public/$2 [NC,L] </IfModule> <?php
$dirs = scandir('.');
echo '<ul>';
echo '<h2>Projects</h2>';
foreach ($dirs as $dir) {
// show directories with projects only
if ('.' != $dir[0] AND is_dir($dir) AND is_dir("{$dir}/public"))
echo "<li> <a href='/{$dir}'>{$dir}</a>";
}
echo '</ul>';require_once '/var/lib/Days/Engine.php';
Days_Engine::run('/var/www/myblog/app/', 'development');
Save files and open you application by url http://localhost/myblog. TroubleshootingIf start page not shown - please open Firefox browser, install FireBug and FirePHP extensions. After this press F12 for open FireBug and open your site. On tab "Console" see bug messages. Use many projectsOne copy of framework used for many projects. Now we see all available projects by adress http://localhost. | |
► Sign in to add a comment