[solved] module output is redirected to bad page

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
bunak
Forum Members
Forum Members
Posts: 75
Joined: Mon Sep 10, 2007 1:58 pm
Location: Pardubice

[solved] module output is redirected to bad page

Post 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
Last edited by bunak on Sat Mar 08, 2014 3:04 pm, edited 1 time in total.
chandra

Re: module output is redirected to bad page

Post 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.
bunak
Forum Members
Forum Members
Posts: 75
Joined: Mon Sep 10, 2007 1:58 pm
Location: Pardubice

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

Post 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.
Post Reply

Return to “Modules/Add-Ons”