getHelperPath() public static method

public static getHelperPath ( )
Example #1
0
 private function generatePhpHelper()
 {
     $routesPhpHelperPath = Path::join(ROOT_PATH, ApplicationPaths::getHelperPath(), 'GeneratedUriHelper.php');
     if (UriHelperGenerator::generate()->saveToFile($routesPhpHelperPath) !== false) {
         $this->_output->writeln("File with PHP uri helpers is generated in <info>{$routesPhpHelperPath}</info>");
     }
 }
Example #2
0
 private function _loadHelpers()
 {
     $viewHelperPath = Path::join('Helper', 'ViewHelper.php');
     $appHelperPath = Path::join(ROOT_PATH, ApplicationPaths::getHelperPath(), 'ApplicationHelper.php');
     $formHelperPath = Path::join('Helper', 'FormHelper.php');
     $urlHelperPath = Path::join(ROOT_PATH, ApplicationPaths::getHelperPath(), 'UrlHelper.php');
     $this->_requireOnce($viewHelperPath);
     Files::loadIfExists($appHelperPath);
     $this->_requireOnce($formHelperPath);
     Files::loadIfExists($urlHelperPath);
 }