i'm writing small config controller to store application-wide
variables. i read them through Configure::read, everything is ok, but
configure::store drives me insane.
initial custom config file looks like:
$config['hotcake'] = array(
'sitename' => 'hotcake 2.0 alpha',
'version' => '2.0.alpha',
'title' => 'My Application',
'feedbackemail' => '[EMAIL PROTECTED]',
'furls' => 1
);
$config['rus'] = array(
'sitename' => 'Название сайта',
'version' => 'Версия',
'title' => 'Тайтл',
'feedbackemail' => 'Емейл, на который будет уходить обратная
связь',
'furls' => 'Friendly URLs'
);
$config['hotcake'] is settings array and $config['rus'] is form labels
array.
but when i call
Configure::store('hotcake', 'hotcake.config', array('hotcake' => $this-
>data['config']));
it writes
<?php
$config = array();
$config['hotcake']['hotcake'] = array('sitename' => 'hotcake 2.0
alpha', 'version' => '2.0.alpha', 'title' => 'My Application',
'feedbackemail' => '[EMAIL PROTECTED]', 'furls' => '1', );
to app/tmp/cache/persistent/hotcake.config.php without trailing "?>"
but i assume it should save to /config/hotcake.config.php
how can i solve this issue?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---