in reply to Re^3: Understanding Catalyst
in thread Understanding Catalyst

Model != Storage. Model == Data. Google search API is a model, for example. A weather service is a model. sub d10 { 1+int(rand(10)) } is a model.

Replies are listed 'Best First'.
Re^5: Understanding Catalyst
by QuillMeantTen (Friar) on Oct 05, 2015 at 06:31 UTC

    In your example, shouldn't the sub d10 live in another file than the Controller/(Root|whatever).pm?

      Yes. It would either be in MyApp::Model::Dice or *much* better in a Games::Dice module that has nothing to do with MyApp and is used via model glue like Catalyst::Model::Adaptor.

      I am trying to write a reply to your original post but it’s pretty long and I might not get it done.

        via model glue like Catalyst::Model::Adaptor.

        I don't understand why that would be necessary ... it seems gratuitous