开发者

ATK4 Fatal Error

开发者 https://www.devze.com 2023-04-03 13:22 出处:网络
Fatal error: Class \'h1\' not found in /home/iracersr/public_html/atk4/lib/AbstractObject.php on line 131

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

精彩评论

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