Answer the question
In order to leave comments, you need to log in
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
is the crud itself, how can I call it correctly?
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
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question