We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First I see that to point a text to use in template you set manually each key variable. But why if the language library does that when load a file?
This function load() has been used in a wrong way i think: $this->language->load('account/login');
$this->language->load('account/login');
The right way would be: $this->data = $this->language->load('account/login');
$this->data = $this->language->load('account/login');
Now there is no need to set each key in controller: $this->data['heading_title'] = $this->language->get('heading_title');
$this->data['heading_title'] = $this->language->get('heading_title');
If i missed something here, probably Language library could be improved just a little bit to replace all that unnecessary code we have today.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
First I see that to point a text to use in template you set manually each key variable. But why if the language library does that when load a file?
This function load() has been used in a wrong way i think:
$this->language->load('account/login');
The right way would be:
$this->data = $this->language->load('account/login');
Now there is no need to set each key in controller:
$this->data['heading_title'] = $this->language->get('heading_title');
If i missed something here, probably Language library could be improved just a little bit to replace all that unnecessary code we have today.
The text was updated successfully, but these errors were encountered: