Solved

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

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

747 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

10 Experts available now in Live!

Get 1:1 Help Now