This repository has been archived by the owner on Feb 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Remove ViewTemplate auto_fetch config option #99
Labels
Comments
johanjanssens
added a commit
that referenced
this issue
May 27, 2016
- Add ViewContentInterface::getEntity() and implement getEntity/setEntity in ViewContext - Remove ViewContextInterface::getContent() - Remove ViewContext::setContent()
johanjanssens
added a commit
that referenced
this issue
May 27, 2016
-Inject the model entity into the context - Move the _fetchData() action callback to ViewTemplate - Remove ViewContent::getContent() use $context->result to return the result of the rendered view
johanjanssens
added a commit
that referenced
this issue
May 27, 2016
johanjanssens
added a commit
that referenced
this issue
May 27, 2016
johanjanssens
added a commit
that referenced
this issue
May 27, 2016
- Remove the auto_fetch config option in ViewTemplate - Move the _fetchData() callback handler from ViewAbstract to ViewTemplate BREAKING! If you do not want a view to auto-matically fetch data from the model you need to override the _fetchData() method
johanjanssens
added a commit
that referenced
this issue
May 27, 2016
johanjanssens
added a commit
that referenced
this issue
May 27, 2016
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Always let the view fetch the model data. In case this is not required an extending view can override the _fetchData() method to provide it's own implementation.
Breaking changes:
The text was updated successfully, but these errors were encountered: