Home > php教程 > php手册 > body text

Yii入门教程之Yii安装及hello world

WBOY
Release: 2016-06-06 20:16:49
Original
1646 people have browsed it

本文介绍了在windows环境下Yii的安装过程以及第一个hello world的诞生过程,图文并茂,非常的详尽,有需要的小伙伴参考下。

1,下载Yii,站点:

注意版本,这里是根据Yii1来的,如果是Yii2的话可能会不一样。。。。

2,在自己的“www”目录下建立一个wen应用目录,我这里叫“FantaCMS”,然后把刚刚下载的Yii安装包解压,然后把解压文件中的“framework”目录剪切到“FantaCMS”目录下

3,,在命令行模式下,通过目录切换到“framework”目录下,执行:

属于“yes”开始执行程序

4,安装成功

5,现在项目的目录结构如下:

6,直接在程序中访问:,如图:

7,这样,最基本的一个Yii应用已经建立好了,如果你想通过配置虚拟主机来访问的话,那么配置一下虚拟主机,然后通过配置好的域名直接访问就可以了,不过这一步不是必须的,看个人习惯吧。。。

下一节继续:Yii项目目录结构分析,Yii入口文件分析,Yii路由分析,Yii模板布局设置以及Yii后台项目构建

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 Recommendations
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!