I have now found the issue!

I didn't have an 'executeRead' function in the 'ShowRelatedAction'  
class: I just depended on the automatically created  
'getDefaultViewName'. Even though the default view is 'Success' it  
looks like this must be returned by an 'executeRead' method in order  
to get the parameters passed to the view. Just by-the-by, can I ask  
what the reason for this is?

Michal.


On 7 Mar 2009, at 13:53, David Zülke wrote:

> That should work fine. Sure you don't have any typos anywhere?
>
> - David
>
>
> On 07.03.2009, at 14:06, Michal Charemza wrote:
>
>> Hi,
>>
>> Within a view, I'm trying to pass explicit parameters to a slot but
>> I'm not having much luck. I'm trying:
>>
>> $layer->setSlot('side1', $this->createSlotContainer('Related',
>> 'ShowRelated', array('blah'=>'val')));
>>
>> to pass the parameter 'blah' into the 'ShowRelated' action. In the
>> 'ShowRelatedSuccess' view however, I try to access the 'blah'  
>> paramter:
>>
>> $rd->getParameter('blah')
>>
>> but it doesn't seem to be defined.
>>
>> I have tried adding explicit validation for the 'blah' parameter in
>> ShowRelated.xml by:
>>
>> <validator class="string">
>>      <arguments>
>>              <argument>blah</argument>
>>      </arguments>
>>      <errors>
>>              <error>The value blah can't be empty</error>
>>      </errors>
>> </validator>
>>
>> But this doesn't seem to help.
>>
>> Any suggestions?
>>
>> Michal
>>
>> _______________________________________________
>> users mailing list
>> [email protected]
>> http://lists.agavi.org/mailman/listinfo/users
>>
>
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.agavi.org/mailman/listinfo/users


_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users

Reply via email to