cvs: php-testfest-web / README Solar.config.php /PHP/App Contributors.php Mentors.php

From: Date: Tue, 01 Apr 2008 04:34:05 +0000
Subject: cvs: php-testfest-web / README Solar.config.php /PHP/App Contributors.php Mentors.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-1433@lists.php.net to get a copy of this message
davidc Tue Apr 1 04:34:05 2008 UTC Modified files: /php-testfest-web README Solar.config.php /php-testfest-web/PHP/App Contributors.php Mentors.php Log: - Updated the README - Added sqlite config and handler to Confi - Added Mentors Login example - Moded Contributors http://cvs.php.net/viewvc.cgi/php-testfest-web/README?r1=1.2&r2=1.3&diff_format=u Index: php-testfest-web/README diff -u php-testfest-web/README:1.2 php-testfest-web/README:1.3 --- php-testfest-web/README:1.2 Tue Apr 1 01:50:53 2008 +++ php-testfest-web/README Tue Apr 1 04:34:04 2008 @@ -1,6 +1,15 @@ -- This code is running on the Solar framework +Install: +======== +In order to be able to install this and develop on it, you'll have to install +the Solar Framework. + +See http://solarphp.com/project/download + + + +Vhost & Apache Configuration: +============================= -VHOST Example # http://local.testfest.com <VirtualHost *:80> ServerName local.testfest.com http://cvs.php.net/viewvc.cgi/php-testfest-web/Solar.config.php?r1=1.1&r2=1.2&diff_format=u Index: php-testfest-web/Solar.config.php diff -u php-testfest-web/Solar.config.php:1.1 php-testfest-web/Solar.config.php:1.2 --- php-testfest-web/Solar.config.php:1.1 Tue Apr 1 01:50:53 2008 +++ php-testfest-web/Solar.config.php Tue Apr 1 04:34:04 2008 @@ -2,15 +2,28 @@ $config = array(); +$safedir = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'jail'; // Base action href $config['Solar_Uri_Action']['path'] = "$URIBASE/index.php"; // Base public directory href $config['Solar_Uri_Public']['path'] = "$URIBASE/public"; +$config['Solar_Sql_Adapter_Sqlite'] = array( + 'name' => "$safedir/testfest" +); + +$config['Solar_Auth']['adapter'] = 'Solar_Auth_Adapter_Sql'; +$config['Solar_Auth_Adapter_Sql']['table'] = 'auth'; + +$config['Solar_Auth_Adapter_Sql']['handle_col'] = 'handle'; +$config['Solar_Auth_Adapter_Sql']['passwd_col'] = 'password'; +$config['Solar_Auth_Adapter_Sql']['salt'] = 'testtt'; + $config['Solar_Controller_Front']['classes'] = array( 'PHP_App', ); + // Done! return $config; ?> http://cvs.php.net/viewvc.cgi/php-testfest-web/PHP/App/Contributors.php?r1=1.1&r2=1.2&diff_format=u Index: php-testfest-web/PHP/App/Contributors.php diff -u php-testfest-web/PHP/App/Contributors.php:1.1 php-testfest-web/PHP/App/Contributors.php:1.2 --- php-testfest-web/PHP/App/Contributors.php:1.1 Tue Apr 1 01:50:53 2008 +++ php-testfest-web/PHP/App/Contributors.php Tue Apr 1 04:34:04 2008 @@ -50,4 +50,4 @@ { $this->output = 'CONTRIBUTORS_WELCOME'; } -} +} \ No newline at end of file http://cvs.php.net/viewvc.cgi/php-testfest-web/PHP/App/Mentors.php?r1=1.1&r2=1.2&diff_format=u Index: php-testfest-web/PHP/App/Mentors.php diff -u php-testfest-web/PHP/App/Mentors.php:1.1 php-testfest-web/PHP/App/Mentors.php:1.2 --- php-testfest-web/PHP/App/Mentors.php:1.1 Tue Apr 1 01:50:53 2008 +++ php-testfest-web/PHP/App/Mentors.php Tue Apr 1 04:34:04 2008 @@ -50,4 +50,8 @@ { $this->output = 'MENTORS_WELCOME'; } + + public function actionLogin() + { + } }

« previous php.webmaster (#1433) next »