Jump to content

smarty link to page not working


Recommended Posts

Hi everyone,

 

I'm using the prestashop guide (below) to try and direct the user to a new page in my module from a button on the left column.

 

But the url is not recognised and I get a 500 server error. Why does the url not recognise my module php?

 

http://doc.prestashop.com/display/PS16/Displaying+content+on+the+front+office

 

 

I have customform.php in the /controllers/front of my module:

 

<?php
class banditquotecustomformModuleFrontController extends ModuleFrontController
{
  public function initContent()
  {
    parent::initContent();
    $this->setTemplate('customform.tpl');
  }
}

And I'm generating the link in the hookRightColumn:

$this->context->smarty->assign(
  array(
    'customform_link' => $this->context->link->getModuleLink('banditquote', 'customform')
  )
);

Which generates:

 

http://www.banditbirds.co.uk/module/banditquote/customform

 

 

But that isn't recognised :angry:

 

 

Any help appreciated!!!

 

Thanks,

 

Simon

 

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