3

I just found out that my actions can use the same view just, just changing some parameters.

So, as /controller/ loads 'path/to/scripts/controller/index.phtml', I want controller/action1 to load also 'path/to/scripts/controller/index.phtml' instead of loading 'path/to/scripts/controller/action1.phtml', as it does by default. Which is the cleanest way to do this?

1 Answer 1

3

You can do this in your action1 of the same controller:

$this->_helper->viewRenderer('index');
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.