开发者

ATK4 Fatal Error

Fatal error: Class 'h1' not found in /home/iracersr/public_html/atk4/lib/AbstractObject.php on line 131

I have installed the latest version and here is the code im using. Any suggestions?

<?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']);
        }
    }
}


It's case sensitive.

->add('H1');
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜