本文整理汇总了PHP中Song::findAll方法的典型用法代码示例。如果您正苦于以下问题:PHP Song::findAll方法的具体用法?PHP Song::findAll怎么用?PHP Song::findAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Song
的用法示例。
在下文中一共展示了Song::findAll方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: execute
public function execute($smarty, $params, $session)
{
$smarty->assign('name', $session['screen_name']);
$artists = Artist::findAll();
$smarty->assign('artists', $artists);
$songs = Song::findAll();
$smarty->assign('songs', $songs);
$parts = Part::findAll();
$smarty->assign('parts', $parts);
$smarty->display('index.tpl');
}
示例2: actionImusic
public function actionImusic()
{
Createmusiclist();
$url = "http://" . Yii::app()->params['bucket'] . "." . Yii::app()->params['domain'] . "/";
$songModel = new Song();
$songInfo = $songModel->findAll('userid=:uid', array(':uid' => Yii::app()->session['uid']));
$data = array('songInfo' => $songInfo, 'url' => $url);
$this->render("imusic", $data);
}
示例3: actionMusic
public function actionMusic($who)
{
$uid = $who;
$this->Myaccess($uid);
$songModel = new Song();
$data['musiclist'] = $songModel->findAll('userid=:uid', array(':uid' => $uid));
if (empty($data['musiclist'])) {
$data['message'] = "Oh,Sorry~,Empty in Music List。~";
$data['backup'] = "/index/index";
$data['params'] = array();
$this->layout = "//layouts/error";
$this->render("error", $data);
die;
}
$data['uid'] = $uid;
$data['url'] = "http://" . Yii::app()->params['bucket'] . "." . Yii::app()->params['domain'] . "/";
$this->layout = "//layouts/illokit";
$this->render('music', $data);
}