1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

PicoFarad framework for routing

This commit is contained in:
Nicolas Lœuillet 2014-07-11 17:06:51 +02:00
parent 3602405ec0
commit b3cda72e93
9 changed files with 646 additions and 63 deletions

View file

@ -11,8 +11,8 @@
class Routing
{
protected $wallabag;
protected $referer;
protected $view;
public $referer;
public $view;
protected $action;
protected $id;
protected $url;
@ -55,7 +55,7 @@ class Routing
# because messages can be added in $poche->action(), we have to add this entry now (we can add it before)
$this->vars = array_merge($this->vars, array('messages' => $this->wallabag->messages->display('all', FALSE)));
$this->_render($this->file, $this->vars);
$this->render($this->file, $this->vars);
}
private function _defineTplInformation()
@ -142,7 +142,7 @@ class Routing
}
}
private function _render($file, $vars)
public function render($file, $vars)
{
echo $this->wallabag->tpl->render($file, $vars);
}