摘要:
文章来源http://www.cnblogs.com/sosoft/p/3793425.html 先说前端使用 jQuery 时怎么区分: jQuery 发出 ajax 请求时,会在请求头部添加一个名为 X-Requested-With 的信息,信息内容为:XMLHttpRequest 在后端可以使 阅读全文
摘要:
转自http://blog.sina.com.cn/s/blog_7d85d15a0101ink1.html 一、YII自带的获取参数的方法: 1、Yii::app()->request->getParam($name, $defaultValue); 其中 $name :参数名; $default 阅读全文
摘要:
http://blog.sina.com.cn/s/articlelist_1842103974_6_1.html http://blog.csdn.net/dreamzml/article/category/1285252 http://www.cnsecer.com/ 阅读全文
摘要:
转载http://blog.sina.com.cn/s/blog_6dcc46a60101c0f2.html model中使用 public function rules(){ return array( array('Name,Email','required'), array('Email',' 阅读全文
摘要:
转自http://blog.csdn.net/dreamzml/article/details/8718887 // 格式化邮件,输出 <a href="mailto:....."></a> echo Yii::app()->format->formatEmail('xiyi_pp@qq.com') 阅读全文
摘要:
转载http://www.maben.com.cn/archives/421.html array( array(‘username’, ‘required’), array(‘username’, ‘length’, ‘min’=>3, ‘max’=>12), array(‘password’, 阅读全文
摘要:
安全者 » Yii rules常用规则 ,适用Yii2 public function rules(){return array(//必须填写array('email, username, password,agree,verifyPassword,verifyCode', 'required'), 阅读全文
只有注册用户登录后才能阅读该文。 阅读全文