doctrine 与 smarty 合并使用
来源:互联网 发布:字典转json 去掉制表符 编辑:程序博客网 时间:2024/05/16 14:31
<?php
require_once('setpath.php');
require_once(APPROOT.'DoctrineLib/Doctrine.php');
require_once(APPROOT.'SmartyLib/Smarty.class.php');
spl_autoload_register(array('Doctrine', 'autoload'));
$doctrineManager=Doctrine_Manager::getInstance();
$doctrineManager->setAttribute(Doctrine_Core::ATTR_MODEL_LOADING, Doctrine_Core::MODEL_LOADING_CONSERVATIVE);
$doctrineManager->setAttribute(Doctrine_Core::ATTR_AUTO_ACCESSOR_OVERRIDE, true);
$conn=Doctrine_Manager::connection('mysql://root@localhost/b2b2c','PrimaryLink');
spl_autoload_register(array('Doctrine_Core', 'modelsAutoload'));
$conn->setCharset('utf8');
Doctrine_Core::loadModels(APPROOT.'Models');
$tplCore=new Smarty();
$tplCore->cache_lifetime=30;
$tplCore->template_dir=APPROOT.'Templates/';
$tplCore->compile_dir=APPROOT.'Templates_c/';
$tplCore->config_dir=APPROOT.'Configs/';
$tplCore->cache_dir=APPROOT.'Cache/';
?>
- doctrine 与 smarty 合并使用
- ORM doctrine的使用
- Silex:Doctrine的使用
- SMARTY安装与使用
- Smarty基本配置与使用
- doctrine 与 mysql 数据类型的详细转换规则。
- 使用doctrine的内存耗尽解决办法
- Smarty与自定义Smarty
- fck与smarty的结合使用
- smarty使用变量与变量调节器
- Smarty学习笔记一:安装与使用
- YII如何与Smarty配合使用
- Smarty的基本使用与总结
- smarty使用
- smarty使用
- swagger使用,与SpringMVC合并
- PHP模板之Smarty安装与使用入门教程
- PHP模板之Smarty安装与使用入门教程
- MFC歌词解析
- 文档编辑一部分代码-
- linux下搭建查看内核源代码工具lxr
- [软件人生]一场无伤的辩论——关于韩国历史和满汉朝之间关系的讨论(3)
- 并查集及其链表与不相交集合森林实现
- doctrine 与 smarty 合并使用
- wince 串口与回调函数
- 关于options的一二(做下拉提示功能)
- 大幅优化MyEclipse的速度
- [软件人生]一场无伤的辩论——关于韩国历史和满汉朝之间关系的讨论(4)
- android 模拟器上GPS的使用
- 大脑方程式之——自信心程序
- 转帖 一些基础知识
- How to add a new MimeType to a Virtual Directory with VC++?