Do you guys always use the testdrive demo when creating a new project? Or is it possible to start completely from scratch? If so, what are the minimum required files? Testdrive creates lots of files and folders while some even empty, so I’m having a hard time traversing the directories.
the demo app generated using command-line sometimes confuse newcomers because it demonstrate a fairly amount of necessary features that Yii has.
any way the very basic yii application contains only 2 files (and one folder).
for very basic hello world application you need only 1 Controller and 1 action to handle the request, so do not use command line tool to generate the demo, but let us do this just by creating ‘myApplication’ folder under WEBROOT with the following structure:
- WEBROOT
+ framework //----> this is the main yii application folder
- myApplication
- controller
SiteController.php
index.php