Hi Luis,if you call an URL that does not support RSS (i.e. any other one than you set up in chapter 6) you'll get an exception. The route that handles rss does not set an Action/View but just strips of the '.rss' and sets an output type, the rest of the routing executes as regular. So http://bloggie.dev/sample.rss would get modified to http://bloggie.dev/sample + output rss which then is handled by the rest of the routing, resulting in an error 404, because no route matches. The error view does not know how to handle RSS output and thus an exception is thrown. To do the right thing, the error404 view should handle all output types and just return 404 not fund, but that would complicate matters at that point. I'd probably better state that explicitly, thanks for the pointer.
cheers felix On Apr 3, 2009, at 12:50 AM, Luis Merino wrote:
http://www.agavi.org/documentation/tutorial/step6/generating-an-rss-feed.htmlI'm following the tutorial to learn Agavi deeply. Thanks a lot for what you've put together on this release, it's fantastic.I'm willing to do it more than once, to suck all knowledge from it and experiment for a while; I think Agavi has returned me my curiosity for php OO coding (I am a front-ender).So I've stumbled upon this step, when generating the RSS file as in the example. The route set in routing.xml would match any .rss file i.e.: http://bloggie.dev/sample.rss am I wrong? and I'm getting an "Internal Server Error" nothing else, so I'm not sure how to continue or test or do something about it.I've reviewed my files and lines of code, but of course this crash occurs before any actions/view are fired or anything so, any help would be really appreciated.Thanks in advance, Luis M. _______________________________________________ users mailing list [email protected] http://lists.agavi.org/mailman/listinfo/users
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ users mailing list [email protected] http://lists.agavi.org/mailman/listinfo/users
