- 博客(19)
- 收藏
- 关注
翻译 Array Functions
1.is_arrayis_array ( mixed $var ) : boolFinds whether a variable is an array2.explodeexplode ( string $delimiter , string $string [, int $limit = PHP_INT_MAX ] ) : arrayReturns an array of str...
2019-04-11 08:18:06
169
翻译 Object Cloning
1.behaviors①When an object is cloned, PHP will perform a shallow copy of all of the object’s properties. Any properties that are references to other variables will remain references.②Once the clonin...
2019-04-10 09:45:47
174
翻译 DependencyInjection
1.Basic Usageclass Mailer{ private $transport; public function __construct() { $this->transport = 'sendmail'; } // ...}2.register this in the container as a servi...
2019-04-09 22:38:38
292
翻译 Logging
The minimal log level can be changed by setting the SHELL_VERBOSITY environment variable:ERROR(-1), NOTICE(1), INFO(2), DEBUG(3)1. Logging a Messageinject the default logger in your controller2....
2019-04-03 09:11:23
170
转载 Events and Event Listeners
1. Create an Event ListenerThe most common way to listen to an event is to register an event listener// src/EventListener/ExceptionListener.phpnamespace App\EventListener;use Symfony\Component\...
2019-04-02 21:52:00
175
转载 Service Container
1. Fetch and use Servicestype-hint an argument with the service’s class or interface namefull list (debug:container)2. Create/Configure services in the containernamespace App\Serviceautomatic ...
2019-04-02 08:55:37
550
转载 Hello, Symfony
1.Installing & Setting up the Symfony FrameworkRunning your Symfony Applicationphp bin/console server:runStoring your Project in gitSetting up an Existing Symfony ProjectChecking for Security...
2019-03-31 20:26:22
113
转载 Symfony Controller
1.Map a URL to a Controller (Routing)2.Base Controller Class (Abstract) & Services3.Generate URLs4.Redirect5.render templates6.fetch serviceshowdebug:autowiring7.generate ControllersSy...
2019-03-31 20:24:07
283
原创 Databases and theDoctrine ORM
Install Doctrine composer require symfony/orm-pack composer require --dev symfony/maker-bundleConfigure the DatabaseCreate an Entity ClassMigrations: Create the Database Tables/SchemaMigrations...
2019-03-31 17:06:54
176
原创 phpstorm outline
1.Code with smart assistanceCode completionIntention actions (Alt + Enter)2.Keep your code neatinspections3.Generate some codeconstructors, getter/setter, PHPDoc commentsoverriding/implementing...
2019-03-31 11:37:59
181
原创 tmux
tmux**tmux**基本使用session操作窗口操作pane操作ssh设置断线自动重连tmux基本使用session操作prefix默认为ctrl+b(可修改)tmux new -s 名字 新建sessiontmux a -t 名字 重连sessiontmux ls 展示当前所有sessiontmux a 重连最近的session窗口操作prefix+c 新建窗口ctrl...
2019-03-31 09:42:11
166
原创 UML Class Diagram
1.Definitiona type of static structure diagram that describes the structure of a system by showing the system’s:classestheir attributesoperations (or methods)relationships among objects2.Class...
2019-03-26 21:37:45
342
原创 【总结】慕课网jQuery基础
jQuery基础——DOM篇1.DOM节点的创建 常见的就是直接把这个节点的结构给通过HTML标记字符串描述出来,通过$()函数处理,$(“html结构”) 例:\$("<div class='right'><div class='aaron'>动态创建DIV元素节点</div></div>")2.DOM节点的插入内部插入append()与appendTo(),prepend()与prepen
2016-11-05 22:17:08
433
原创 【总结】慕课网 jQuery基础
【总结】慕课网 jQuery基础jQuery基础——样式篇1.初识jQuery 2.jQuery选择器3.jQuery的属性与样式
2016-11-05 15:23:51
386
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人