Example #1
0
 /**
  * 
  * @param type $url
  * @param type $params
  */
 private static function checkMe($url, $params)
 {
     if (count($params) > 0 && isset($params["path"]) && isset($params["path"])) {
         $is_it = Route::checkValidRoute($url, $params["path"]);
         if ($is_it === true) {
             $file = self::fileExists($params["page"]);
             if ($file !== false) {
                 require_once $file;
                 return true;
             }
             return false;
         } elseif (is_array($is_it)) {
             $method = Route::methodExists($params["page"]);
             if ($method !== false) {
                 $object = new $method["class"]();
                 $values = implode(",", $is_it);
                 return call_user_func_array(array($object, $method["method"]), $is_it);
             }
             return false;
         }
     }
     return false;
 }