Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- abstract class frame extends Loader
- {
- public function __construct()
- {
- parent::__construct();
- if(method_exists($this, $this->url_data['function']) && $this->url_data['function'] != '__construct' && $this->url_data['function'] != $this->url_data['controller'])
- {
- $function = $this->url_data['function'];
- $this->$function();
- }
- elseif($this->url_data['function'] != '' && !method_exists($this, $this->url_data['function']))
- {
- $this->view->loadSelected("404");
- }
- }
- protected function get_view_name($class)
- {
- return get_class("view/views/" . $class);
- }
- protected function load_model($name)
- {
- require_once(dirname(dirname(__FILE__)) . "/models/" . $name . ".php");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment