-
-
Save kanonji/72b1ee3be8311989774a to your computer and use it in GitHub Desktop.
CakePHP セットアップ手順
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mkdir app | |
$ cd app | |
$ cake bake project --empty | |
$ cp /path/to/somewhere/.gitignore . | |
$ git init | |
$ git add . | |
$ git commit -m 'init' | |
$ git submodule add git://github.com/slywalker/TwitterBootstrap.git Plugin/TwitterBootstrap | |
$ git submodule update --init --recursive | |
$ vi Config/bootstrap.php | |
CakePlugin::load('TwitterBootstrap'); | |
$ git commit -am 'add TwitterBootstrap as submodule' | |
$ cake TwitterBootstrap.copy | |
$ cake TwitterBootstrap.make | |
$ cp Plugin/TwitterBootstrap/View/Layouts/default.ctp View/Layouts/bootstrap.ctp | |
$ git add . | |
$ git commit -am 'prepare TwitterBootstrap' | |
AppController AppModelにコンポーネント、ヘルパー、ビヘイビアを設定 | |
$ cake bake db_config | |
``` | |
Host: 127.0.0.1 | |
Encoding: utf8 | |
``` | |
$ git add . | |
$ git commit -am 'cake bake db_config' | |
$ cake bake all | |
$ git submodule add git://github.com/cakephp/debug_kit.git Plugin/DebugKit | |
$ git submodule update --init --recursive | |
$ vi Config/bootstrap.php | |
CakePlugin::load('DebugKit'); | |
$ vi Controller/AppController.php | |
public $components = array('DebugKit.Toolbar'); | |
$ git commit -am 'add DebugKit as submodule' | |
AppControllerで`X-Content-Type-Options: nosniff`を付ける | |
http://swdyh.tumblr.com/post/50154551190/nosniff |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment