On Wed, 8 Aug 2007, shawn looker wrote:

> Now when I call the mason component, I did this:
>
> % print "<pre>".Dumper($m->caller_args(1))."</pre>";
>
> And I get this listed:
>
> $VAR15 = 'promo_message';
> $VAR16 = 'You fail.  You don\'t meet the promo requirements yet.  You
> are the weakest link! Good bye... or add 1 more book(s) to your cart';
>
> So promo message is definitely there, but when I try and do this:
>
> Promo message: <% $promo_message %><br />
>
> its empty.
>
> Can anyone help me figure out whats up?

http://www.masonbook.com/book/chapter-2.mhtml

        Search for %ARGS -- in capital letters (ie. case sensitively).  There 
should be a section with that as its heading.  Read that section.

        My guess is that you need to use one of the following:

--------------------------------------------------
Promo message: <% $ARGS{'promo_message'} %><br />
--------------------------------------------------

--------------------------------------------------
Promo message: <% $promo_message %><br />

<%args>
$promo_message
</%args>
--------------------------------------------------


        HTH,

---------------------------------------------------------------------
| Name: Tim Nelson                 | Because the Creator is,        |
| E-mail: [EMAIL PROTECTED] | I am                           |
---------------------------------------------------------------------

----BEGIN GEEK CODE BLOCK----
Version 3.12
GCS d+++ s+: a- C++$ U+++$ P+++$ L+++ E- W+ N+ w--- V- 
PE(+) Y+>++ PGP->+++ R(+) !tv b++ DI++++ D G+ e++>++++ h! y-
-----END GEEK CODE BLOCK-----

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to