Skip to content

Instantly share code, notes, and snippets.

@valous
Last active December 15, 2015 07:29
Show Gist options
  • Save valous/5223943 to your computer and use it in GitHub Desktop.
Save valous/5223943 to your computer and use it in GitHub Desktop.
Kontroler
<?php
/**
* Třída Kontroleru!!!
* @version 1.0.0
*/
class Kontroler {
private $class;
private $metoda;
public function instance($class) {
$this->class = new $class();
}
public function metoda($metoda,$param1,$param2) {
$this->metoda = $this->class->$metoda($param1,$param2);
}
public function view($sablona) {
require_once './view/sablony/' . $sablona . '.php';
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment