Пример #1
0
 public static function getCat()
 {
     $catName = "index";
     if (count($_GET) > 0) {
         self::$data = $_GET;
         if (array_key_exists('cat', array_filter(self::$data))) {
             return self::$data['cat'];
         }
     }
     return $catName;
 }
Пример #2
0
<?php

// $option = json_decode(file_get_contents('config/system.json'),true);
// foreach ($option['path'] as $key => $value) {
// 	define($key,$value);
// }
require 'init.inc.php';
$cat = new Cat_Mod();
$rs = $cat->getSource('3');
print_r($rs);
print_r($__GET);
Пример #3
0
 public function showCat()
 {
     $name = get_called_class();
     $this->cat = Cat_Mod::getCat();
     $this->con->display($this->cat . '.tpl');
 }