|
|||
|
Hello,
I'm stuck to this problem quite a while now. How to include a complete Controller Action and the associated view script into another view script? controllers/TestController.php: PHP Code:
PHP Code:
PHP Code:
The output should look like this (assumed above example is working): HTML Code:
This is the normal index output. And now the output from TestController.selectAction: Does it work? Yes. Regards, Dennis |
|
|||
|
The 'dirty' solution could be to do a http-request to /test/select in the index controller. Put the response in a variable ($this->view->selectOutput) and use this in your index.phtml.
That is wat I was thinking. It seems to be easy to do, but maybe not so 'nice'. Snef |
![]() |
| Thread Tools | |
| Display Modes | |
|
|