爱玺玺

爱玺玺的生活日记本。wx:lb87626

ThinkPHP配置二维码大小

<?php

namespace Admin\Controller;

use Think\Controller;

class ManagerController extends Controller{

public function verify(){

ThinkPHP创建二维码

<?php

namespace Admin\Controller;

use Think\Controller;

class ManagerController extends Controller{

public function verify(){//二维码方法

ThinkPHP表单验证常用

模型

<?php

namespace Model;

use Think\Model;

class UserModel extends Model{

//批量获取全部错误信息

p

smarty模板调用常量

{#$smarty.const.__CONTROLLER__#}/head.html

thinkPHP配置smarty的定界符

<?php

return array(

//'配置项'=>'配置值'

//配置默认模块

thinkPHP配置Smarty引擎需要小写,并配置定界符

<?php

return array(

//'配置项'=>'配置值'

//配置默认模块

织梦手机分页配置伪静态

include/arc.archives.class.php文件


if(is_array($preRow))

            {

                if ( defined('DEDEMOB') )

      &

smarty的literal标签

{literal}可以让一个模板区域的字符原样输出。 这经常用于保护页面上的Javascript或css样式表,避免因为Smarty的定界符{语法}而错被解析。

根命名空间,就是那个斜杠

import('Test.UserTest');

$test = new \UserTest();


htaccess重写url地址原理分析

 如:http://www.yourdomin.com/category.php?id=12&page=3 重写成 http://www.yourdomin.com/category/12/3


RewriteRule ^category/([0-9]+)/([0-9]+)$  category.

Powered By Z-BlogPHP 1.4 Deeplue Build 150101

Copyright Your WebSite.Some Rights Reserved.

蜀ICP备11021721号-5