예제 #1
0
 /**
  * GET /config action
  *
  * @route {method: get, name: "home/config", path: "/config"}
  *
  * @return void
  */
 public function getConfig()
 {
     // $tConfig = new Config();
     // $tConfig->add("/var/www/test.yml");
     // $tConfig->add("/var/www/test2.yml");
     // var_dump($tConfig->get());
     echo "application configuration:<br />";
     String::vardump($this->application->config);
     echo "<br />";
     echo "module configuration:<br />";
     String::vardump($this->moduleConfig);
     echo "<br />";
 }
예제 #2
0
<!-- layout: default -->

Current Module: <?php 
echo $moduleName;
?>
<br />
Testing: <?php 
echo $welcomeText;
?>
<br />

<?php 
\Scabbia\Helpers\String::vardump($this->controller->routeInfo);
\Scabbia\Helpers\String::vardump(\Scabbia\Framework\ApplicationBase::$current->config);
?>

.
예제 #3
0
 /**
  * A sample for event-member method for requestBegin event
  *
  * @event {on: requestBegin, priority: 10}
  *
  * @param null|array $uEventArgs arguments for the event
  *
  * @return void
  */
 public static function onRequestBegin($uEventArgs)
 {
     // echo "onRequestBegin<br />";
     String::vardump($uEventArgs);
 }