|
Posted by Alexey Kulentsov on 05/17/07 22:09
Justin Voelker wrote:
> I would the new config file to be able to use the same variables as my
> config file. The problem I am encountering is that the new config
....
<?php
class BasicConfig
{
var dbHost='localhost';
var dbUser='Justin';
...
}
?>
<?php
require_once 'basic.config.php';
class ExtendedConfig extends BasicConfig
{
var dbUser='god'; // You need to change dbUser for another server
// dbHost will be available without changes
}
?>
Navigation:
[Reply to this message]
|