I solved the problem. It was a typo in the package name of the controller. It somehow still picked up the package and used it in one case, but the error did not pop up until I tried to access the stash using the <%= $variable %> method.
On Wednesday, February 5, 2014 9:43:17 PM UTC-5, ty wrote: > > I started with the basic example, but I was not able to produce the error. > I will put together a complete code example to demonstrate the problem. > > -T > > On Tuesday, February 4, 2014 9:26:01 AM UTC-5, ty wrote: >> >> I changed my template and public directories as laid out in the cookbook >> >> >> http://search.cpan.org/~sri/Mojolicious-4.75/lib/Mojolicious/Guides/Cookbook.pod#Making_your_application_installable >> >> to be under lib/MyApp/ >> >> since the change, I am not able to access the stash values like I use to. >> >> in the controller I could do >> >> $self->render( message => 'foo'); >> >> and in the template I use to be able to do >> >> <%= $message %> >> >> but I get an error now >> >> Global symbol "$message" requires explicit package name at template ... >> >> the following works fine in the template >> >> <%= stash "message" %> >> >> I am using the latest version of mojolicious 4.75 >> >> Is this a bug or did something change? >> >> Best regards, >> >> Ty >> >> >> -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/groups/opt_out.
