Kohana controller shows blank page if missing URI segment/argument

Posted by Petruza on Stack Overflow See other posts from Stack Overflow or by Petruza
Published on 2010-06-14T13:08:07Z Indexed on 2010/06/14 13:12 UTC
Read the original article Hit count: 247

Filed under:
|
|
|
|

When accessing
http://www.nowplayingnashville.com/event2/detail/440698386/Whatever
the controller shows normally.
But when omitting the last parameter (event's title, which can be any string),
http://www.nowplayingnashville.com/event2/detail/440698386/
It shows blank.

I added a default value and tried to hardcode the title on the first line of the controller, but it doesn't work anyway.
It looks like a view issue, because I can add an echo at the end of the controller and it gets printed, so the controller is executing to the end, but the views aren't displayed.

This problem is present on the live site, but I checked out the code on my local machine and it works perfectly without a title. That's strange. Could it be a Kohana or Apache configuration issue?

© Stack Overflow or respective owner

Related posts about php

Related posts about mvc