Quantcast
Channel: プラネット NetBeans
Viewing all articles
Browse latest Browse all 4643

ネットランダム改: [NetBeans]CakePHPの準備

$
0
0

IDEでCakeProjectプロジェクトを作成します。

cakephp-cakephp-efb6e08フォルダ配下のファイルをすべて、webroot(たとえばpublic-html)のCakeProjectプロジェクトフォルダにコピーします。

※index.phpは上書き

おもむろにプロジェクトを実行。

エラーがいくつか出ます。

?app内にキャッシュ出力のための書き込み権限が足りないので付与します。

sudo chmod -R 777 app 

?ハッシュを生成する為の鍵文字列がデフォルトのままだとエラーになるとのこと。

Configure::write(‘Security.salt’, ‘DYhG93b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mi’); Configure::write(‘Security.cipherSeed’, ’76859309657453542496749683645′); 

↓ランダムな文字列・数字をここで生成してapp/config/core.phpに反映します。

Nippon Kaisho システムツール [ ランダムな文字列作成 ]

?ワーニングですが、Database接続の定義を用意します。

class DATABASE_CONFIG { var $default = array( 'driver' =>
      'mysql', 'persistent' => false, 'host' => 'localhost', 'login' => 'phpuser', 'password' => '******', 'database' => 'bookmark', 'prefix' => '', ); } 

以上

※これ以降は、model、controller、viewを開発していきます。


Viewing all articles
Browse latest Browse all 4643

Trending Articles