cakePHP1.3移行時のUnsupported operand typesエラー
cakePHP1.2で作った古いシステムを1.3対応させているときにエラーが発生。
Unsupported operand types in /Users/username/xxxxxx/cakePHP1.3.8/cake/libs/view/helpers/html.php on line 337
調べた結果、viewでcssの設定をしていた下記のような箇所が原因
echo $html->css(‘documents’, null, null, false);
解決方法としてはcontrollerでHtmlヘルパーを付け、css指定は下記のようにする。
echo $html->css(‘documents’);
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.