[Catalyst] Command-line utility using Controller - examples?
Ronald J Kimball
rkimball+catalyst at pangeamedia.com
Tue Jul 17 14:21:59 GMT 2007
Brandon Black wrote:
> The View should handle everything specific to HTML rendering, and the
> Controller should really be a very thin translation layer that maps
> HTTP inputs into View updates and Model calls. In a design laid out
> like that, your question would become "How do I write a utility script
> that will invoke some of my Model code", and the answer would be "use
> your non-Catalyst underlying Model class directly from the script and
> call whatever you need to call".
That's actually what I ended up doing, just loading the Schema classes
directly and adding the bit of extra handling that I wanted from the
Controller. (The Controller in this case is probably not as thin as it
should be. :)
thanks,
Ronald
More information about the Catalyst
mailing list