2008-05-30 11:40:08 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2009-11-06 06:46:59 +00:00
|
|
|
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
2013-02-08 11:59:49 +00:00
|
|
|
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
2008-05-30 11:40:08 +00:00
|
|
|
*
|
|
|
|
* Licensed under The MIT License
|
2013-02-08 12:22:51 +00:00
|
|
|
* For full copyright and license information, please see the LICENSE.txt
|
2008-05-30 11:40:08 +00:00
|
|
|
* Redistributions of files must retain the above copyright notice.
|
|
|
|
*
|
2013-02-08 11:59:49 +00:00
|
|
|
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
2009-11-06 06:00:11 +00:00
|
|
|
* @link http://cakephp.org CakePHP(tm) Project
|
2008-10-30 17:30:26 +00:00
|
|
|
* @since CakePHP(tm) v 1.2.0.5012
|
2013-05-30 22:11:14 +00:00
|
|
|
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
2008-05-30 11:40:08 +00:00
|
|
|
*/
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2011-11-25 21:05:00 +00:00
|
|
|
App::uses('AppShell', 'Console/Command');
|
|
|
|
|
2008-05-30 11:40:08 +00:00
|
|
|
/**
|
2011-07-26 01:46:52 +00:00
|
|
|
* Provides a very basic 'interactive' console for CakePHP apps.
|
|
|
|
*
|
2011-07-26 06:16:14 +00:00
|
|
|
* @package Cake.Console.Command
|
2008-05-30 11:40:08 +00:00
|
|
|
*/
|
2011-11-25 21:05:00 +00:00
|
|
|
class ConsoleShell extends AppShell {
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2008-05-30 11:40:08 +00:00
|
|
|
/**
|
|
|
|
* Available binding types
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
2010-04-04 07:14:00 +00:00
|
|
|
public $associations = array('hasOne', 'hasMany', 'belongsTo', 'hasAndBelongsToMany');
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2008-05-30 11:40:08 +00:00
|
|
|
/**
|
|
|
|
* Chars that describe invalid commands
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
2010-04-04 07:14:00 +00:00
|
|
|
public $badCommandChars = array('$', ';');
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2008-05-30 11:40:08 +00:00
|
|
|
/**
|
|
|
|
* Available models
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
2010-04-04 07:14:00 +00:00
|
|
|
public $models = array();
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2008-05-30 11:40:08 +00:00
|
|
|
/**
|
2012-02-26 15:21:04 +00:00
|
|
|
* Override startup of the Shell
|
2008-05-30 11:40:08 +00:00
|
|
|
*
|
2011-07-29 02:03:44 +00:00
|
|
|
* @return void
|
2008-05-30 11:40:08 +00:00
|
|
|
*/
|
2012-02-26 15:21:04 +00:00
|
|
|
public function startup() {
|
2010-12-08 01:12:50 +00:00
|
|
|
App::uses('Dispatcher', 'Routing');
|
2008-05-30 11:40:08 +00:00
|
|
|
$this->Dispatcher = new Dispatcher();
|
2011-05-23 02:20:56 +00:00
|
|
|
$this->models = App::objects('Model');
|
2008-05-30 11:40:08 +00:00
|
|
|
|
|
|
|
foreach ($this->models as $model) {
|
2011-05-23 02:20:56 +00:00
|
|
|
$class = $model;
|
2008-05-30 11:40:08 +00:00
|
|
|
$this->models[$model] = $class;
|
2010-12-09 03:45:18 +00:00
|
|
|
App::uses($class, 'Model');
|
2010-11-13 04:05:44 +00:00
|
|
|
$this->{$class} = new $class();
|
2008-05-30 11:40:08 +00:00
|
|
|
}
|
2011-04-25 19:17:59 +00:00
|
|
|
$this->out(__d('cake_console', 'Model classes:'));
|
|
|
|
$this->hr();
|
2008-05-30 11:40:08 +00:00
|
|
|
|
|
|
|
foreach ($this->models as $model) {
|
|
|
|
$this->out(" - {$model}");
|
|
|
|
}
|
2012-08-04 17:44:35 +00:00
|
|
|
|
|
|
|
if (!$this->_loadRoutes()) {
|
|
|
|
$message = __d(
|
|
|
|
'cake_console',
|
|
|
|
'There was an error loading the routes config. Please check that the file exists and contains no errors.'
|
|
|
|
);
|
|
|
|
$this->err($message);
|
|
|
|
}
|
2008-05-30 11:40:08 +00:00
|
|
|
}
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2012-08-04 17:57:14 +00:00
|
|
|
public function getOptionParser() {
|
|
|
|
$description = array(
|
|
|
|
'The interactive console is a tool for testing parts of your',
|
|
|
|
'app before you write code.',
|
|
|
|
'',
|
|
|
|
'See below for a list of supported commands.'
|
|
|
|
);
|
|
|
|
|
|
|
|
$epilog = array(
|
|
|
|
'<info>Model testing</info>',
|
|
|
|
'',
|
|
|
|
'To test model results, use the name of your model without a leading $',
|
|
|
|
'e.g. Foo->find("all")',
|
|
|
|
"",
|
|
|
|
'To dynamically set associations, you can do the following:',
|
|
|
|
'',
|
|
|
|
"\tModelA bind <association> ModelB",
|
|
|
|
'',
|
|
|
|
"where the supported associations are hasOne, hasMany, belongsTo, hasAndBelongsToMany",
|
|
|
|
"",
|
|
|
|
'To dynamically remove associations, you can do the following:',
|
|
|
|
'',
|
|
|
|
"\t ModelA unbind <association> ModelB",
|
|
|
|
'',
|
|
|
|
"where the supported associations are the same as above",
|
|
|
|
"",
|
|
|
|
"To save a new field in a model, you can do the following:",
|
|
|
|
'',
|
|
|
|
"\tModelA->save(array('foo' => 'bar', 'baz' => 0))",
|
|
|
|
'',
|
|
|
|
"where you are passing a hash of data to be saved in the format",
|
|
|
|
"of field => value pairs",
|
|
|
|
"",
|
|
|
|
"To get column information for a model, use the following:",
|
|
|
|
'',
|
|
|
|
"\tModelA columns",
|
|
|
|
'',
|
|
|
|
"which returns a list of columns and their type",
|
|
|
|
"",
|
|
|
|
'<info>Route testing</info>',
|
|
|
|
"",
|
|
|
|
'To test URLs against your app\'s route configuration, type:',
|
|
|
|
"",
|
|
|
|
"\tRoute <url>",
|
|
|
|
"",
|
|
|
|
"where url is the path to your your action plus any query parameters,",
|
2012-12-22 22:48:15 +00:00
|
|
|
"minus the application's base path. For example:",
|
2012-08-04 17:57:14 +00:00
|
|
|
"",
|
|
|
|
"\tRoute /posts/view/1",
|
|
|
|
"",
|
|
|
|
"will return something like the following:",
|
|
|
|
"",
|
|
|
|
"\tarray(",
|
|
|
|
"\t [...]",
|
|
|
|
"\t 'controller' => 'posts',",
|
|
|
|
"\t 'action' => 'view',",
|
|
|
|
"\t [...]",
|
|
|
|
"\t)",
|
|
|
|
"",
|
|
|
|
'Alternatively, you can use simple array syntax to test reverse',
|
|
|
|
'To reload your routes config (Config/routes.php), do the following:',
|
|
|
|
"",
|
|
|
|
"\tRoutes reload",
|
|
|
|
"",
|
|
|
|
'To show all connected routes, do the following:',
|
|
|
|
'',
|
|
|
|
"\tRoutes show",
|
|
|
|
);
|
|
|
|
return parent::getOptionParser()
|
|
|
|
->description($description)
|
|
|
|
->epilog($epilog);
|
|
|
|
}
|
2008-05-30 11:40:08 +00:00
|
|
|
/**
|
|
|
|
* Prints the help message
|
|
|
|
*
|
2011-07-29 02:03:44 +00:00
|
|
|
* @return void
|
2008-05-30 11:40:08 +00:00
|
|
|
*/
|
2010-04-05 03:19:38 +00:00
|
|
|
public function help() {
|
2012-08-04 17:57:14 +00:00
|
|
|
$optionParser = $this->getOptionParser();
|
|
|
|
$this->out($optionParser->epilog());
|
2008-05-30 11:40:08 +00:00
|
|
|
}
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2008-05-30 11:40:08 +00:00
|
|
|
/**
|
|
|
|
* Override main() to handle action
|
|
|
|
*
|
2011-07-29 02:03:44 +00:00
|
|
|
* @param string $command
|
|
|
|
* @return void
|
2008-05-30 11:40:08 +00:00
|
|
|
*/
|
2010-04-05 03:19:38 +00:00
|
|
|
public function main($command = null) {
|
2008-05-30 11:40:08 +00:00
|
|
|
while (true) {
|
|
|
|
if (empty($command)) {
|
|
|
|
$command = trim($this->in(''));
|
|
|
|
}
|
|
|
|
|
2008-10-23 00:10:44 +00:00
|
|
|
switch ($command) {
|
2008-05-30 11:40:08 +00:00
|
|
|
case 'help':
|
2009-02-06 23:12:18 +00:00
|
|
|
$this->help();
|
2013-07-02 22:52:48 +00:00
|
|
|
break;
|
2008-05-30 11:40:08 +00:00
|
|
|
case 'quit':
|
|
|
|
case 'exit':
|
|
|
|
return true;
|
|
|
|
case 'models':
|
2011-04-25 19:17:59 +00:00
|
|
|
$this->out(__d('cake_console', 'Model classes:'));
|
2008-05-30 11:40:08 +00:00
|
|
|
$this->hr();
|
|
|
|
foreach ($this->models as $model) {
|
|
|
|
$this->out(" - {$model}");
|
|
|
|
}
|
2013-07-02 22:52:48 +00:00
|
|
|
break;
|
2012-09-14 17:54:29 +00:00
|
|
|
case preg_match("/^(\w+) bind (\w+) (\w+)/", $command, $tmp):
|
2008-05-30 11:40:08 +00:00
|
|
|
foreach ($tmp as $data) {
|
|
|
|
$data = strip_tags($data);
|
|
|
|
$data = str_replace($this->badCommandChars, "", $data);
|
|
|
|
}
|
|
|
|
|
|
|
|
$modelA = $tmp[1];
|
|
|
|
$association = $tmp[2];
|
|
|
|
$modelB = $tmp[3];
|
|
|
|
|
2009-02-06 23:12:18 +00:00
|
|
|
if ($this->_isValidModel($modelA) && $this->_isValidModel($modelB) && in_array($association, $this->associations)) {
|
2008-05-30 11:40:08 +00:00
|
|
|
$this->{$modelA}->bindModel(array($association => array($modelB => array('className' => $modelB))), false);
|
2011-04-25 19:17:59 +00:00
|
|
|
$this->out(__d('cake_console', "Created %s association between %s and %s",
|
|
|
|
$association, $modelA, $modelB));
|
2008-05-30 11:40:08 +00:00
|
|
|
} else {
|
2011-04-25 19:17:59 +00:00
|
|
|
$this->out(__d('cake_console', "Please verify you are using valid models and association types"));
|
2008-05-30 11:40:08 +00:00
|
|
|
}
|
2013-07-02 22:52:48 +00:00
|
|
|
break;
|
2012-09-14 17:54:29 +00:00
|
|
|
case preg_match("/^(\w+) unbind (\w+) (\w+)/", $command, $tmp):
|
2008-05-30 11:40:08 +00:00
|
|
|
foreach ($tmp as $data) {
|
|
|
|
$data = strip_tags($data);
|
|
|
|
$data = str_replace($this->badCommandChars, "", $data);
|
|
|
|
}
|
|
|
|
|
|
|
|
$modelA = $tmp[1];
|
|
|
|
$association = $tmp[2];
|
|
|
|
$modelB = $tmp[3];
|
|
|
|
|
|
|
|
// Verify that there is actually an association to unbind
|
|
|
|
$currentAssociations = $this->{$modelA}->getAssociated();
|
|
|
|
$validCurrentAssociation = false;
|
|
|
|
|
|
|
|
foreach ($currentAssociations as $model => $currentAssociation) {
|
|
|
|
if ($model == $modelB && $association == $currentAssociation) {
|
|
|
|
$validCurrentAssociation = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2009-02-06 23:12:18 +00:00
|
|
|
if ($this->_isValidModel($modelA) && $this->_isValidModel($modelB) && in_array($association, $this->associations) && $validCurrentAssociation) {
|
2008-05-30 11:40:08 +00:00
|
|
|
$this->{$modelA}->unbindModel(array($association => array($modelB)));
|
2011-04-25 19:17:59 +00:00
|
|
|
$this->out(__d('cake_console', "Removed %s association between %s and %s",
|
|
|
|
$association, $modelA, $modelB));
|
2008-05-30 11:40:08 +00:00
|
|
|
} else {
|
2011-04-25 19:17:59 +00:00
|
|
|
$this->out(__d('cake_console', "Please verify you are using valid models, valid current association, and valid association types"));
|
2008-05-30 11:40:08 +00:00
|
|
|
}
|
2013-07-02 22:52:48 +00:00
|
|
|
break;
|
2008-05-30 11:40:08 +00:00
|
|
|
case (strpos($command, "->find") > 0):
|
|
|
|
// Remove any bad info
|
|
|
|
$command = strip_tags($command);
|
|
|
|
$command = str_replace($this->badCommandChars, "", $command);
|
|
|
|
|
|
|
|
// Do we have a valid model?
|
|
|
|
list($modelToCheck, $tmp) = explode('->', $command);
|
|
|
|
|
2009-02-06 23:12:18 +00:00
|
|
|
if ($this->_isValidModel($modelToCheck)) {
|
2008-05-30 11:40:08 +00:00
|
|
|
$findCommand = "\$data = \$this->$command;";
|
2012-11-14 09:00:15 +00:00
|
|
|
//@codingStandardsIgnoreStart
|
2008-05-30 11:40:08 +00:00
|
|
|
@eval($findCommand);
|
2012-11-14 09:00:15 +00:00
|
|
|
//@codingStandardsIgnoreEnd
|
2008-05-30 11:40:08 +00:00
|
|
|
|
|
|
|
if (is_array($data)) {
|
|
|
|
foreach ($data as $idx => $results) {
|
|
|
|
if (is_numeric($idx)) { // findAll() output
|
|
|
|
foreach ($results as $modelName => $result) {
|
|
|
|
$this->out("$modelName");
|
|
|
|
|
|
|
|
foreach ($result as $field => $value) {
|
|
|
|
if (is_array($value)) {
|
|
|
|
foreach ($value as $field2 => $value2) {
|
|
|
|
$this->out("\t$field2: $value2");
|
|
|
|
}
|
|
|
|
|
2009-09-26 21:08:37 +00:00
|
|
|
$this->out();
|
2008-05-30 11:40:08 +00:00
|
|
|
} else {
|
|
|
|
$this->out("\t$field: $value");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else { // find() output
|
|
|
|
$this->out($idx);
|
|
|
|
|
|
|
|
foreach ($results as $field => $value) {
|
|
|
|
if (is_array($value)) {
|
|
|
|
foreach ($value as $field2 => $value2) {
|
|
|
|
$this->out("\t$field2: $value2");
|
|
|
|
}
|
|
|
|
|
2009-09-26 21:08:37 +00:00
|
|
|
$this->out();
|
2008-05-30 11:40:08 +00:00
|
|
|
} else {
|
|
|
|
$this->out("\t$field: $value");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
2011-04-25 19:17:59 +00:00
|
|
|
$this->out();
|
|
|
|
$this->out(__d('cake_console', "No result set found"));
|
2008-05-30 11:40:08 +00:00
|
|
|
}
|
|
|
|
} else {
|
2011-04-25 19:17:59 +00:00
|
|
|
$this->out(__d('cake_console', "%s is not a valid model", $modelToCheck));
|
2008-05-30 11:40:08 +00:00
|
|
|
}
|
|
|
|
|
2013-07-02 22:52:48 +00:00
|
|
|
break;
|
2008-05-30 11:40:08 +00:00
|
|
|
case (strpos($command, '->save') > 0):
|
|
|
|
// Validate the model we're trying to save here
|
|
|
|
$command = strip_tags($command);
|
|
|
|
$command = str_replace($this->badCommandChars, "", $command);
|
|
|
|
list($modelToSave, $tmp) = explode("->", $command);
|
|
|
|
|
2009-02-06 23:12:18 +00:00
|
|
|
if ($this->_isValidModel($modelToSave)) {
|
2008-05-30 11:40:08 +00:00
|
|
|
// Extract the array of data we are trying to build
|
2012-12-20 12:47:03 +00:00
|
|
|
list(, $data) = explode("->save", $command);
|
2009-07-06 07:38:03 +00:00
|
|
|
$data = preg_replace('/^\(*(array)?\(*(.+?)\)*$/i', '\\2', $data);
|
2008-05-30 11:40:08 +00:00
|
|
|
$saveCommand = "\$this->{$modelToSave}->save(array('{$modelToSave}' => array({$data})));";
|
2012-11-14 09:00:15 +00:00
|
|
|
//@codingStandardsIgnoreStart
|
2008-05-30 11:40:08 +00:00
|
|
|
@eval($saveCommand);
|
2012-11-14 09:00:15 +00:00
|
|
|
//@codingStandardsIgnoreEnd
|
2011-04-25 19:17:59 +00:00
|
|
|
$this->out(__d('cake_console', 'Saved record for %s', $modelToSave));
|
2008-05-30 11:40:08 +00:00
|
|
|
}
|
2013-07-02 22:52:48 +00:00
|
|
|
break;
|
2012-09-14 17:54:29 +00:00
|
|
|
case preg_match("/^(\w+) columns/", $command, $tmp):
|
2008-05-30 11:40:08 +00:00
|
|
|
$modelToCheck = strip_tags(str_replace($this->badCommandChars, "", $tmp[1]));
|
|
|
|
|
2009-02-06 23:12:18 +00:00
|
|
|
if ($this->_isValidModel($modelToCheck)) {
|
2008-05-30 11:40:08 +00:00
|
|
|
// Get the column info for this model
|
|
|
|
$fieldsCommand = "\$data = \$this->{$modelToCheck}->getColumnTypes();";
|
2012-11-14 09:00:15 +00:00
|
|
|
//@codingStandardsIgnoreStart
|
2008-05-30 11:40:08 +00:00
|
|
|
@eval($fieldsCommand);
|
2012-11-14 09:00:15 +00:00
|
|
|
//@codingStandardsIgnoreEnd
|
2008-05-30 11:40:08 +00:00
|
|
|
|
|
|
|
if (is_array($data)) {
|
|
|
|
foreach ($data as $field => $type) {
|
|
|
|
$this->out("\t{$field}: {$type}");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
2011-04-25 19:17:59 +00:00
|
|
|
$this->out(__d('cake_console', "Please verify that you selected a valid model"));
|
2008-05-30 11:40:08 +00:00
|
|
|
}
|
2013-07-02 22:52:48 +00:00
|
|
|
break;
|
2012-09-14 17:54:29 +00:00
|
|
|
case preg_match("/^routes\s+reload/i", $command, $tmp):
|
2009-02-06 23:12:18 +00:00
|
|
|
if (!$this->_loadRoutes()) {
|
2012-08-04 17:44:35 +00:00
|
|
|
$this->err(__d('cake_console', "There was an error loading the routes config. Please check that the file exists and is free of parse errors."));
|
2008-09-19 21:33:59 +00:00
|
|
|
break;
|
2008-05-30 11:40:08 +00:00
|
|
|
}
|
2012-08-04 17:44:35 +00:00
|
|
|
$this->out(__d('cake_console', "Routes configuration reloaded, %d routes connected", count(Router::$routes)));
|
2013-07-02 22:52:48 +00:00
|
|
|
break;
|
2012-09-14 17:54:29 +00:00
|
|
|
case preg_match("/^routes\s+show/i", $command, $tmp):
|
2012-08-04 17:44:35 +00:00
|
|
|
$this->out(print_r(Hash::combine(Router::$routes, '{n}.template', '{n}.defaults'), true));
|
2013-07-02 22:52:48 +00:00
|
|
|
break;
|
2009-02-06 23:12:18 +00:00
|
|
|
case (preg_match("/^route\s+(\(.*\))$/i", $command, $tmp) == true):
|
2012-11-14 09:00:15 +00:00
|
|
|
//@codingStandardsIgnoreStart
|
2009-02-06 23:12:18 +00:00
|
|
|
if ($url = eval('return array' . $tmp[1] . ';')) {
|
2012-11-14 09:00:15 +00:00
|
|
|
//@codingStandardsIgnoreEnd
|
2009-02-06 23:12:18 +00:00
|
|
|
$this->out(Router::url($url));
|
|
|
|
}
|
2013-07-02 22:52:48 +00:00
|
|
|
break;
|
2012-09-14 17:54:29 +00:00
|
|
|
case preg_match("/^route\s+(.*)/i", $command, $tmp):
|
2008-09-19 21:33:59 +00:00
|
|
|
$this->out(var_export(Router::parse($tmp[1]), true));
|
2013-07-02 22:52:48 +00:00
|
|
|
break;
|
2008-05-30 11:40:08 +00:00
|
|
|
default:
|
2011-04-25 19:17:59 +00:00
|
|
|
$this->out(__d('cake_console', "Invalid command"));
|
|
|
|
$this->out();
|
2008-05-30 11:40:08 +00:00
|
|
|
}
|
|
|
|
$command = '';
|
|
|
|
}
|
|
|
|
}
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2008-05-30 11:40:08 +00:00
|
|
|
/**
|
|
|
|
* Tells if the specified model is included in the list of available models
|
|
|
|
*
|
|
|
|
* @param string $modelToCheck
|
|
|
|
* @return boolean true if is an available model, false otherwise
|
|
|
|
*/
|
2010-04-05 03:21:28 +00:00
|
|
|
protected function _isValidModel($modelToCheck) {
|
2008-05-30 11:40:08 +00:00
|
|
|
return in_array($modelToCheck, $this->models);
|
|
|
|
}
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2008-09-19 21:33:59 +00:00
|
|
|
/**
|
2011-06-25 14:08:41 +00:00
|
|
|
* Reloads the routes configuration from app/Config/routes.php, and compiles
|
2008-09-19 21:33:59 +00:00
|
|
|
* all routes found
|
|
|
|
*
|
|
|
|
* @return boolean True if config reload was a success, otherwise false
|
|
|
|
*/
|
2010-04-05 03:21:28 +00:00
|
|
|
protected function _loadRoutes() {
|
2010-12-08 01:12:50 +00:00
|
|
|
Router::reload();
|
|
|
|
extract(Router::getNamedExpressions());
|
2008-09-19 21:33:59 +00:00
|
|
|
|
2012-11-14 09:00:15 +00:00
|
|
|
//@codingStandardsIgnoreStart
|
2012-03-03 23:55:07 +00:00
|
|
|
if (!@include APP . 'Config' . DS . 'routes.php') {
|
2012-11-14 09:00:15 +00:00
|
|
|
//@codingStandardsIgnoreEnd
|
2008-09-19 21:33:59 +00:00
|
|
|
return false;
|
|
|
|
}
|
2011-05-23 02:20:56 +00:00
|
|
|
CakePlugin::routes();
|
|
|
|
|
2010-12-08 01:12:50 +00:00
|
|
|
Router::parse('/');
|
2008-09-19 21:33:59 +00:00
|
|
|
return true;
|
|
|
|
}
|
2012-03-03 23:55:07 +00:00
|
|
|
|
2008-05-30 11:40:08 +00:00
|
|
|
}
|