D
D
des1roer2015-05-20 07:40:00
Yii
des1roer, 2015-05-20 07:40:00

Yii how to connect a folder with pages?

Suppose I want to display a static page.
I put it in protected\views\site\pages\mypage\DataTables\page.php
how can I display this page (and others in the same folder).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Volegov, 2015-05-20
@EagleMoor

I hope you started learning Yii2 right away. Then everything is according to the manual - www.yiiframework.com/doc-2.0/guide-start-hello.html
For Yii1 - www.yiiframework.com/doc/guide/1.1/en/basics.view#... well, just create action and execute it, the framework will curse itself and tell you where to put the view.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question