Home | 简体中文 | 繁体中文 | 杂文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 作品与服务 | Email

6.7. Propel - smart, easy object persistence

ORM ( object relation mapping )

即将数据库表映射成对像,实现通过实例化对像来访问数据库

本文主要介绍Propel - smart, easy object persistence

6.7.1. 环境配置

配置php.ini

在php.ini文件中加入:

extension=php_pdo.dll

6.7.2. PEAR Installer

$> pear channel-discover pear.phpdb.org
$> pear install phpdb/propel_generator
$> pear install phpdb/propel_runtime
			

Adding Channel

D:\>pear channel-discover pear.phpdb.org
Adding Channel "pear.phpdb.org" succeeded
Discovery of channel "pear.phpdb.org" succeeded
			

propel_generator 安装日志

D:\php-5.1.4-Win32>pear install phpdb/propel_generator
phpdb/propel_generator requires package "channel://pear.phing.info/phing" (versi
on >= 2.2.0)
downloading creole-1.1.0.tgz ...
Starting to download creole-1.1.0.tgz (92,633 bytes)
.....................done: 92,633 bytes
install ok: channel://pear.phpdb.org/creole-1.1.0
			

propel_runtime 安装日志

D:\php-5.1.4-Win32>pear install phpdb/propel_runtime
downloading propel_runtime-1.2.0.tgz ...
Starting to download propel_runtime-1.2.0.tgz (45,959 bytes)
.............done: 45,959 bytes
install ok: channel://pear.phpdb.org/propel_runtime-1.2.0

D:\php-5.1.4-Win32>
			
comments powered by Disqus