本文整理汇总了PHP中Style::selectGenre方法的典型用法代码示例。如果您正苦于以下问题:PHP Style::selectGenre方法的具体用法?PHP Style::selectGenre怎么用?PHP Style::selectGenre使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Style
的用法示例。
在下文中一共展示了Style::selectGenre方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: run
public function run()
{
//Filter::initialization();
//error_log(print_r(Yii::app()->basePath,true));
$data = array();
$event = Events::$even;
if (Filter::getSortByDate()) {
usort($event, "Events::sortByDate");
} elseif (Filter::getSortByPopularity()) {
usort($event, "Events::sortByPopularity");
}
//error_log(print_r($this->controller->getViewFile('poster'),true));
$data['ajaxContent'] = $this->controller->renderPartial('poster', array('parameters' => $event), true);
$data['main_menu'] = $this->controller->renderPartial('main_menu', array(), true);
$location = new Location();
$style = new Style();
$data['country'] = $location->selectContry();
if (!Filter::getCountryId()) {
Filter::setCountryId(current(array_keys($data['country'])));
}
$data['city'] = $location->selectCity(Filter::getCountryId());
if (!Filter::getCityId()) {
Filter::setCityId(0);
}
//Filter::setCityId(current(array_keys($data['city'])));
$data['style'] = $style->selectStyle();
if (!Filter::getStyleId()) {
Filter::setStyleId(current(array_keys($data['style'])));
}
/*Filter::getStyleId()*/
$data['genre'] = $style->selectGenre(Filter::getStyleId());
if (!Filter::getGenreId()) {
Filter::setGenreId(current(array_keys($data['genre'])));
}
$data['model'] = new FilterForm();
$this->controller->render('index', $data);
//$this->controller->render('translationUser', array('row'=>0));
}