Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

- Added initial files.

- Missing all directories with Views/Layouts/Locale, etc
  • Loading branch information...
commit a268e946638bd5253ed981b9081883a4eb004d44 1 parent 33f1ec7
David Coallier authored
View
9 PHP/App/Base.php
@@ -0,0 +1,9 @@
+<?php
+Solar::autoload('Solar_Controller_Page');
+
+/**
+ * That really is just a base so we
+ * can have the same templates shared
+ * accross modules
+ */
+class PHP_App_Base extends Solar_Controller_Page {}
View
53 PHP/App/Contributors.php
@@ -0,0 +1,53 @@
+<?php
+/**
+ * Any actions done by a contributor is going to be
+ * done here.
+ *
+ * @todo Develop actionUpload
+ * @todo Develop actionLogin
+ * @todo Develop actionFiles
+ */
+class PHP_App_Contributors extends PHP_App_Base
+{
+
+ /**
+ * Type of layout to use.
+ *
+ * @var String The layout to use.
+ */
+ protected $_layout = 'main';
+
+ /**
+ * The default action
+ *
+ * This is the default action called when this
+ * controller is invoked.
+ *
+ * @var string The default action to invoke.
+ */
+ protected $_action_default = 'index';
+ /**
+ * The output to display. This is mostly an
+ * example of anything running with variables.
+ *
+ * @var string The output variable
+ */
+ public $output = '';
+
+ /**
+ * Action index.
+ *
+ * This action index when the /contributors root is invoked.
+ *
+ * The string passed to this output is the string that you can
+ * get through $this->getText() which will then be i18ned to whichever
+ * language it is set in your locale and in your locale folder.
+ *
+ * @see $this->output
+ * @return void
+ */
+ public function actionIndex()
+ {
+ $this->output = 'CONTRIBUTORS_WELCOME';
+ }
+}
View
50 PHP/App/Index.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * Index mockup
+ *
+ * This class behaves as if the /index was called
+ * It is not currently 100% working, but most of it
+ * is actually in place.
+ *
+ * @todo Add content to layout.
+ */
+class PHP_App_Index extends PHP_App_Base
+{
+ /**
+ * Type of layout to use.
+ *
+ * @var String The layout to use.
+ */
+ protected $_layout = 'main';
+
+ /**
+ * The default action
+ *
+ * This is the default action called when this
+ * controller is invoked.
+ *
+ * @var string The default action to invoke.
+ */
+ protected $_action_default = 'index';
+
+ /**
+ * The output to display. This is mostly an
+ * example of anything running with variables.
+ *
+ * @var string The output variable
+ */
+ public $output = '';
+
+ /**
+ * Action index.
+ *
+ * This action index when the /index root is invoked.
+ *
+ * @see $this->output
+ * @return void
+ */
+ public function actionIndex()
+ {
+ $this->output = 'Welcome to the 2008 Test Fest';
+ }
+}
View
53 PHP/App/Mentors.php
@@ -0,0 +1,53 @@
+<?php
+/**
+ * Any actions done by a mentor is going to be
+ * done here.
+ *
+ * @todo Develop actionReview
+ * @todo Develop actionComment
+ * @todo Develop actionLivetesting
+ */
+class PHP_App_Mentors extends PHP_App_Base
+{
+
+ /**
+ * Type of layout to use.
+ *
+ * @var String The layout to use.
+ */
+ protected $_layout = 'main';
+
+ /**
+ * The default action
+ *
+ * This is the default action called when this
+ * controller is invoked.
+ *
+ * @var string The default action to invoke.
+ */
+ protected $_action_default = 'index';
+ /**
+ * The output to display. This is mostly an
+ * example of anything running with variables.
+ *
+ * @var string The output variable
+ */
+ public $output = '';
+
+ /**
+ * Action index.
+ *
+ * This action index when the /contributors root is invoked.
+ *
+ * The string passed to this output is the string that you can
+ * get through $this->getText() which will then be i18ned to whichever
+ * language it is set in your locale and in your locale folder.
+ *
+ * @see $this->output
+ * @return void
+ */
+ public function actionIndex()
+ {
+ $this->output = 'MENTORS_WELCOME';
+ }
+}
View
24 README
@@ -1 +1,25 @@
- This code is running on the Solar framework
+
+VHOST Example
+# http://local.testfest.com
+<VirtualHost *:80>
+ ServerName local.testfest.com
+ DocumentRoot /path/to/testfest
+ <Directory />
+ AllowOverride All
+ Order deny,allow
+ Allow from all
+ </Directory>
+
+ RewriteEngine On
+ RewriteCond %{REQUEST_FILENAME} !-f
+ RewriteCond %{REQUEST_URI} !^/public/.*$
+ RewriteRule ^(.*)$ /index.php [QSA,L]
+</VirtualHost>
+
+or in a .htaccess
+
+RewriteEngine On
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteCond %{REQUEST_URI} !^/public/.*$
+RewriteRule ^(.*)$ /index.php [QSA,L]
View
16 Solar.config.php
@@ -0,0 +1,16 @@
+<?php
+
+$config = array();
+
+// Base action href
+$config['Solar_Uri_Action']['path'] = "$URIBASE/index.php";
+
+// Base public directory href
+$config['Solar_Uri_Public']['path'] = "$URIBASE/public";
+
+$config['Solar_Controller_Front']['classes'] = array(
+ 'PHP_App',
+);
+// Done!
+return $config;
+?>
View
18 index.php
@@ -0,0 +1,18 @@
+<?php
+// $INCPATH is the the path to where Solar is installed,
+// typically the PEAR PHP directory.
+
+set_include_path(ini_get('include_path') . PATH_SEPARATOR . dirname(__FILE__));
+
+// Load and start Solar. Be sure to point to the proper
+// location of your Solar.config.php file.
+require_once 'Solar.php';
+Solar::start(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Solar.config.php');
+
+// Instantiate and run the front controller.
+$front = Solar::factory('Solar_Controller_Front');
+$front->display();
+
+// Done!
+Solar::stop();
+?>
Please sign in to comment.
Something went wrong with that request. Please try again.