meta = array( 'Keywords' => '', 'description' => '', ); } //前処理 protected function preprocess(){ parent::preprocess(); } // メイン処理 protected function main(){ $this->producer(); $this->news(); } //生産者を表示(スライドショー用) protected function producer(){ $Lister = Lister::getInstance('Producer'); $Lister->limitRows = 8; $Lister->orderby= array('producer_id' => 'desc'); $Producers = $Lister->get('object',2); foreach($Producers as $key => $Producer){ $this->out['Producer'][$key] = $Producer->convert(); $this->out['Producer'][$key]['img'] = $Producer->file()->get_output(); } } //新着情報を表示 protected function news(){ $Lister = Lister::getInstance('News'); $Lister->limitRows = 5; $Lister->orderby= array('news_id' => 'desc'); $Newss = $Lister->get('object',2); foreach($Newss as $key => $News){ $this->out['News'][$key] = $News->convert(); $this->out['News'][$key]['img'] = $News->file()->get_output(); } } //後処理 protected function postprocess(){ parent::postprocess(); } //最後に必ず行う処理 protected function necessary(){ parent::necessary(); } } //実行 $ThisPage = Page::getInstance(); /* echo '
';
unset($ThisPage->out['main']);
unset($ThisPage->out['pickups']);
unset($ThisPage->out['products']);
//print_r($ThisPage->out['Client']);
print_r($ThisPage->out);
//print_r($_POST);
echo '
'; */ ?>