Solved

php joomla accees the $values on the configuration.php file

Posted on 2013-11-23
2
465 Views
Last Modified: 2013-12-22
have a joomla 3 site and i want to access the configuration.php file varables in a module that i am using what would be the syntax to use to get these values please

this actually sees the config file
$config = JFactory::getConfig();

this line here causes and error
$abc =  $config->getValue( 'config.data.useridval' );

$bbn = 'fff';

have got this far can see the varable but
$abc =  $config.useridval; returns all but not the single var useridval
also tried   $abc =  $config.data.useridval; does not like that either

top datatop data id
0
Comment
Question by:sydneyguy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 11

Accepted Solution

by:
Amar Bardoliwala earned 500 total points
ID: 39672580
Hello sydneyguy,

according to link below

http://forum.joomla.org/viewtopic.php?f=727&t=783351

you can you get configuration value as following in Joomla 3

$abc =  $config->get( 'config.data.useridval' );

Hope this will help you.

Thank you.

Amar Bardoliwala
0
 

Author Closing Comment

by:sydneyguy
ID: 39735493
thanjks for the help
0

Featured Post

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question