Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2013-11-23
2
Medium Priority
?
493 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
2 Comments
 
LVL 11

Accepted Solution

by:
Amar Bardoliwala earned 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

916 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