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 Quote Link to comment Share on other sites More sharing options...
MasterACE14 Posted February 10, 2012 Share Posted February 10, 2012 $config = new JConfig; echo $config->editor; Quote Link to comment Share on other sites More sharing options...
joecooper Posted February 10, 2012 Author Share Posted February 10, 2012 thanks! knew it was simple! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.