機能追加 #645
BoostCakeの導入
ステータス: | 新規 | 開始日: | 2016/02/05 | |
---|---|---|---|---|
優先度: | 通常 | 期日: | ||
担当者: | - | 進捗 %: | 0% | |
カテゴリ: | - | 作業時間の記録: | - | |
対象バージョン: | - |
説明
●インストール
$ /var/www/pictcode_admin $ git submodule add git://github.com/slywalker/cakephp-plugin-boost_cake.git app/Plugin/BoostCake Initialized empty Git repository in /var/www/pictcode_admin/app/Plugin/BoostCake/.git/ remote: Counting objects: 747, done. remote: Total 747 (delta 0), reused 0 (delta 0), pack-reused 747 Receiving objects: 100% (747/747), 282.70 KiB | 104 KiB/s, done. Resolving deltas: 100% (260/260), done.
●app/Controller/AppController.php
<?php class AppController extends Controller { public $helpers = array( 'Session', 'Html' => array('className' => 'BoostCake.BoostCakeHtml'), 'Form' => array('className' => 'BoostCake.BoostCakeForm'), 'Paginator' => array('className' => 'BoostCake.BoostCakePaginator'), ); public $components = array( 'Auth' => array( 'flash' => array( 'element' => 'alert', 'key' => 'auth', 'params' => array( 'plugin' => 'BoostCake', 'class' => 'alert-error' ) ) ) ); }
●viewの設置
$ cp app/Plugin/BoostCake/View/Layouts/bootstrap3.ctp app/View/Layouts/