【问题标题】:ATK4 Fatal ErrorATK4 致命错误
【发布时间】:2011-09-08 02:30:14
【问题描述】:

致命错误:在第 131 行的 /home/iracersr/public_html/atk4/lib/AbstractObject.php 中找不到类“h1”

我已经安装了最新版本,这是我使用的代码。有什么建议吗?

<?php
class page_index extends Page {
    function init(){
        parent::init();
        $p=$this;
        //Get Articles
        $articles=$this->add('Model_News')->getRows();

        $p->add('h1')->set('Latest News');

        foreach($articles as $article){
            $content=$this->add('view',null,null,array('view/blog'));
            $content->template->set('title',$article['title']);
            $content->template->set('content',$article['content']);
        }
    }
}

【问题讨论】:

    标签: atk4


    【解决方案1】:

    区分大小写。

    ->add('H1');
    

    【讨论】:

      猜你喜欢
      • 2018-05-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-05-13
      • 2012-08-15
      • 2014-02-15
      • 2010-11-14
      • 2016-08-15
      相关资源
      最近更新 更多