Skip to content

Commit

Permalink
update function share
Browse files Browse the repository at this point in the history
update function share. Use global fenom Accessor for view template.
  • Loading branch information
maxisoft-git committed Jun 3, 2015
1 parent c134573 commit c63621f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Fenom/FenomFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ public function make($view, $data = [], $mergeData = [])
*/
public function share($key, $value = null)
{
$this->fenom->addAccessor($key, $value);
$this->fenom->{$key} = $value;
$this->fenom->addAccessorSmart($key, '$tpl->getStorage()->'.$key, \Fenom::ACCESSOR_VAR);
}

/**
Expand Down

0 comments on commit c63621f

Please sign in to comment.