I modified your dbo_informix.php file as follows:
function connect() {
$config = $this->config;
$connect = $config['connect'];
$this->connected = false;
$host = $config['database'] . '@' . $config['host'];
//modified by mark
$argHostname = $config['host'];
if ($argHostname) putenv("INFORMIXSERVER=$argHostname");
putenv("INFORMIXSERVER=".trim($argHostname));
//
if ($config['persistent'])
{
$this->connection = ifx_pconnect($host, $config['login'],
$config['password']);
}
else
{
$this->connection = $connect($host, $config['login'],
$config['password']);
}
$this->connected = ($this->connection !== false);
return $this->connected;
}
...
function describe(&$model, $clear = false)
{
//commented out by mark
// $this->model &= $model;
$cache = parent::describe($model, $clear);
if ($cache != null)
{
return $cache;
}
$fields = array();
...
I'm not sure if these will have any adverse effect. Any comments?
Regards,
Mark
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---