Example #1
0
 static function pageTitle()
 {
     return Tool::capitalize(Tool::camelToSeparater(implode(' ', \control\Route::$parsedUrlTokens), ' '));
 }
Example #2
0
 function default_title()
 {
     //it is assumed the show concern is called before now, and can be relied on
     $keys = $this->concerns['show'] ? array_keys($this->concerns['show']) : array_keys($this->defaultConcernData);
     foreach ($keys as $key) {
         $titles[$key] = ucwords(preg_replace('@_@', ' ', Tool::camelToSeparater($key)));
     }
     return $titles;
 }