Page 1 of 1

[solved] module output is redirected to bad page

Posted: Thu Mar 06, 2014 7:09 pm
by bunak
Hi all,
I wrote my own module. Module is plugin module. This module has on frontend some form. When I fillup it and send it, the form call another action of module. In this action I try write info to user (echo).
But the info si written to home page of website (there is /moduleinterface.php on address line) instead of page, where module is (ie. my-page).
form is in action.default file and action is in action.sendorderemail file
Please help me, where I am doing an error? In older version ie.1.6x it works bot in new versions 1.10.x+ id doesn't.
Thanks

Re: module output is redirected to bad page

Posted: Fri Mar 07, 2014 7:07 am
by chandra
To the first you should make a to the current CMSMS API. There are a lot of changes.

After that you can make a look to News module as a reference.

Re: [solved] module output is redirected to bad page

Posted: Sat Mar 08, 2014 3:06 pm
by bunak
SOLUTION

issue was with CreateFrontendFormStart.
In older versions of API there is no problem, when returnid is not filled. In new version it must be filled.