Solved

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

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
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.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

735 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