Jump to content

Calling from a class?


joecooper

Recommended Posts

I have a PHP config file called config.php.

 

inside the file is simular to this:

 

<?php

class JConfig {

var $offline = '0';

var $editor = 'tinymce';

var $list_limit = '20';

}

?>

 

From another file, i have included config.php, but how do I call $editor to get "tinymce"?

 

Thanks

 

Link to comment
https://forums.phpfreaks.com/topic/256786-calling-from-a-class/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.