Core lib of filesite.io, a small PHP Framework. https://fsc.filesite.io
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
501 B

3 years ago
<?php
/**
* Command Controller
*/
Class CommandController extends Controller {
public function actionIndex() {
$commands = <<<eof
Actions:
- test
Usage:
3 years ago
php command.php action parameters
3 years ago
eof;
echo $commands;
exit;
}
public function actionTest() {
3 years ago
echo "## App variables:\n";
3 years ago
print_r(FSC::$app);
3 years ago
echo "\n";
echo "## GET parameters:\n";
print_r($this->get());
echo "\n";
3 years ago
exit;
}
}