How do you use a Yii app without a database

I was interested in creating a Yii app without a database. Unfortunately, you can’t create a controller unless a table exists with the same name. Is there a way to do this?

Could you elaborate more about your problem? It is ahrd to understand you

You can create a controller manually, by writing a class in the folder controllers named SomethingController.php.

In this file you can write


   class SomethingController extends CController


      public function actionDoSomething()





Look at the ‘blog’ example in the download. The ‘about’ page is static if I remember. Use the same principal :)