$this->data['heading_title'] = $this->language->get('heading_title'); '
. On the other hand, I am not sure if the performance would be worse.

1.add the code in \system\library\language.php:
Code: Select all
public function getFile($filename) {
return $file = $file = DIR_LANGUAGE . $this->directory . '/' . $filename . '.php';
}
Code: Select all
public function load_language($filename) {
$this->languages = Registry::get('language');
$file = $this->languages->getFile($filename);
if (file_exists($file)) {
$_ = array();
require($file);
$this->data = array_merge($this->data, $_);
} else {
exit('Error: Could not load language ' . $filename . '!');
}
}
and u dun need load the language by using $this->data['heading_title'] = $this->language->get('heading_title'); any more.
4.in the tpl, u still display the text with <?php echo $heading_title;?>, no need change anything in tpl.