本文整理汇总了PHP中Articles::getList方法的典型用法代码示例。如果您正苦于以下问题:PHP Articles::getList方法的具体用法?PHP Articles::getList怎么用?PHP Articles::getList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Articles
的用法示例。
在下文中一共展示了Articles::getList方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: actionIndex
public function actionIndex()
{
$Articles = new Articles();
$list = $Articles->getList();
echo "<pre>";
print_r($list);
die;
}
示例2: __construct
function __construct()
{
$tree = Tree::getTreeByUrl('gal');
Funcs::setMeta($tree);
if (Funcs::$uri[1] == '') {
$tree['pic'] = $tree['fields']['files_gal1'][0]['path'];
$tree['list'] = Articles::getList($tree['id']);
$tree['tags'] = Articles::getTagList($tree['id']);
View::render('articles/list', $tree);
} else {
$parents = Tree::getParents($tree['id']);
$parentTree = Tree::getTreeById($parents[count($parents) - 3], 'gal');
$tree['pic'] = $parentTree['fields']['files_gal1'][0]['path'];
$tree['list'] = Articles::getOne($tree['id']);
$tree['tags'] = Articles::getTags($tree['id']);
View::render('articles/one', $tree);
}
}