predominant / TwigView

Twig for CakePHP
http://cakealot.com
MIT License
78 stars 31 forks source link

Error using variable.created|ago #8

Open asecondwill opened 12 years ago

asecondwill commented 12 years ago

Argument 1 passed to TimeHelper::__construct() must be an instance of View

when doing things like: {{levelPerson.LevelPerson.created|ago}}

line 9 looks like this:

$time = new TimeHelper();

So, have i done something wrong to make it need the view (don't think so) or do we need to access the view intance from within the twig extension? Does anybody have a suggestion how to do that?