mock application

Please how do I mock a complete Yii2 application. Generate every other thing like controller, view, and so on, but without model.

Thanks

What do you want it for?

I want to do a brief demo for my project. Create controllers and views without model.

That is, render view without model.

The quickest way is to generated CRUD-s including models.

I now this is old but:

To do what you are asking, go to gii, generate controller, in the actions you want to add to controller add the ones you want, generate it. Gii will create the controller, that actions, and basic views for each action.

You will need to hand code everything in those views.

‘site/about’ doesn’t use a model.