Jump to content

Clean URL for my module


Robnola

Recommended Posts

I have a module that I call just fine like this:

 

http://shop.myshop.com/index.php?fc=module&module=mywordpress&controller=myfeed

 

Is there a way I can change this so I can just provide the link:

 

http://shop.myshop.com/en/myfeed

 

for instance on your demo you have:

 

http://fo.demo.prestashop.com/en/new-products

 

I would like a better URL format like that for call of my module, but am unsure how to do this.

Link to comment
Share on other sites

Hi.

 

That format is reserved for the controllers. You'd have to create a new controller and have that include the module's file.

 

Regards.

 

Robin.

 

The CartExpert Team

 

By controllers, are you referring to my /public_html/shop/controllers/front/  folder? or the /public_html/shop/modules/mywordpress/controllers/front folder?

Link to comment
Share on other sites

Hi.

 

Did you resolve the issue?

 

Regards.

 

Robin.

 

The CartExpert Team

 

What did you mean by this "That format is reserved for the controllers. You'd have to create a new controller and have that include the module's file."?

By controllers, are you referring to my /public_html/shop/controllers/front/  folder? or the /public_html/shop/modules/mywordpress/controllers/front folder?

 

Can you give me an example of a file in the demo that does this so I can take a look at it?

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