/** * 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 />"; }
<!-- 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); ?> .
/** * 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); }