I
I
Ivan Lykov2017-09-29 20:21:11
Yii
Ivan Lykov, 2017-09-29 20:21:11

How do I open a view after CRUD?

Good day, tell me guys, I'm making a forum on yii2 (I'm practicing). I thought in advance to make an admin panel, I did CRUD. At the root, I created the Modules folder in it admin and CURD settled there. I call the admin panel in the line on this path forum/web/index.php?r=admin from this directory, tobish default.
Here 59ce80a355dc7738277953.png
is the crud itself, how can I call it correctly?
59ce80f71c9d9422791147.png
And how else to set up Nav::widget in the admin panel so that links from the admin folder open . The
question is banal ... ps (do not throw tomatoes: ()

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Fedorov, 2017-09-29
@Jhon_Light

view needs to be called with a small one, it itself is called from the controller,
that is, $this->render('index'); in the controller , it TourismController.php’s /views/tourismm/index.php
like this:
forum/web/index.php? r=admin/tourism/index

D
Dmitry, 2017-09-29
@slo_nik

Good evening.
Here, start with this article. Well, further on all the links on the blog)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question