joecooper Posted February 10, 2012 Share Posted February 10, 2012 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 More sharing options...
MasterACE14 Posted February 10, 2012 Share Posted February 10, 2012 $config = new JConfig; echo $config->editor; Link to comment https://forums.phpfreaks.com/topic/256786-calling-from-a-class/#findComment-1316414 Share on other sites More sharing options...
joecooper Posted February 10, 2012 Author Share Posted February 10, 2012 thanks! knew it was simple! Link to comment https://forums.phpfreaks.com/topic/256786-calling-from-a-class/#findComment-1316415 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.