JApplication/getCfg

شرح

دسترسی مقادیر موجود در فایل کامفیگ مثلا نام سایت

مثال

[php]
echo $mainframe->getCfg(‘helpurl’);

// OUTPUT: http://help.joomla.org
[/php]

Config Properties

$varname Description
dbtype Type of Database beeing used. For example ‘mysql’
user Database user. For example ‘root’.
db Name of the database, where the Joomla tables are stored. For example ‘joomla’.
dbprefix Prefix of all database tables that are used by joomla. For example ‘jos_’
ftp_host FTP Host used by Joomla. For example ‘localhost’.
ftp_port FTP Port used by Joomla.
ftp_user FTP user used by Joomla.
ftp_pass FTP Password.
ftp_root
ftp_enable 1 if FTP operations are enabled. Else 0
tmp_path Path to the temporary folder of Joomla. Usually the /tmp folder
log_path Path to the log folder of Joomla. Usually the /logs folder
mailer The mailer that is used for the delivery of site-emails.
mailfrom The email address that will be used to send the site-emails from.
fromname The name that will be used to send the site-emails from.
sendmail Path to the sendmail program directory on the host server
smtpauth 1 if SMTP Host requires authentification. Else 0
smtpuser SMTP user
smtppass SMTP password
smtphost SMTP host
debug 1 if debug modus is enabled. Else 0
caching 1 if caching is enabled. Else 0
cachetime maximum time of a cache file to be stored before its refreshed
language
secret The secret word
editor The default editor defined in the Global Configuratins. For example ‘tinymce’
offset
lifetime The session-lifetime
offline 1 if the site status is ‘offline’, and thus access via the front-end is not possible. Else 0.
list_limit Default lenght of lists. In general this means the number of records to be shown in a list.
helpurl The URL to the selected Help Server
debug_lang 1 if the Language is supposed to be debugged. Else 0.
sef 1 if search engine friendly URLs are activated. Else 0.
sef_rewrite 1 if Apache mod_rewrite is used. Else 0.
sef_suffix 1 if the system adds a suffix to the url based on the document type.
feed_limit Number of content-items to show in the feeds
gzip
error_reporting Error-Reporting Value
xmlrpc_server
live_site
cache_handler The cache handler that is set in the Global Configurations. For example ‘file’.
memcache_settings
MetaAuthor 1 if the Author Meta Tag is supposed to be showed when viewing articles. Else 0
MetaTitle 1 if the Title Meta Tag is supposed to be showed when viewing articles. Else 0
session_handler The session-handler used by Joomla. For example ‘database’.
sitename نام سایت جوملا شما
MetaDesc The Global Meta Description used for the site.
MetaKeys Global site keywords
offline_message The offline message defined in Global Configurations.

2 thoughts on “JApplication/getCfg

دیدگاهتان را بنویسید

نشانی ایمیل شما منتشر نخواهد شد. بخش‌های موردنیاز علامت‌گذاری شده‌اند *

RELATED POST

اطلاعات اضافی جوم شاپینگ برای تلگرام joomshopping

اضافه کردن متا تگ برای تلگرام اگه از کار برای تلگرام (telegram) باشید شاید لینکی برای دوستی ارسال کرده باشید…

pop-up in joomla

چند روزی بود برای پروژه ای داشتم popup می ساختم هرچی رو سایت میزاشتم کار نمی کرد بعد فهمیدم روی…

مشکل magic quotes در جوملا

اگه با این خطا مواجه بشید "برای اجرای این نسخه از جوملا باید magic_quotes_gpc در هاست شما غیر فعال باشد."…

403 Forbidden

403 Forbidden Access to this resource on the server is denied! Powered By LiteSpeed Web Server LiteSpeed Technologies is not…