How to introduce Yii framework

小云云
Release: 2023-03-21 14:42:02
Original
2322 people have browsed it

I am new to the Yii framework. I was familiar with Yii2 before. Now I am maintaining the project and found that I am using the Yii 1 version, so I need to learn more comprehensively. I have referred to a lot of online materials. This article is suitable for introductory learning. Thank you.. .


How to introduce Yii framework##【1】First go to the official website to download the latest version of the Yii framework


(Because it cannot be downloaded, I obtained a copy of the framework Yii 1.1.15 source code from other websites, which can be used for learning)

You can see the Yii framework after decompression It contains three folders and four files, four of which are version notes, update logs, etc., so there is no need to go into detail. What we need is the framework folder, which is the core of the Yii framework.

How to introduce Yii framework

【2】Introducing the Yii framework.

1. First of all, the premise is to have a WAMP development environment, which I won’t go into here. Then create a project folder in the website directory and copy the framework folder there.

How to introduce Yii framework

2. Run cmd, first go to the directory of the framework folder, and then execute yiicwebapp ../shop(Any name)

How to introduce Yii framework

PS: What needs to be noted here is to add the path to php in the environment variable.

How to introduce Yii framework

After setting it up it will be ok~

How to introduce Yii framework

appearsYourapplicationhasbeencreatedsuccessfullyunderW:\newwamp\ www\shop\shop.Description Success Introducing the Yii framework

How to introduce Yii framework

You will find that there is an additional folder shop in the same level directory of the framework. In this folder is the file that introduces the Yii framework. The project will be subsequently carried out in the generated folder:

How to introduce Yii framework


Among them, we need to test whether it meets the development requirements:


Place the compressed package Under the www directory of appserv, start apache and mysql , enter in the address bar: http://localhost/yii6/requirements/index.php, check the configuration environment, # The ##PDO and GD libraries need to be configured. Open php.ini and add:

extension=php_pdo_mysql.dll

##extension=php_mysql.dll

     




Project framework introduction:



The above is the detailed content of How to introduce Yii framework. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!