/www/slight

To get this branch, use:
bzr branch http://bzr.ed.am/www/slight

« back to all changes in this revision

Viewing changes to flight/template/View.php

  • Committer: Tim Marston
  • Date: 2015-12-01 11:00:20 UTC
  • Revision ID: tim@ed.am-20151201110020-fyuq0f0bg69cxcbv
renamed project; added connect() method and e() and link() helpers

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
     */
63
63
    public function set($key, &$value = null) {
64
64
        if (is_array($key) || is_object($key)) {
65
 
            foreach ($key as $k => &$v) {
 
65
            foreach ($key as $k => $v) {
66
66
                $this->vars[$k] = $v;
67
67
            }
68
68
        }
69
69
        else {
70
 
            $this->vars[$key] = &$value;
 
70
            $this->vars[$key] = $value;
71
71
        }
72
72
    }
73
73