i try to load my own configure

i have the app/config/mailserver.php

<?php
        $config = array();

        $config['smtpServer'] = "mail.....;
        $config['smtpUser'] = "[EMAIL PROTECTED]";
        $config['smtpPassword'] = "xxxxx";
?>

then i use

       Configure::load("mailserver");
        $this->smtp_host = Configure::read("smtpServer");
        $this->username = Configure::read("smtpUser");
        $this->password = Configure::read("smtpPassword");

but i get the error

Warning: Configure::load() - no variable $config found in
mailserver.php in .........\cake\libs\configure.php on line 204

but the config file gets loaded with  config(mailserver.php);
the function config() includes it only once..

include_once(CONFIGS . $arg . '.php');

shouldn't it be

include(CONFIGS . $arg . '.php');


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to