Yii2 Development Blog

Scribblings of a Yii noob

In chapter 4 (around pages 97-99) we are shown how to create a new output formatter which will render the page in Yaml syntax, but it results in:

This webpage is not available (Chrome, with a console error of 'net::ERR_INVALID_RESPONSE')
File not found (Firefox)

Continue Reading...

In chapter 4 (around pages 95-96) we are shown a throwaway snippet as an example of outputting a view in JSON format which results in a fatal error:

PHP Fatal Error – yii\base\ErrorException Class 'app\controllers\Response' not found

Continue Reading...

In chapter 3 (around pages 72-73) we update the layout file to use some assets to make our pages look better, but this can result in a fatal error:

PHP Fatal Error – yii\base\ErrorException Call to undefined method yii\helpers\Html::csrfMetaTags()

Continue Reading...