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>
		




原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

目录
相关文章
|
前端开发 Java
java:How to use variable parameter? (easy to understand)
It's the first time to write a blog in English for me. (About variable parameter)
92 0
java:How to use variable parameter? (easy to understand)
|
Python
unable to import 'smart_open.gcs', disabling that module
unable to import 'smart_open.gcs', disabling that module
110 0
Error This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, se
错误提示: Severity Code Description Project File Line Suppression StateError This project references NuGet package(s) that are missing on this computer.
1035 0
|
Java API
Access restriction: The type 'BASE64Decoder' is not API (restriction on required library xxx)
版权声明:本文为 testcs_dn(微wx笑) 原创文章,非商用自由转载-保持署名-注明出处,谢谢。 https://blog.csdn.net/testcs_dn/article/details/79913071 ...
2847 0