At this point, you should be fairly familiar with how to initialize a basic Yii framework project. Go ahead and create the base folder structures, and create the index.php
, yiic
, yiic.bat
, and yiic.php
files. Then in the webroot
directory of our application, create a folder called vendors
. This folder will be used for all of our Composer dependencies for us.
If you haven't already created a MySQL user, password, and database for the project, do so now. From the MySQL command line, you can run the following commands to do this:
CREATE USER 'ch3_reminders'@'localhost' IDENTIFIED BY 'ch3_reminders'; CREATE DATABASE IF NOT EXISTS `ch3_reminders`; GRANT ALL PRIVILEGES ON `ch3\_reminders` . * TO 'ch3_reminders'@'localhost';