摘要:
微网站内容页面url g=Wap&m=Index&a=content (g=Wap)模块路径对应路径:\PigCms\Lib\Action\Wap (m=Index)控制文件对应文件:IndexAction.class.php (a=content)控制器方法对应方法:public function 阅读全文
摘要:
mysql -u root mysql> use mysql; mysql> UPDATE user SET Password = PASSWORD('newpass') WHERE user = 'root'; mysql> FLUSH PRIVILEGES; 阅读全文
摘要:
今天配置开启Apache虚拟主机时, 然后日志报错提示: Invalid command 'Order', perhaps misspelled or defined by a module not included in the server config 解决方法: 把 #LoadModule 阅读全文
摘要:
我们常常在执行 httpd –k restart 重启Apache时报错提示: (OS 10048)通常每个套接字地址(协议/网络地址/端口)只允许使用一次。 : AH00072: make_sock: could not bind to address 0.0.0.0:80AH00451: no 阅读全文
摘要:
//radio选择填充,字段 var radioArray = ["F_RegisterCode", "F_Subjection", "F_MechanismType"] for (v in radioArray) { (function(F) { $(':radio[name="' +F + '"]').change(function ()... 阅读全文
摘要:
1、模板命名规则: 类名+函数名称+.html 2、Model命名规则: 数据库表名:cms_user_data 文件名称命名: UserDataModel.class.php <?php class UserDataModel extends Model{ //code } 对应action命名 UserDataAction.class.php <?php /** *文本回复 **/ clas... 阅读全文
摘要:
TextAction 继承 UserAction 继承 BaseAction 继承 Action TextAction 路径 PigCms\Lib\Action\User UserAction 路径 \PigCms\Lib\Action BaseAction 路径\PigCms\Lib\Action Action 路径 \Lib\Core 阅读全文
摘要:
今天在在phpcms开发留言板用到验证码,提交数据,后台无法$_SESSION['code']无法获取验证码值,也无法打印var_dump($_SESSION)值,我们只需要在文件头部添加如下代码: 处理方法:在类文件添加代码如下 defined('IN_PHPCMS') or exit('No permission resources.'); $session_storage = 'sessio... 阅读全文
摘要:
$db=D('Classify'); $zid=$db->where(array('id'=>$this->_GET('fid'),'token'=>$this->token))->getField('fid'); $where['token']=session('token'); $where['fid']=intval($_GET... 阅读全文
摘要:
fid=intval($_GET['fid']); $this->assign('fid',$this->fid); if ($this->fid){ $thisClassify=M('Classify')->find($this->fid); $this->assign('thisClassify',$thisCla... 阅读全文