library/Template.php
public function initCustomTemplates()
    {
        $directory = MUNICIPIO_PATH . 'library/Controller/';

        foreach (@glob($directory . "*.php") as $file) {
            $class = '\Municipio\Controller\\' . basename($file, '.php');

            if (!class_exists($class)) {
                continue;
            }

            if (!method_exists($class, 'registerTemplate')) {
                continue;
            }

            $class::registerTemplate();
            unset($class);
        }
    }
public function initCustomTemplates()
    {
        $directory = MUNICIPIO_PATH . 'library/Controller/';

        foreach (@glob($directory . "*.php") as $file) {
            $class = '\Municipio\Controller\\' . basename($file, '.php');

            if (!class_exists($class)) {
                continue;
            }

            if (!method_exists($class, 'registerTemplate')) {
                continue;
            }

            $class::registerTemplate();
            unset($class);
        }
    }
public function initCustomTemplates ( ) { $ directory = MUNICIPIO_PATH . 'library/Controller/' ; foreach ( @ glob ( $ directory . "*.php" ) as $ file ) { $ class = '\Municipio\Controller\\' . basename ( $ file , '.php' ) ; if ( ! class_exists ( $ class ) ) { continue ; } if ( ! method_exists ( $ class , 'registerTemplate' ) ) { continue ; } $ class :: registerTemplate ( ) ; unset ( $ class ) ; } }
Initializes custom templates
@return void
Initializes custom templates