CakePHPでのMySQLエラー
色々と環境を変えた後で CakePHP2で作っているシステムにアクセスすると Missing Database Connection Error: A Database connection using “Mysql” […]
Read the rest of this entry »色々と環境を変えた後で CakePHP2で作っているシステムにアクセスすると Missing Database Connection Error: A Database connection using “Mysql” […]
Read the rest of this entry »一時的に同じドメインの、メインとサブディレクトリで 別々のCakePHP2を動かす必要が出た。 過去のサーバーでは問題なく動いていたが 同じ構成でも特定のサーバーでだけ500エラーが出る。 それも、どちらか片方だけ。 d […]
Read the rest of this entry »core.phpに下記を追記して解決。 Configure::write(’Error’, array( ‘handler’ => ‘ErrorHandler::handleError’, ‘lev […]
Read the rest of this entry »cakephpのmigration pluginで typeの指定をするところがある。 どんなtypeがあるのかがよくわからなくて調べたけど はっきりとした情報が出ず。 関係ありそうなものはあったのでメモ。 string […]
Read the rest of this entry »色々と変わったらしいけど、とりあえず変更後に出た不具合と解決法をメモ public function beforeFilter() { parent::beforeFilter() […]
Read the rest of this entry »capistranoはRuby On Rails用に作られたデプロイツールで、 設定をすればPHPのプロジェクトにも利用できる。 デプロイを自動化できるため、最初の設定さえしておけば後が楽。 ツールのインストールはデプロ […]
Read the rest of this entry »cakePHP1.3。モデル内で別のモデルを参照する必要があった。 関連するデータは通常はアソシエーションを設定するけど、 アソシエーション関係なく呼ぶ必要もあるのでその時。 App::import(’Model […]
Read the rest of this entry »findで取得するデータに表示用のテキストなど付けたい場合はModelでafterFind。 public $options = array( ‘flag’ => array( 1 => ‘カ […]
Read the rest of this entry »cakePHP1.2で作った古いシステムを1.3対応させているときにエラーが発生。 Unsupported operand types in /Users/username/xxxxxx/cakePHP1.3.8/cak […]
Read the rest of this entry »PCに入れていたxamppが壊れたので最新版を取得して入れなおし。PHP5.3になったことで各システムから非推奨の記述に対して警告が多発。 WordPressは最新版にしたことでエラーが消えた。cakePHPもそうかもし […]
Read the rest of this entry »