Kohana controller shows blank page if missing URI segment/argument
- by Petruza
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?