FAQ
Answering my own question here..
Stuff was hidden in:

$c->engine->env->{...};

I know this isn't very portable, but it's for an internal app where
being able to pass some extra info through from the plack middleware
will be very helpfu.

I'm curious though - How would you suggest such stuff is handled?

cheers,
Toby
On 21 October 2011 17:11, Toby Corkindale wrote:
Hi,

Is there a way to access values set in the PSGI "env" store, once
you're operating inside a catalyst controller method?

Catalyst::Engine::PSGI looks like it is passing the $env variable
along, but I haven't worked out how to access it.
I thought $c->request->env would do the trick, but that method (->env)
doesn't exist.

Any hints? Or is this something I should be leaving alone? ;)

Cheers,
Toby


--
Turning and turning in the widening gyre
The falcon cannot hear the falconer
Things fall apart; the center cannot hold
Mere anarchy is loosed upon the world


--
Turning and turning in the widening gyre
The falcon cannot hear the falconer
Things fall apart; the center cannot hold
Mere anarchy is loosed upon the world

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 4 | next ›
Discussion Overview
groupcatalyst @
categoriescatalyst, perl
postedOct 21, '11 at 6:11a
activeOct 22, '11 at 12:15p
posts4
users3
websitecatalystframework.org
irc#catalyst

People

Translate

site design / logo © 2022 Grokbase