I beginner yii, according to provide examples, write that Hello World, after writing, has been prompted this error do not know what meaning, have a master, please help, thank you!
Fatal error:uncaught exception ' CException ' with message ' Application base path ' protected ' was not a valid directory. ' E:\works\myframe\framework\base\CApplication.php on line 244
Reply to discussion (solution)
You didn't create the project, did you?
The project should not be built yet.
Error message ptotected This folder is invalid.
Go to the official down a demo down.
Of course, using Yii's own tools, YIIC can also build projects.
Use commands under MSDOS, search for details
I manually built the project, just don't know why, can provide a simple Hello World example?
I don't have such a framework, so I can't provide the sample code. But they should provide a sample code
All frameworks create a large pile of folders and files when creating a project, and a simple copy is not possible because they are fixed project paths
In this respect do relatively good is thinkphp, after all, is domestic, humanized point
But emptying the Runtime directory is something that beginners don't dare to do.
First you use the Yii tool YIIC to create a webapp and then the framework can be used, you manually create the directory, is not initialized
Use YIIC to create an application to the official web or http://www.yiibook.com/study
Misleading, what version is still in YIIC? First put the YII framework under your project directory, get a configuration directory, direct access to the GII can be built with scaffolding projects, as for the project directory structure, you just follow the gourd to create a few basic directories, the most important is the protected directory, and its subdirectory config directory.
Yii is a good framework and can be quickly started!
Build a project with YIIC WebApp