小部件组件在服务器中找不到它的视图


Yii Widget component cannot find it's view in server

我是YII的新手,我使用Eclipse IDE和XAMPP开发了一个YII应用程序。它完美地工作在windows平台在我的本地机器。但是当我把它部署到服务器上时,它不工作。

这是我的控件控制器"/保护/组件/NotificationWidget.php"

<?php

class NotificationWidget extends CWidget {public function run() {
    $notifications = Notification::model()->findAllByAttributes(array('Date'=>date('Y-m-d')));;
    $this->render('/protected/components/Views/notification.php', array(
        'notifications'=>$notifications   
    ));
}}?>

这是我的视图

"/保护/组件/视图"

<li class="dropdown notifications-menu">
<!-- Menu toggle button --> <a href="#" class="dropdown-toggle"
data-toggle="dropdown"> <i class="fa fa-bell-o"></i> <span
    class="label label-warning"><?php echo sizeof($notifications);?></span> </a>
<ul class="dropdown-menu">
    <li class="header">You have <?php echo sizeof($notifications);?>
        notifications</li>
    <li>
        <!-- Inner Menu: contains the notifications -->
        <ul class="menu">
        <?php
        foreach($notifications as $notification) {
            echo "<li>".
    "<a href='#'>".
    " <i class='fa fa-users text-aqua'></i>". $notification->Description.
    "</a></li>";
        }
        ?>
        </ul></li>
    <li class="footer"><a href="#">View all</a>
    </li>
</ul></li>

给出如下错误:

NotificationWidget找不到"/protected/components/Views/notification.php"视图。

如果服务器是unix类型,请在路径中检查大小写格式是否完全匹配

NotificationWidget cannot find the view "/protected/components/Views/notification.php".

我想应该是

NotificationWidget cannot find the view "/protected/components/views/notification.php".