Why? I guess because php is interpreted language and is parsed only once, no preprocessor. Workaround is quite easy, use variable:

<?php

// settings to be set on install of the app
$MY_BASE_CLASS="base_class";
define("MY_BASE_CLASSFILE","base_class.php");

// require the class file
require_once(MY_BASE_CLASSFILE);

class my_child_class extends $MY_BASE_CLASS {
        // yada yada
}
?>
Jackson Miller wrote:
On Thursday 30 October 2003 12:29 pm, Marek Kilimajer wrote:

php is not c, you can't use constants this way.

but why? Is there a work around?


-Jackson


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to