New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix data reset from render due to getting value set from the controller ... #8
Conversation
…er ->data with ->view->setInnerData()
| @@ -217,7 +217,7 @@ protected function render() | |||
| $this->view->setFormat($this->getFormat()); | |||
| if (! $this->response->getContent()) { | |||
| // set data | |||
| $data = (array) $this->getData(); | |||
| $data = (array) $this->getData() + (array) $this->view->getInnerData(); | |||
| $this->view->setInnerData($data); | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or we want to add the values to setInnerData() in view than resetting it .
|
@pmjones not a good fix ? |
|
This is a priority fix . I wonder why you didn't merged this . Probably working on a different rendering strategy ? |
|
Also this is related with issue #6 which I closed 4 days back. Have a look into it . |
|
Help me to understand what the point is. What bug does this fix? |
|
@pmjones sure I will try . Have a look into an example https://github.com/harikt/Hari.Blog/blob/master/src/Hari/Blog/Web/Post/Page.php#L19 And now in https://github.com/auraphp/Aura.Framework/blob/master/src/Aura/Framework/Web/AbstractPage.php Where Which is set at constructor https://github.com/auraphp/Aura.Web/blob/master/src/Aura/Web/AbstractPage.php#L93 So the Or in the action we need to set to |
|
Closing for we don't set data this way . But via |
As we are already setting the data from controller as
We are missing to merge these both data from the
Aura\Framework\Web\AbstractPage::render()