本文整理汇总了PHP中Import::style方法的典型用法代码示例。如果您正苦于以下问题:PHP Import::style方法的具体用法?PHP Import::style怎么用?PHP Import::style使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Import
的用法示例。
在下文中一共展示了Import::style方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: main
public function main($params = '')
{
//----------------------------------------------------------------------------------------------------
// Gönderilen veriler: font, style, title
//----------------------------------------------------------------------------------------------------
$data['font'] = Import::font('font', true);
$data['style'] = Import::style('style', true);
$data['title'] = 'ZERONEED PHP WEB FRAMEWORK';
//----------------------------------------------------------------------------------------------------
// Dahil edilen sayfa: Application/Views/welcome.php
//----------------------------------------------------------------------------------------------------
Import::view('welcome', $data);
}
示例2: index
public function index($params = "")
{
/******************************************************************************************
* Gönderilen Veriler *
*******************************************************************************************
| 1. title => ZN FRAMEWORK |
| 2. style => Views/Styles/style.css |
| 3. font => Views/Fonts/textfont.ttf |
| 4. welcomeMessage => ZN KOD ÇATISINA HOŞ GELDİNİZ |
******************************************************************************************/
$data["title"] = "ZN FRAMEWORK";
$data["style"] = Import::style("style", true);
$data["font"] = Import::font("textfont", true);
$data["welcomeMessage"] = "PHP Web Framework <b>Made In Turkey</b>";
/******************************************************************************************
* Dahil Edilen Welcome.php Görünüm Sayfası *
*******************************************************************************************
| 1. welcome => Views/Pages/welcome.php sayfası dahil ediliyor. |
| 2. data => Yukarıdaki verileri tutan data dizisi dahil edilen sayfaya gönderiliyor. |
| 3. false => Sayfa doğrudan görüntüleniyor. |
| NOT: Bu işlem için view() ya da page() yöntemlerinden her ikiside kullanılabilir. |
******************************************************************************************/
Import::view("welcome", $data);
}
示例3: library
public function library()
{
Import::style(func_get_args());
return $this;
}
示例4: library
public function library()
{
$arguments = array_unique(func_get_args());
Import::style($arguments);
return $this;
}