About the Yii problem!

Source: Internet
Author: User
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

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.