[Solar-talk] Creating a new class using Solar
Rodrigo Moraes
rodrigo.moraes at gmail.com
Fri Oct 13 10:35:38 PDT 2006
On 10/13/06, Matt M. wrote:
> I have to define my own methods for
> config get/set and for localized strings too?
Additionaly:
The config array is available $this->_config, so, inside the class:
- get config value: $value = $this->_config['key'];
- set config value: $this->_config['key'] = $value;
Localized strings should not be used in the controller I think, unless
for error messages in exceptions. For exceptions you can use:
throw $this->_exception('ERROR_CODE');
Then define ERROR_CODE in the Locale file for the front controller
class (/Controller/Locale/en_US.php).
rodrigo
More information about the solar-talk
mailing list