Jump to content

Module controller Redirect to .php in module root for SEO&URL


holle75

Recommended Posts

Hi there, i´m using a free feedback module adapted from a 1.4 version in my 1.5.6.2 shop.

Everything works fine except SEO & URL rewrite cause the module is not using a controller in module/controllers/front. I was trying to fiddle around with a file i created and called singnfeed.php in this folder to just include the signfeedback.php in module root which is doing all the action.

 

signfeed.php in ../modules/feedback/controllers/front

<?php
 
if (!defined('_PS_VERSION_'))
        exit;
include('../../config/config.inc.php');
Class feedbackSignfeedModuleFrontController extends ModuleFrontController
{
 public function init()
{   
    parent::init();
    include(dirname(__FILE__). '/../../signfeedback.php');
}
}

give me strange results. I was also trying with something like

Tools:Redirect('/../../signfeedback.php')

instead of the include line but this is also not working as i expected.

 

I´m really confused with all these controllers and overrides and whatever 1.5 version crazyness is happening. I´m not a programmer, just somebody who is copying and modifying lines (mostly successfull).

 

It seems that the goal is to have a file in controllers/front (which you can implement in admins SEO&URL) that just redirects to the .php file in moduleroot that is doing all the action. Any help would be appreciated!

 

thanks

 

H.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...