-1
Good afternoon.
I am learning the development of the YII PHP framework
I’m following a tutorial, in which the person shows how to create the route and how to create it.
I created my controller called Hellocontroller inside the controllers folder
<?php
namespace app\controllers;
use yii\web\Controller;
class HelloController extends Controller
{
public function actionSaySonething()
{
return $this->render('teste',[
]); // TODO: Change the autogenerated stub
}
}
Ai in the views folder I created a folder named hello with a file called test.php
php test.
<?php
echo 'oi';
I noticed that routes are called that way:
http://localhost/basic/web/index.php?r=site%2Flogin
and works with the files that comes with Yii, now when I put
http://localhost/basic/web/index.php?r=hello%2Fteste
can’t find.