hello
i am new in magento.
when i want to install a new template in an admin area
1- list de install demo is empty
2- when I click submit action its gives me this :
Fatal error: Call to a member function children() on a non-object in /home/lalablue/public_html/app/code/local/Etheme/Coolbabyconfig/controllers/Adminhtml/LoadpresetconfigController.php on line 28
code of function children() in "LoadpresetconfigController.php" file
public function configinstallAction()
{
$configset=$this->getRequest()->getParam('configset');
$store=$this->getRequest()->getParam('store');
$scope = $store ? 'stores' : 'default';
$configxml=new Varien_Simplexml_Config(Mage::getBaseDir().'/cb_presets/'.$configset.'.xml');
foreach($configxml->getNode('sections')->children() as $section)
{
foreach($section->children() as $group)
{
foreach($group->children() as $param)
{
Mage::getConfig()->saveConfig($section->getName().'/'.$group->getName().'/'.$param->getName(), (string)$param, $scope, $store);
}
}
}
how can i fixed it?