nazolabo

フリーランスのWebエンジニアが近況や思ったことを発信しています。

ところで

Ethna_Renderer.php

    function perform($template = null)
    {
        if ($template == null && $this->template == null) {
            return Ethna::raiseWarning('template is not defined');
        }

        if ($template != null) {
            $this->template = $template;
        }

        // テンプレートの有無のチェック
        if (is_readable($this->template_dir . $this->template)) {
            include_once $this->template_dir . $this->template;
        } else {
            return Ethna::raiseWarning("template is not found: " . $this->template);
        }
    }

で、テンプレートの有無のチェックにtemplateExists()を使ってないのがちょっと気持ち悪い。バグじゃないけど。Ethna_Renderer_Smarty.phpはまた違う方法で書いてるし。