php - Opencart <title> tag do not show site name on new controller -


i've created new controller along new template , language model display custom registration page new user

the problem page title new controller not displaying site name. example opencart default registration page title "register account - [site_name]" new controller displays "register user" without site name

sure can place site name on language model doesn't feel right

i've tried trace problem using firephp on settitle function of document class, this:

public function settitle($title) { global $firephp; $firephp->log($title, 'c:document');         $this->title = $title; } 

but i'm still unable solve problem. please help.

thanks.

if wanting add site name store's titles site wide, there's simple little trick can employ done. open system/library/document.php , find following code

$this->title = $title; 

after line, put

global $config; if($this->title != $config->get('config_title')) $this->title .= ' - ' . $config->get('config_title'); 

this make title's have page title - site name except pages title site name


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -