classes and variables
| From: | Merlin Morgenstern | Date: | Mon, 03 May 2010 21:05:54 +0000 |
| Subject: | classes and variables | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-304886@lists.php.net to get a copy of this message | ||
Hi there,
I am new to classes in PHP and do want to change a class that has been in a package I downloaded. I do simply want to access a variable from outside.
This is the code:
class search_helper extends AjaxACApplication
{
//global $DB;
var $db_database = 'test';
}
I would like to replace 'test' with $DB. This is the variable from outside that holds the name of the Database.
Thank you for any help!
Merlin