本文整理匯總了PHP中Resources::load_styles方法的典型用法代碼示例。如果您正苦於以下問題:PHP Resources::load_styles方法的具體用法?PHP Resources::load_styles怎麽用?PHP Resources::load_styles使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Resources
的用法示例。
在下文中一共展示了Resources::load_styles方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: action_catalog
public function action_catalog()
{
$materials = new Model_Material('groups');
//получаем url материала
$materialID = $this->request->param('id');
$material = $materials->getMaterial($materialID);
$fields = $materials->getFields2($materialID, TRUE);
$this->template->title = $material['name'];
$this->template->page_title = $material['name'];
$this->template->keywords = $material['keywords'];
$this->template->description = $material['description'];
$this->template->links = array('<link rel="canonical" href="' . Kohana::$base_url . 'catalog/' . $materialID . '.html"/>');
$this->template->styles = Resources::load_styles();
if (!$material['id']) {
throw new HTTP_Exception_404();
}
//обновляем просмотры
$materials->updateViews($material['id']);
$widgets[] = Request::factory('widgets/material/index/' . $materialID)->execute();
$this->template->block_center = $widgets;
}
示例2: foreach
<!-- --><?php
//foreach ($links as $link):
?>
<!-- --><?php
//=$link
?>
<!-- --><?php
//endforeach
?>
<title>
<?php
echo $title;
?>
</title>
<?php
Resources::load_styles();
?>
<!--[if IE]><link rel=stylesheet href=css/ie.css type=text/css media=all /><![endif]-->
</head>
<body>
<?php
if (isset($top_menu)) {
?>
<?php
foreach ($top_menu as $tmenu) {
?>
<?php
echo $tmenu;
?>
<?php