| 1 | <?php |
||
| 11 | class RenderController extends \yii\web\Controller |
||
| 12 | { |
||
| 13 | public function getViewPath() |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Index action. |
||
| 20 | * @param string $page |
||
| 21 | * @return string rendered page |
||
| 22 | */ |
||
| 23 | public function actionIndex($page = null) |
||
| 47 | |||
| 48 | public function renderPage($page, array $params = []) |
||
| 62 | |||
| 63 | } |
||
| 64 |
In PHP, under loose comparison (like
==, or!=, orswitchconditions), values of different types might be equal.For
stringvalues, the empty string''is a special case, in particular the following results might be unexpected: