CakePhp内部服务器错误中的视图

时间:2012-08-04 19:07:40

标签: php cakephp

我在/ app / view / layouts中有以下布局(名为:“MyView.ctp”)

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title><?php echo $title_for_layout; ?></title>
        <!-- add favicon here-->
        <!-- js -->
        <?php echo $scripts_for_layout; ?>    
     </head>

    <body> 

    </body>
</html>

我在/ app / view

中有以下查看(称为MyView.ctp)
<?php $html->css('fup-prototype','stylesheet', array('media”=>”all' ), false); ?>

app / webroot / css /

中的以下 css 文件(称为fup-prototype.css)

但是我收到了这个错误: img1

我在这里做错了什么?

1 个答案:

答案 0 :(得分:4)

而不是

array('media”=>”all' )

你很可能意味着

array('media'=>'all' )