[rt-devel] var $session

Ruslan Zakirov ruz at bestpractical.com
Thu Dec 13 13:13:55 EST 2012


On Thu, Dec 13, 2012 at 7:57 PM,  <Marco.deSousa at billag.com> wrote:
> Hello,
>
>
>
> I'm customizing the RT 3.8 quick creation menu on the home page. I want to
> add the facility
>
> to attach files on quick creation widget…
>
>
>
> I start to study the source code of the ticket creation file (
> html/Elements/Create.html ), and I don't understand
>
> where $session is declareted…
>
>
>
> Perl "use strict" is in all RT source files… but I don't find the "my
> $session" anywhere… I made a grep -rn 'my $session' /*… no result…
>
>
>
> Please help :)

All mason comps are executed in the same package. $session (as well as
$r and $m) is a global variable variable defined with our in that
package.

List of globals available for such use in components is defined
somewhere in lib/RT/Interface/Web/.... In lib/RT/Interface/Web.pm you
can find ways to access it from libs.

> Best Regards,
> Marco
>
>
> --------
> We're hiring! http://bestpractical.com/jobs
>



-- 
Best regards, Ruslan.


More information about the rt-devel mailing list