本文整理汇总了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