[Catalyst] Accessing config parameters from Schema?
Alexander Hartmaier
alexander.hartmaier at t-systems.at
Mon Aug 24 07:52:24 GMT 2009
I've needed that too and added it as an example to the
Catalyst::Model::DBIC::Schema docs on Friday.
You can find it under the following link until it's applied:
http://paste.scsys.co.uk/32786
Thanks @mst for the help with the schema accessor!
Am Freitag, den 21.08.2009, 22:43 +0200 schrieb fREW Schmidt:
> You probably shouldn't really be doing that. Pass the path into the
> schema or something like that, but schema should be able to exist
> outside of a catalyst application. If you really do want to read the
> conf check out Config::JFDI. You can use it to parse the config.
>
> On Thu, Aug 20, 2009 at 5:01 PM, Kevin Monceaux <Kevin at rawfeddogs.net>
> wrote:
> Catalyst Fans,
>
> <NewbieAlert>
>
> I've Googled and searched the list message archives but am
> having
> trouble zeroing in on the info I need. I'm sure in all that
> searching
> the answer has been staring me right in the face somewhere.
>
> How does one access parameters stored in myapp.conf from a
> schema,
> for example if I wanted to configure a path in myapp.conf for
> saving
> uploaded photos?
>
>
> </NewbieAlert>
>
>
> --
>
> Kevin
> http://www.RawFedDogs.net
> http://www.WacoAgilityGroup.org
> Bruceville, TX
>
> Si hoc legere scis nimium eruditionis habes.
> Longum iter est per praecepta, breve et efficax per exempla!!!
>
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo:
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
>
>
> --
> fREW Schmidt
> http://blog.afoolishmanifesto.com
--
BR Alex
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
T-Systems Austria GesmbH Rennweg 97-99, 1030 Wien
Handelsgericht Wien, FN 79340b
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
Notice: This e-mail contains information that is confidential and may be privileged.
If you are not the intended recipient, please notify the sender and then
delete this e-mail immediately.
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
More information about the Catalyst
mailing list