Microweber\Providers\Template::dir PHP Method

dir() public method

public dir ( $add = false )
    public function dir($add = false)
    {
        if (!defined('TEMPLATE_DIR')) {
            $this->app->content_manager->define_constants();
        }
        if (defined('TEMPLATE_DIR')) {
            $val = TEMPLATE_DIR;
        }
        if ($add != false) {
            $val = $val . $add;
        }
        return $val;
    }