摘要: 转载于:王召波 博客 PHP对象的克隆与引用有什么区别? 摘要: 是这样的,这个问题确切说应该是这样的:“ PHP对象的赋值和克隆有什么区别 ”,注意不是复制,就是复制,打开窗子说亮话,就是下面两行有什么区别。 $user2 = $user1这种写法,实际上是引用写法,也就是说本质上user1和us 阅读全文
posted @ 2019-02-28 11:07 我的五年 阅读(7) 评论(0) 推荐(0)
摘要: #security.yml security: # ··· providers: our_db_provider: entity: class: AppBundle:Users property: username #修改class 字段即可 阅读全文
posted @ 2019-02-27 11:09 我的五年 阅读(7) 评论(0) 推荐(0)
摘要: yii、laravel框架都是基于symfony组件衍生,symfony的强大不用多说。文档里有的,很好找的就不写了 附: symfony官网 https://symfony.com/doc/3.4 yml语法(秒懂的那种)https://www.jianshu.com/p/a8252bf2a63d 阅读全文
posted @ 2019-02-21 09:46 我的五年 阅读(30) 评论(0) 推荐(0)
摘要: requirejs的简单使用 define()方法的3个参数: 参数1为模块名称(不填则以当前js的文件名定义一个匿名模块),参数2为依赖项数组(可不填),参数3为模块的实现 引入jQuery: // js/lib/main.js: require.config({ baseUrl:'js/lib' 阅读全文
posted @ 2019-01-10 22:10 我的五年 阅读(251) 评论(0) 推荐(0)
摘要: 用法: //$condition array('表字段对应的entity的属性'=>'值') //$orderBy array('表字段'=>'ASC/DESC') //$count int 结果数 $this->em->getRepository('className')->findBy($con 阅读全文
posted @ 2019-01-10 15:09 我的五年 阅读(11) 评论(0) 推荐(0)
摘要: 1、require、include require、include都是文件包含,不同的是require语句会输出错误信息,并且立即终止脚本处理。而include语句在没有找到文件时则会输出警告,不会终止脚本的处理。 2、require_once、include_once 含义同上,但如多次包含仅加载 阅读全文
posted @ 2018-12-23 00:21 我的五年 阅读(35) 评论(0) 推荐(0)
摘要: 附: doctrine基础(一):https://www.jianshu.com/p/3681e1add282 doctrine官网: https://www.doctrine-project.org/projects/doctrine-orm/en/2.7/reference/configurat 阅读全文
posted @ 2018-12-12 23:36 我的五年 阅读(36) 评论(0) 推荐(0)
摘要: 附: linux目录介绍: https://blog.csdn.net/u013239236/article/details/48845251 > 基础: // 用户 su username # 切换用户(切换到username,默认切换到root) // 防火墙 sudo systemctl st 阅读全文
posted @ 2018-12-07 13:48 我的五年 阅读(7) 评论(0) 推荐(0)
摘要: 使用虚拟主机或则云服务器的新萌可能会遇到这样的的问题,通过phpstudy解析域名或者直接修改Apache、nginx配置后域名并没有生效,一遍遍的检测配置文件,没毛病啊…(随便说下:Apache是httpd.conf nginx是nginx.conf) 真正的问题可能就是你只是修改了Apache/ 阅读全文
posted @ 2018-12-04 12:03 我的五年 阅读(47) 评论(0) 推荐(0)
摘要: 大胸弟,如果你和我一样把官方给的方法和网上的文章都试过了还是编译不过,但又必须在nwjs里使用sqlite数据库,那么请继续往下看。 我的解决方法就是: 1、不编译 来吧,拥抱html5吧,具体来说就是那个叫websql的东西, openDatabase() 方法来打开已存在的数据库,如果数据库不存 阅读全文
posted @ 2018-12-01 20:35 我的五年 阅读(41) 评论(0) 推荐(0)