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:
parent
3602405ec0
commit
b3cda72e93
9 changed files with 646 additions and 63 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue