Table of Contents
CodeIgniter框架的下载及安装,codeigniter框架
Home php教程 php手册 CodeIgniter框架的下载及安装,codeigniter框架

CodeIgniter框架的下载及安装,codeigniter框架

Jun 13, 2016 am 08:40 AM
codeigniter

CodeIgniter框架的下载及安装,codeigniter框架

CodeIgniter 是一套给 PHP 网站开发者使用的应用程序开发框架和工具包。初次学习Php,网上搜了很多php框架,最后选择了CodeIgniter。下面向码农介绍CodeIgniter框架的下载及安装。

安装环境:php5+mysql6.5+iis7

我的电脑是用来办公写文档用的,win7系统,不想换系统,所以就安装了win7自带的iis7.

php下载的是最新的php-5.3.28-nts-Win32-VC9-x86

mysql也是下载最新的。

下载地址:

php:http://windows.php.net/downloads/releases/

mysql:http://dev.mysql.com/downloads/mysql/

CodeIgniter:http://codeigniter.org.cn/

当然,我是在windows环境下配置,需要下载windows 下的相关版本的软件,如果是linux等,需要下载该系统下支持的软件。

好啦,不多说了,咱开始安装吧,安装完一步一步探索。首先说,我是新手,有很多说的不对的地方请指正,我现在主要工作非IT,不常更新,偶尔休憩,看书。

第一步:下载下来codeigniter,是一个压缩包。解压后如下图:

主要有这3个文件,application文件夹是应用文件夹,里面主要有MVC相关的M-模型文件夹,

V-视图文件夹,C-控制器文件夹,还有一些配置文件,后面会讲到。

system文件件,是系统文件夹,CI (CodeIgniter)的核心文件。

user_guide 即离线的用户帮助文档,便于查询。不过都是英文的哦,英文不好的童鞋还是去百度,下载一个中文的文档。我的学习主要靠帮助文档。帮助文档是好东西,一来是选择这个框架,就是因为他又详细的帮助文档帮助学习很方便。

第二步:也是比较关键的一步。把该文件夹放到网站的根目录下。很多网上资料,都只说根目录下,像我这样的新手,连根目录都不知道。

下面我就跟大家讲一下根目录下。我是安装的iis,那么根目录就指的是iis的安装目录。其他的web服务器,的根目录下也就是指web服务器的安装目录。如下图:打开iis,右键,浏览,打开的就是根目录;(不会用截图软件,暂且用个大图,下次争取学会怎么截图)

第三步:关键的一步哦,注定成不成功哦。

将下载的文件拷到这个所谓的根目录下;我把这个文件夹的名字改成了php,主要是为了简便,因为还要配置访问地址。输地址方便。

第四步:最重要的,配置哦

打开application/config/config.php文件。注意.php文件可以用记事本,notpad++等多种编辑器打开,很方便,配置好保存即可。

主要配置这两个地方:标记1配置的是你要访问的网站网址。我配置的是http://localhost/php, localhost 指的是本地。也可以写成http://127.0.0.1/php。如果你有服务器,那就要写你服务器的域名咯。/php就是我刚才复制过来所下载的CodeIgniter 的文件夹,我把文件夹名字改成php就是为了访问方便,php 比CodeIgniter要简短。

标记2 index.php是下载就配置好的,没配置你就给他配置成index.php,表示你输入http://127.0.0.1/php,则自动打开index.php文件。

 

第五步,配置服务器,数据库,我用mysql

打开文件 application/config/database.php

配置你服务器的相关用户名,密码,数据库名等等。如下图:

这个图,不解释,大家懂得起,就是初学者,看英文都知道要填什么。

好啦,到这了,就结束了。

在浏览器中输入http://127.0.0.1/php 就可以看到index.php的欢迎界面啦。

welcome...................

 

原文地址:http://www.manongjc.com/article/787.html

CodeIgniter框架相关资料:

  • CodeIgniter 教程
  • CodeIgniter 下载与安装
  • CodeIgniter 工作原理
  • CodeIgniter URL
  • CodeIgniter 控制器
  • CodeIgniter 保留名称
  • CodeIgniter 视图
  • CodeIgniter 模型
  • CodeIgniter 辅助函数
  • CodeIgniter 类库
  • CodeIgniter 创建类库
  • CodeIgniter 驱动器
  • CodeIgniter 创建驱动器
  • CodeIgniter 核心类
  • CodeIgniter 附属类
  • CodeIgniter 钩子
  • CodeIgniter 自动加载
  • CodeIgniter 公共函数
  • CodeIgniter 兼容性函数
  • CodeIgniter URI 路由
  • CodeIgniter 错误处理
  • CodeIgniter 网页缓存
  • CodeIgniter 分析器类
  • CodeIgniter CLI 方式运行
  • CodeIgniter 管理应用程序
  • CodeIgniter 处理多环境
  • CodeIgniter 替代语法
  • CodeIgniter 安全
  • CodeIgniter 开发规范

 

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to implement custom middleware in CodeIgniter How to implement custom middleware in CodeIgniter Jul 29, 2023 am 10:53 AM

How to implement custom middleware in CodeIgniter Introduction: In modern web development, middleware plays a vital role in applications. They can be used to perform some shared processing logic before or after the request reaches the controller. CodeIgniter, as a popular PHP framework, also supports the use of middleware. This article will introduce how to implement custom middleware in CodeIgniter and provide a simple code example. Middleware overview: Middleware is a kind of request

CodeIgniter middleware: Accelerate application responsiveness and page rendering CodeIgniter middleware: Accelerate application responsiveness and page rendering Jul 28, 2023 pm 06:51 PM

CodeIgniter Middleware: Accelerating Application Responsiveness and Page Rendering Overview: As web applications continue to grow in complexity and interactivity, developers need to use more efficient and scalable solutions to improve application performance and responsiveness. . CodeIgniter (CI) is a lightweight PHP-based framework that provides many useful features, one of which is middleware. Middleware is a series of tasks that are performed before or after the request reaches the controller. This article will introduce how to use

How to use the database query builder (Query Builder) in the CodeIgniter framework How to use the database query builder (Query Builder) in the CodeIgniter framework Jul 28, 2023 pm 11:13 PM

Introduction to the method of using the database query builder (QueryBuilder) in the CodeIgniter framework: CodeIgniter is a lightweight PHP framework that provides many powerful tools and libraries to facilitate developers in web application development. One of the most impressive features is the database query builder (QueryBuilder), which provides a concise and powerful way to build and execute database query statements. This article will introduce how to use Co

Use PHP framework CodeIgniter to develop a real-time chat application to provide convenient communication services Use PHP framework CodeIgniter to develop a real-time chat application to provide convenient communication services Jun 27, 2023 pm 02:49 PM

With the development of mobile Internet, instant messaging has become more and more important and popular. For many companies, live chat is more like a communication service, providing a convenient communication method that can quickly and effectively solve business problems. Based on this, this article will introduce how to use the PHP framework CodeIgniter to develop a real-time chat application. Understand the CodeIgniter framework CodeIgniter is a lightweight PHP framework that provides a series of simple tools and libraries to help developers quickly

CodeIgniter middleware: Provides secure file upload and download functions CodeIgniter middleware: Provides secure file upload and download functions Aug 01, 2023 pm 03:01 PM

CodeIgniter middleware: Provides secure file upload and download functions Introduction: In the process of web application development, file upload and download are very common functions. However, for security reasons, handling file uploads and downloads often requires additional security measures. CodeIgniter is a popular PHP framework that provides a wealth of tools and libraries to support developers in building secure and reliable web applications. This article will introduce how to use CodeIgniter middleware to implement secure files

PHP development: Using CodeIgniter to implement MVC pattern and RESTful API PHP development: Using CodeIgniter to implement MVC pattern and RESTful API Jun 16, 2023 am 08:09 AM

As web applications continue to evolve, it is important to develop applications more quickly and efficiently. And, as RESTful API is widely used in web applications, it is necessary for developers to understand how to create and implement RESTful API. In this article, we will discuss how to implement MVC pattern and RESTful API using CodeIgniter framework. Introduction to MVC pattern MVC (Model-Vie

How to use CodeIgniter5 framework in php? How to use CodeIgniter5 framework in php? Jun 01, 2023 am 11:21 AM

CodeIgniter is a lightweight PHP framework that uses MVC architecture to support rapid development and simplify common tasks. CodeIgniter5 is the latest version of the framework and offers many new features and improvements. This article will introduce how to use the CodeIgniter5 framework to build a simple web application. Step 1: Install CodeIgniter5 Downloading and installing CodeIgniter5 is very simple, just follow these steps: Download the latest version

How does php use CodeIgniter\Config for configuration management? How does php use CodeIgniter\Config for configuration management? Jun 02, 2023 pm 06:01 PM

1. Introduction to CodeIgniter CodeIgniter is a lightweight and comprehensive PHP development framework designed to provide web developers with fast and powerful tools to build web applications. It is an open source framework that uses the MVC architecture pattern to achieve rapid development and basic functions, while supporting a variety of databases. 2. Introduction to the Config library The Config library is a component in the CodeIgniter framework and is used to configure and manage code. The Config library contains many

See all articles