FAQ
"David" == David Schmidt writes:
David> Usually that's achieved by adding an attribute to your model and then
David> providing the value at model instantiation time

--8<---------------cut here---------------start------------->8---
MyApp->config->{Model::Foo}{bar} = 'baz';

package MyApp::Model::Foo;
has bar => (is => 'ro');
--8<---------------cut here---------------end--------------->8---

The above should set the bar attribute during load time for you straight
out of the box.

--
Eden Cardim Need help with your Catalyst or DBIx::Class project?
Code Monkey http://www.shadowcat.co.uk/catalyst/
Shadowcat Systems Ltd. Want a managed development or deployment platform?
http://blog.edencardim.com/ http://www.shadowcat.co.uk/servers/

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 3 | next ›
Discussion Overview
groupcatalyst @
categoriescatalyst, perl
postedMar 28, '11 at 4:49p
activeApr 11, '11 at 7:37p
posts3
users3
websitecatalystframework.org
irc#catalyst

People

Translate

site design / logo © 2021 Grokbase