[Catalyst] Help System - Can a controller's index capture the remainder of the path as a series of arguments?

Kyle Hall kyle.m.hall at gmail.com
Thu Mar 31 16:12:50 GMT 2011


Hello All,

I'm trying to a help system to my catalyst app. My idea is to have a
help button. If we are currently at /foo/bar, the help buttons uri
becomes /help/foo/bar. My idea is that the the Help controllers index
will capture everything after /help ( hopefully as an array ). This
data will then be used to look up and display the correct help file (
just a tt template ). So, if the help button is currently pointing to
/help/foor/bar, the system will display the template located at
/help/foo/bar.tt.

Can this be done? Is there a much better way to handle this that I
have not seen or thought of?

Thanks,
Kyle

http://www.kylehall.info
Mill Run Technology Solutions ( http://millruntech.com )
Crawford County Federated Library System ( http://www.ccfls.org )
Meadville Public Library ( http://www.meadvillelibrary.org )



More information about the Catalyst mailing list