-
thinkphp框架使用Zend ACL权限包 - thinkphp
由于种种机缘巧合用Zend Framework框架做过一年的项目,所以,对ZF框架的相关的包也有着一定的了解,前些天用TP的RBAC发现要用数据库,而且使用起来也不是很顺手,也许是自己有着偏见的缘故...
栏目:thinkphp教程 点击:257 日期:2014-11-28 -
thinkphp的静态缓存使用方法 - thinkphp
thinkphp里面内置了一个静态缓存功能,说静态缓存可能对我这种菜鸟而言不太好理解。其实静态缓存就是将thinkphp的某一个操作显示出来的页面生成一个HTML文件保存在设置的路径...
栏目:thinkphp教程 点击:86 日期:2014-11-28 -
thinkphp调试模式与日志记录 - thinkphp
1、可以在config php中进行设置,默认为关闭状态, 39;APP_DEBUG 39; = true,打开 thinkphp Common debug php文件可以查看debug的默认...
栏目:thinkphp教程 点击:96 日期:2014-11-28 -
thinkphp连接至数据库及主从数据库的设置 - Think
项目根目录上建立config php:?phpif(!defined( 39;THINK_PATH 39;))exit();returnarray( 39;DB_TYPE 39;= 39;mysql 39;, 数据库类...
栏目:thinkphp教程 点击:108 日期:2014-11-28 -
thinkphp实例化模型的四种方法 - thinkphp
1、创建一个基础模型:实例化一个系统自带的数据库操作类Test Model class phpclassTestModelextendsModel{}UserAction class phpfunctionte...
栏目:thinkphp教程 点击:75 日期:2014-11-28 -
thinkphp中的create方法与自动令牌验证 - thinkphp
附:使用data方法创建的数据对象不会进行自动验证和过滤操作,需要自行处理,如果只是想简单创建一个数据对象,并且不需要完成一些额外的功能的话,可以使用data方法简单的创建数据对象...
栏目:thinkphp教程 点击:65 日期:2014-11-28 -
CURD和关联操作 - thinkphp
1、简单查询$user=M( 39;user 39;); 查询一条信息,返回一维数组$list=$user-find(); 查询所有信息,返回二维数组select或者findAll()...
栏目:thinkphp教程 点击:93 日期:2014-11-28 -
thinkphp基本的增删查改操作 - thinkphp
表aoli_user字段:id username password createtime createipaoli Home Tpl default User index html:formaction=__URL__ add...
栏目:thinkphp教程 点击:146 日期:2014-11-28 -
thinkphp中的查询语言 - thinkphp
一、普通查询在查询带入where条件等,最少有三种形式1、字符串形式 39;id5 and id9 39;2、数组形式$user=M( 39;user 39;);$data[ 3...
栏目:thinkphp教程 点击:88 日期:2014-11-28 -
thinkphp3.0 输出重复2次的解决方法 - thinkphp
?phpdefine( 39;APP_NAME 39;, 39;Admin 39;); 定义项目名称define( 39;APP_PATH 39;, 39; Admin 39;); 定义项目存放路径defi...
栏目:thinkphp教程 点击:88 日期:2014-11-28