Hi all,
When isSimple is set to true executeWrite can not be called. Is this
correct?
So another action is needed when submitting forms that are loaded
through an isSimple action?
How is this done?
At present, my setup is:
app/modules/Comments/actions/CreateAction.class.php
Which has isSimple set to true and a getDefaultView returning 'Input'.
But the handleError () and executeWrite functions are not being used.
This is because isSimple is set to true I believe
So, I need to have a setup like:
app/modules/Comments/actions/NewCommentAction.class.php
app/modules/Comments/actions/CreateCommentAction.class.php
Where NewCommentAction has a getDefaultView of type Input and isSimple
set to true, end of
And then CreateCommentAction would handle the executeWrite and handleError
Therefore, executeWrite would have to handle the following scenarios:
a) Return Success, if the comment is created
b) Return Error/Input, if the comment can't be created (this
shouldn't be possible because of validate.xml, but necessary afaics)
So OK, how do you do the actual forward or redirect? What's the difference?
_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users