Welcome, Guest!
This is the homepage of My Web Application. You may modify the following files to customize the conent of this page:
- /var/www/apteki/vendor/yiisoft/yii/build/commands/lite/protected/controllers/SiteController.php
- This file contains the SiteController class which is the default application controller. Its default index action renders the content of the following two files.
- /var/www/apteki/vendor/yiisoft/yii/build/commands/lite/protected/views/site/index.php
- This is the view file that contains the body content of this page.
- /var/www/apteki/vendor/yiisoft/yii/build/commands/lite/protected/views/layouts/main.php
- This is the layout file that contains common presentation (such as header, footer) shared by all view files.
What's Next
- Implement new actions in SiteController, and create corresponding views under /var/www/apteki/vendor/yiisoft/yii/build/commands/lite/protected/views/site
- Create new controllers and actions manually or using the yiic tool.
- If your Web application should be driven by database, do the following:
- Set up database connection by configuring the
db
component in the application configuration /var/www/apteki/vendor/yiisoft/yii/build/commands/lite/protected/config/main.php - Create model classes under the directory /var/www/apteki/vendor/yiisoft/yii/build/commands/lite/protected/models
- Implement CRUD operations for a model class. For example, for the Post model class, you would create a PostController class together with create, read, update and delete actions.
- Set up database connection by configuring the
If you have problems in accomplishing any of the above tasks, please read Yii documentation or visit Yii forum for help.