PHP关联数组如何按给定的键序来排序?
假设你有这么一个关联数组:
彻底解决drupal composer因内存不足导致被killed的问题
这个问题通常出现在drupal8目录下,执行composer update命令时,因内存不足导致composer进程被killed掉。
upstream sent too big header while reading response header from upstream
网站一些链接点击后出现502错误,查看nginx error日志,里面有一句:
upstream sent too big header while reading response header from upstream
太大的头?drupal返回太大的头给nginx了,于是在nginx里添加以下配置。
Migrate实战:从uchome迁移到drupal8
Drupal 迁移包括三个环节:source / process / destination,每个环节都分别可以对数据进行加工处理。
如何同步自定义区块?
这是drupal 8 的一个bug:Custom blocks cannot be properly exported and imported
Drupal 8 开发备忘录
It has been a few months since Drupal 8 was released and sites built with it are starting to crop up.
关于Drupal搜索框的定制样式
Drupal表单的主题定制是比较复杂的,然而定制drupal的搜索框可以略过这个过程。drupal8用代码创建用户并登录的例子
创建新用户并登录
Drupal 8 核心 bug: Views创建menu tab时无视参数验证
当用views创建page时,定义像'node/%node/foo'这样的路径,然后创建一个menu tab,在context filter里提供当前node页面的id作为默认参数,并开启参数验证:node type必须为article等。
Drupal 8 如何定义动态路由?
动态路由,即'/node/{node}/edit'这样的路径。
官方文档:Structure of routes
例子:my_module.routing.yml