コード例 #1
0
ファイル: FrontView.php プロジェクト: martin20140408/lulucms2
 public function getFragmentData($fid, $other = [])
 {
     return DataSource::getFragmentData($fid, $other);
 }
コード例 #2
0
ファイル: BaseView.php プロジェクト: hucongyang/lulucms2
 public function getDataSource($where = null, $orderBy = null, $limit = 10, $options = [])
 {
     $datas = DataSource::getContents($where, $orderBy, $limit, $options);
     return $datas;
 }
コード例 #3
0
ファイル: index.php プロジェクト: phpsong/lulucms2
<?php

use yii\web\View;
use yii\helpers\Html;
use yii\helpers\Url;
use source\libs\Resource;
use source\core\widgets\ListView;
use source\core\widgets\LinkPager;
use source\libs\DataSource;
use source\core\widgets\LoopData;
/* @var $this source\core\front\FrontView */
$this->layout = 'main';
$this->title = '首页';
$locals = DataSource::getPagedContents();
?>

<?php 
$this->loopData($locals['rows'], '//_inc/content_default');
$this->showPager(['pagination' => $locals['pager']]);
?>
        
コード例 #4
0
ファイル: FrontView.php プロジェクト: cookedsteak/lulucms2
 public function getFragmentData($code, $options = [])
 {
     return DataSource::getFragmentData($code, $options);
 }