on 10-17-2006 12:26 PM
Hi all,
I need to pass the error messages from main controller and display it in sub controller. I'm using model class to chech the error messages. I've been able to display the error messages in the Main controller, but how to pass those messages to sub controller.
Thanks in advance,
Sachidanand.B
Hi,
you can access the attributes of your main controller through
the m_parent attribute of your subcontroller, that way
you can catch the messages and display them through subcontroller.
grtz
Koen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,,
Thanks for ur reply,,
Can u please elaborate on how to access the messages on main controller example: msdn->message-text,
msdn->message-type, msdn->message-connectedControl
in the do_request of subcontroller.
should we reinitialize the model instance 'msdn' in the subcontroller. like:
me->m_sdn ?= create_model( class_name ='zmvc_m_sdn' model_id = 'msdnid').
where m_sdn is an attribute in subcontroller with type reference to model class(ZMVC_M_SDN)
Thanks,,
Sachidanand.B
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.