Ouzo\ApplicationPaths::getHelperPath PHP Method

getHelperPath() public static method

public static getHelperPath ( )
    public static function getHelperPath()
    {
        $controllerPath = Config::getValue('path', 'helper');
        return $controllerPath ? $controllerPath : Path::join('Application', 'Helper');
    }

Usage Example

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>");
     }
 }
All Usage Examples Of Ouzo\ApplicationPaths::getHelperPath