Joomla Constants


Following is list of constants that can be used in Joomla:

01.JPATH_ADMINISTRATOR   The path to the administrator folder.
02.JPATH_BASE  The path to the installed Joomla! site.
03.JPATH_CACHE   The path to the cache folder.
04.JPATH_COMPONENT   The path to the current component being executed.
05.JPATH_CONFIGURATION   The path to folder containing the configuration.php file.
06.JPATH_INSTALLATION  The path to the installation folder.
07.JPATH_LIBRARIES   The path to the libraries folder.
08.JPATH_PLUGINS   The path to the plugins folder.
09.JPATH_ROOT  The path to the installed Joomla! site.
10.JPATH_SITE  The path to the installed Joomla! site.
11.JPATH_THEMES  The path to the templates folder.
12.JPATH_XMLRPC  The path to the XML-RPC Web service folder.

Mô hình MVC trong joomla


I)Tại sao cần phải biết mô hình MVC trong joomla ?
– bạn sẽ dễ dàng tìm được những lỗi phát sinh nếu nắm rõ mô hình này. Tuy nhiên trên thực tế có một số extension viết không theo chuẩn của joomla thì chúng ta không bàn đến (1 ví dụ to đùng : Virtuemart version < 2.0).
– Nâng cao tốc độ website vì một số biến , dữ liệu quan trọng sẽ được joomla tự động ghi vào cache.
– Dễ nâng cấp tính năng nếu có nhu cầu phát triển thêm.
Tiếp tục đọc