YIIC and migrate

Source: Internet
Author: User

Preface

Currently doing PHP project, sometimes out of the question, development will say, that YIIC you ran no, that migrate you ran No. What the hell is this, confused, right?

First, a word about Yii is what, the back is good to specify.

Yii is a high-performance PHP framework for developing large Web applications based on components, pure OOP. It gives you the ultimate in reusability in WEB programming and dramatically accelerates the development process.

BodyYIIC

A powerful YIIC tool for the YII framework.

First of all, from the test point of view to get the development of the YIIC command how to use, and how to see this command specifically implemented what content.

Default profile directory: Webapp\protected\commands (WebApp corresponds to your project directory)

Run YIIC command

CD webapp/protected/php yiic somecommand

This somecommand corresponds to the php file of the same name in the Webapp\protected\commands directory.

So this command specifically did something, open to study it to understand.

Migrate

The YII Framework provides a command for data migration.

Default profile directory: Webapp\protected\migrations (WebApp corresponds to your project directory)

Run Migrate command

CD webapp/protected/php migrate somemigrate

This somemigrate corresponds to a php file of the same name in the Webapp\protected\migrations directory, and the contents of this file are related to database operations.

So what does this command do, open to study and understand.

Why use Yii

What is yii capable of?

This is what I have learned to make up again ...

YIIC and migrate

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.