No Exception displayed
Posted 15 October 2008 - 08:10 AM
when I played around with the i18n features (works great!) I tried to set the locale in the configuration (readonly attribute).
The strange thing is that I didn't get any Exception. I tried to debug (using NB6.5 beta with xdebug) and found that the system assembled the Exception that the locale is readonly but it didn't manage to display anything. I tried to find out why but at the end of YiiBase::t() the degubber jumps back and the webpage seems to be running again whatever I try
Its not a severe bug but perhaps one of you can try it on his system?
Posted 15 October 2008 - 08:27 AM
// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
// autoloading model and component classes
// application components
// enable cookie-based authentication
// uncomment the following to set up database
Not very exciting.
Posted 15 October 2008 - 12:37 PM
I am using PHP 5.2.6.
And you are right, it's no IDE issue and it doesn't depend on the browser either, I tried FF and IE.
Do you think its worth further investigation?
Posted 15 October 2008 - 07:42 PM
[16-Oct-2008 08:33:29] PHP Fatal error: Uncaught exception 'CException' with message 'Property "CWebApplication.locale" is read only.' in F:workSourcenYiiframeworkcoreCComponent.php:138
#0 F:workSourcenYiiframeworkcollectionsCConfiguration.php(102): CComponent->__set('locale', 'de')
#1 F:workSourcenYiiframeworkcoreCApplication.php(749): CConfiguration->applyTo(Object(CWebApplication))
#2 F:workSourcenYiiframeworkcoreCApplication.php(107): CApplication->configure('F:worktheMach...')
#3 F:workSourcenYiiframeworkYiiBase.php(74): CApplication->__construct('F:worktheMach...')
#4 F:worktheMachinerywebsitetrunkwebrootindex.php(11): YiiBase::createWebApplication('F:worktheMach...')
thrown in F:workSourcenYiiframeworkcoreCComponent.php on line 138
I inserted the follwoing into the CComponent:set() method:
echo "CComponent:set() $name, $value <br/>"; flush();
which in return printed
CComponent:set() locale, de
CComponent:set() language, en_us
into the windows.
I hope this helps.
Posted 15 October 2008 - 08:11 PM
Posted 15 October 2008 - 08:57 PM
What do you think about
public function __construct($config=null)
an taking the initialization of the system_handlers out of the init() method?