Exemplo n.º 1
0
 public function getFragmentData($fid, $other = [])
 {
     return DataSource::getFragmentData($fid, $other);
 }
Exemplo n.º 2
0
 public function getDataSource($where = null, $orderBy = null, $limit = 10, $options = [])
 {
     $datas = DataSource::getContents($where, $orderBy, $limit, $options);
     return $datas;
 }
Exemplo n.º 3
0
<?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']]);
?>
        
Exemplo n.º 4
0
 public function getFragmentData($code, $options = [])
 {
     return DataSource::getFragmentData($code, $options);
 }