Cakephp installl plugin as submodule
In order to install Search plugin for instance:
1 2 |
git submodule add https://github.com/CakeDC/search.git app/Plugin/Search git submodule update --init --recursive |
In order to install Search plugin for instance:
1 2 |
git submodule add https://github.com/CakeDC/search.git app/Plugin/Search git submodule update --init --recursive |
I hit this error using console of cakephp 2.3.8 but you can encounter this issue on other versions as well. The solution is to edit (command line arguments are not seen) app/Console/cake and on on the line:
1 |
exec php -q "$CONSOLE"/cake.php -working "$APP" "$@" |
after -q … Continue reading
A quick notice how to disable the errors that appear after upgrading the php to 5.4 which is by the way a lot faster than ever before. cake/bootstrap.php replace:
1 |
error_reporting(E_ALL & ~E_DEPRECATED); |
with
1 |
error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT); |
cake/libs/debugger.php after:
1 |
$files = $this->trace(array('start' => 2, 'format' => 'points')); |
add
1 |
if(!isset($files[0]['file'])) return; |
In order to change page title in cakephp inside a view just use the code bellow
1 |
$this->set('title_for_layout', 'my cakephp page title'); |