本操作均來自於https://www.yiichina.com/doc/guide/2.0/start-hello的指導
1、先看結果
注意有一個坑的地方在於官網指導上給的連接沒有8080的端口
這個是我自己用的 => http://localhost:8080/index.php?r=site/say&message=Hello+World
2、具體做法均按照官網指導即可
SiteController.php 添加如下代碼
3、Views -> Site下面添加say.php
本操作均來自於https://www.yiichina.com/doc/guide/2.0/start-hello的指導
1、先看結果
注意有一個坑的地方在於官網指導上給的連接沒有8080的端口
這個是我自己用的 => http://localhost:8080/index.php?r=site/say&message=Hello+World
2、具體做法均按照官網指導即可
SiteController.php 添加如下代碼
3、Views -> Site下面添加say.php
$fileContent = trim($fileContent); $fileContent=$queueList->characet($fileContent);