Solved

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

Posted on 2013-11-23
2
444 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 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Facebook React and SyntheticEvents 6 46
Paypal 502 Error 3 66
PHP_POST() error message 9 40
How to loop through records  using SELET COUNT 2 13
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

914 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now