note 109376 deleted from function.define by googleguy
| From: | googleguy@php.net | Date: | Tue, 22 Oct 2013 12:16:58 +0000 |
| Subject: | note 109376 deleted from function.define by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-197136@lists.php.net to get a copy of this message | ||
Note Submitter: dmitri dot russu at gmail dot com
----
<?php
//If you are interested in,
abstract class Global_Vars {
protected function __construct(){
define('TPL_PATH','../them_1/',true);
}
}
class E_Global_Vars extends Global_Vars {
public function __construct(){
parent::__construct();
define('TPL_PATH','../them_2/');
}
}
$useVars = new E_Global_Vars();
echo TPL_PATH;
//result is "../them_2/";
//I hope it will be useful
?>