From 0eccf3e822c347c4b296e9b8e7d17731d08cc007 Mon Sep 17 00:00:00 2001 From: ADmad Date: Fri, 29 Sep 2017 11:55:05 +0530 Subject: [PATCH 1/2] Add new "form.before_butttons" block. It allows you to add content before the save buttons of form. --- src/Template/Element/form.ctp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Template/Element/form.ctp b/src/Template/Element/form.ctp index a985fb62..aaa731c6 100644 --- a/src/Template/Element/form.ctp +++ b/src/Template/Element/form.ctp @@ -1,6 +1,4 @@ exists('form.sidebar'); if ($this->exists('form.before_create')) { echo $this->fetch('form.before_create'); @@ -30,6 +28,9 @@ if ($this->exists('form.before_create')) { + exists('form.before_buttons')) : ?> + fetch('form.before_buttons'); ?> +
From a536b0e970b23fec5f82966afd5134ea0cb8f95a Mon Sep 17 00:00:00 2001 From: ADmad Date: Fri, 29 Sep 2017 11:56:17 +0530 Subject: [PATCH 2/2] Remove phpstan error as issue is fixed in core. --- .travis.yml | 2 +- phpstan.neon | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) delete mode 100644 phpstan.neon diff --git a/.travis.yml b/.travis.yml index b5457d77..8d1c3b24 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,7 +16,7 @@ before_script: script: - if [[ $PHPCS = 1 ]]; then vendor/bin/phpcs -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP src/ config/; fi - - if [[ $PHPSTAN = 1 ]]; then vendor/bin/phpstan analyse -c phpstan.neon -l 5 src; fi + - if [[ $PHPSTAN = 1 ]]; then vendor/bin/phpstan analyse -l 5 src; fi notifications: email: false diff --git a/phpstan.neon b/phpstan.neon deleted file mode 100644 index 5771b040..00000000 --- a/phpstan.neon +++ /dev/null @@ -1,3 +0,0 @@ -parameters: - ignoreErrors: - - '#Property Cake\\View\\View::\$subDir \(string\) does not accept null#'