Jump to content

[SOLVED] New Page Not displaying..?


Recommended Posts

What i have Done:

Modification:

Path:  prestashop16/themes/default-bootstrap

Find      

{$HOOK_CUSTOMER_ACCOUNT}

Add After

<li><a href="{$link->getPageLink('parcelmix', true)|escape:'html':'UTF-8'}" title="Parcelmix"><i class="icon-wrench "></i><span>Parcemix Configutrations</span></a></li>

 

New Files

File: Parcelmix.tpl

Path:  prestashop16/themes/default-bootstrap/

File: ParcelmixController.php

Path: prestashop16/controllers/front/
 

Preferences->seo Ulrs ->add New
 

Page: parcelmix

Page Title: Parcelmix Configuration

Rewrite Url: parcelmix-configuration

Error occurs & solved: 

http://www.prestashop.com/forums/topic/340269-solved-error-when-adding-new-controller/?do=findComment&comment=1716543

Now i am not getting page display....
Which to die(); e.g controller or some other file for checking ?

Edited by arslantabassum (see edit history)
Link to comment
Share on other sites

Thanks Vekia and Nemo1 For Reading My Problem..

I missed initContent function in my controller that's why it's not displaying....

Now i add this function in my controller and Working fine.....

File: ParcelmixController.php

 

public function initContent() 
{
    parent::initContent();
 
   $this->setTemplate(_PS_THEME_DIR_.'parcelmix.tpl');
}

 
Edited by arslantabassum (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...