Arbit - project tracking

Dwoo

#42: $dwoo->data can't be accessed because it's protected

Issue revisions

  • closed by Matthias Loitsch at 2009-S-22 16:28
Type bug bug
State closed closed
Priority normal normal
Resolution fixed fixed
Assigned to Jordi Boggiano
Scheduled for 1.1.1
Affected versions
Affected components Core
Last change Tuesday 22 September 2009 16:28:38 UTC by Matthias Loitsch

When you write {$.foo} in a template it gets converted to $this->data['foo'], which is great, except when using this syntax in a {template}, it becomes $dwoo->data['foo'] which doesn't work since data is protected. Changin {$} to become $dwoo->getData() is no alternative either, because $dwoo->getData()['foo'] is invalid syntax.

So: change Dwoo->data to be public.

  • Jordi Boggiano at Monday 12 October 2009 21:19:01 UTC

    Applied in changeset r292.