Skip to content
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

Summary on complete_content #26

Open
numitec opened this issue Jan 10, 2019 · 1 comment
Open

Summary on complete_content #26

numitec opened this issue Jan 10, 2019 · 1 comment
Assignees

Comments

@numitec
Copy link

numitec commented Jan 10, 2019

Hello Andre,

and thanks for your work.

I'm using a 4-steps wizard and I like to display a summary-step at the end. I've tried with:

'complete_content' => $this->render( 'complete', [
				'model' => $model,
				'addresses' => $addresses,
				'interfaces' => $interfaces,
				...
			] ),

But it seems it executes the view at the beginning and what I really need is to show all the data the user has filled on the previous setps.

Any ideas?

Thank you!

@drsdre
Copy link
Owner

drsdre commented Jan 29, 2019

You have to make sure that the rendered view does not return headers and footers as this has already been rendered above and beyond the widget. I would suggest to user renderPartial. for example

'complete_content' => $this->renderPartial('complete', [ 'model' => $model, 'addresses' => $addresses, 'interfaces' => $interfaces, ... ] ),

@drsdre drsdre self-assigned this Jan 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants