Yii Framework Tutorial - file not found

Posted by Heshan Perera on Stack Overflow See other posts from Stack Overflow or by Heshan Perera
Published on 2012-03-28T05:50:59Z Indexed on 2012/03/28 17:29 UTC
Read the original article Hit count: 239

Filed under:
|

I am in the process of learning the Yii Framework. I have been following this

Tutorial. I have followed all the steps and have by index page loading. In my index.php page I point to two other pages located in

protected/views/message

The following is the code in my index.php located in the message folder mentioned above.

<html>
<body>
    <h1>Welcome</h1>
    <p> To view our message go to... <?php echo CHtml::link('Here', '/message/show')?> </p>
    <p> To edit our message go to... <?php echo CHtml::link('Here', '/message/edit')?> </p>
</body>
</html>

"message" is the ID I gave when generating the model and controller through the yii shell application.

The problem is, after the above page loads, and I click on any one of the above URLs, it points to

"localhost:8080/message/show"

and

"localhost:8080/message/edit"

, whereas the real location of these files is

"localhost:8080/test/protected/views/message/..."

What could I be doing wrong ?

© Stack Overflow or respective owner

Related posts about yii

Related posts about yii-mvc