Joomla two times Development study notes, Joomla Learning notes _php Tutorial

Source: Internet
Author: User

Joomla two times Development study notes, Joomla study notes


    • Joomla directory Structure

/administrator managing the path to the background
/cache is the cache directory
/components is the component (component) directory
/includes is an important directory with all the scripts, functions, and so on that Joomla needs to run.
/language is the site language directory.
/plugins is the extension (trigger) directory.
/modules directory is the storage module program, Joomla has defined more than 10 module locations, such as header, footer, left, right, debug, User1, Advert2, and so on.
/templates template directory, where each subdirectory corresponds to a template
/libraries Class Package Directory, all important class files
/logs log directory, storing generated log script files
/images Picture Catalogue
The/media directory is where various media files are stored.
/XMLRPC XML Remote method invocation, using XML as the medium to invoke the remote method
/tmp Temp directory

    • joomla! Component Structure

All components of joomla! follow a specific naming scheme. Each system component has a unique name, and the name cannot include spaces.
The code is divided into two folders, and the folder begins with Com_, followed by the name of the component. Eg: the component is called books. So, you're going to create two com_books folders with the same name.
When the component is loaded in the foreground, joomla! will look for the file component name. php

Front desk components, directory com_books, file books.php.
Put it in the background administrator/components, directory com_books, file admin.books.php.

    • Joomla! Interface Introduction

Database operations: Connecting databases-executing SQL statements-querying data

1) Database Operation Connection Database
$db =& jfactory::getdbo ();
2) Execute SQL statement
$sql = "SELECT * from #_tags";
$db->execute ($sql);
3) query data
$sql = "SELECT * from #_tags";
$db->setquery ($sql);
$rows = $db->loadobjectlist ();
foreach ($rows as $row) {
Echo $row->tag;
}

Session Operation: Calling session

1) Get the value of session
$session =&jfactory::getsession ();
$name = "Session_name";
$sValue = $session->get ($name);
2) Set the value of session
$session =japplication::_createsession ();
$name = "Session_name";
$value = "Alex";
$session->set ($name, $value);

joomla! Database Common table

Article categories
Jos_categories
Jos_sections

joomla! components, modules, plugins
Jos_components
Jos_modules
Jos_plugins

Article
Jos_content

Menu
Jos_menu

User and Login
Jos_groups
Jos_session
Jos_users

http://www.bkjia.com/PHPjc/937012.html www.bkjia.com true http://www.bkjia.com/PHPjc/937012.html techarticle Joomla two Times Development study notes, Joomla Learning notes Joomla directory structure/administrator management background path/cache is the cache directory/components is the component (component) directory/inc ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.