N
N
nepster-web2014-05-13 20:06:09
Yii
nepster-web, 2014-05-13 20:06:09

How to beautifully specify the path from the view of one module to the view of another module in Yii2?

There are 2 modules, entries and comments.
In the view of the recording module, you need to display the form for adding a comment (that is, the view from the comment module)
Is it possible to somehow write beautifully, something like this?

$this->render('//../../../comments/views/default/_form',['article'=>$article])

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2014-05-13
@nepster-web

Put the form in the widget if it really should be rummaged between screens. In general, modules should be isolated from each other (if possible).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question