I cant get it to work. I will use a configuration class instead.
function templateParser($templateFile='default_template.htm')
{
$c = new config();
(file_exists($c->template_dir.$templateFile)) ?
$this->output=file_get_contents($c->
Lars Nielsen wrote:
> Hi,
>
> How do i access a variable from inside a class?
Add the following statement:
global $template_dir;
James
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
How do i access a variable from inside a class? ex. I want to use
$template_dir inside Template.
$template_dir = 'templates/';
class templateParser {
var $output;
function templateParser($templateFile='default_template.htm')
{
(file_exists($t
3 matches
Mail list logo