Example #1
0
 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);
 }
Example #2
0
 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);
 }
Example #3
0
 public function library()
 {
     Import::style(func_get_args());
     return $this;
 }
Example #4
0
 public function library()
 {
     $arguments = array_unique(func_get_args());
     Import::style($arguments);
     return $this;
 }