摘要: yii、laravel框架都是基于symfony组件衍生,symfony的强大不用多说。文档里有的,很好找的就不写了 附: symfony官网 https://symfony.com/doc/3.4 yml语法(秒懂的那种)https://www.jianshu.com/p/a8252bf2a63d 阅读全文
posted @ 2019-02-21 09:46 我的五年 阅读(24) 评论(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 我的五年 阅读(228) 评论(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 我的五年 阅读(31) 评论(0) 推荐(0)
摘要: 附: linux目录介绍: https://blog.csdn.net/u013239236/article/details/48845251 > 基础: // 用户 su username # 切换用户(切换到username,默认切换到root) // 防火墙 sudo systemctl st 阅读全文
posted @ 2018-12-07 13:48 我的五年 阅读(6) 评论(0) 推荐(0)
摘要: 使用虚拟主机或则云服务器的新萌可能会遇到这样的的问题,通过phpstudy解析域名或者直接修改Apache、nginx配置后域名并没有生效,一遍遍的检测配置文件,没毛病啊…(随便说下:Apache是httpd.conf nginx是nginx.conf) 真正的问题可能就是你只是修改了Apache/ 阅读全文
posted @ 2018-12-04 12:03 我的五年 阅读(46) 评论(0) 推荐(0)
摘要: 大胸弟,如果你和我一样把官方给的方法和网上的文章都试过了还是编译不过,但又必须在nwjs里使用sqlite数据库,那么请继续往下看。 我的解决方法就是: 1、不编译 来吧,拥抱html5吧,具体来说就是那个叫websql的东西, openDatabase() 方法来打开已存在的数据库,如果数据库不存 阅读全文
posted @ 2018-12-01 20:35 我的五年 阅读(39) 评论(0) 推荐(0)
摘要: 一、基础 1、常用sql: // mysql改root密码 mysqladmin -u用户名 -p旧密码 password 新密码 # more-MySQL修改root密码的4种方法: # https://blog.csdn.net/th_num/article/details/71402801 以 阅读全文
posted @ 2018-11-30 17:16 我的五年 阅读(86) 评论(0) 推荐(0)
摘要: 网上也有很多类似的,但基本都是用nodejs调.vbs,然后间接调.bat,经过多番尝试发现其实合并为一个文件亦可 将如下内容保存为.vbs文件,如startRedis.vbs (在nw的根目录) set ws = createobject("wscript.shell") ws.currentdi 阅读全文
posted @ 2018-11-02 21:39 我的五年 阅读(18) 评论(0) 推荐(0)