Joomla Developer

จาก Wiki3

ข้ามไปที่: นำทาง, สืบค้น

This is to prepare to be Joomla Extensions Developer

เนื้อหา

Web site for non technical

เป็นโครงการทำ Screencast สำหรับสอนคนทั่วๆไปที่ไม่ต้องมีความรู้เรื่อง HTML, CSS, PHP ฯลฯ ให้ทำเว็บได้ด้วย CMS เริ่มตั้งแต่ การเช่า Host การจัดการ Host จนถึงการ ติดตั้ง CMS การใช้ CMS และการบำรุงรักษาเว็บ การทำ SOE และการโฆษณาเว็บ เพื่อให้คนเข้ามาดูเว็บที่สร้างขึ้น

Video

Joomla Installation

Extension defined

for 1.5

  • Plugin is formarly know as Mambots, it response to Joomla event
  • Template is change the way site look
  • Module : for page rendering known as "boxes" Module are assigned per menu item and may call component.
  • Component: it is mini application with front and back end.

For 1.6 up

  • Library

Joomla 1.7

If you are on a website and want to know whether it was created with Joomla!, have a look at the source code. In the header section, you should find this line:
<meta name="generator" content="Joomla! - Open Source Content Management" />
You can also just type the URL of the link to the administration area:
http://example.com/administrator

Joomla API Study

API that should know

Joomla Framework

Joomla เป็น PHP4 ไม่ใช่ PHP5 แต่สามารถพัฒนา Extension ด้วย PHP5 ได้ แต่ต้องคำนึงถึงข้อจำกัดของ PHP4 เวลาทำงานกับ Framework

Name Conventions

We'll start by looking some naming conventions.

  • Class names should start with an uppercase letter.
  • All named elements should use the camelCase standard.
  • Method names should start with a lowercase letter.
  • Non-public elements should start with an underscore.

Class Creation

Class ทุก Class ที่จะสร้างจะต้อง inherit จาก JOject เท่านั้นเพื่อให้รองรับการทำงานพื้นฐานของ Joomla และต้องไม่ลืมที่จะ Call constructor ของ JOject (Parent class) ด้วยนะครับดังตัวอย่าง

/**
  * Some Class which extends JObject
  */
class SomeClass extends JObject
{
     /**
      * Object name
      * @var string
      */
     var $name;
     /**
      * PHP 5 style Constructor
      *
      * @access	 protected
      * @param string name
     */
  function __construct($name)
  {
       $this->name = $name;
       parent::__construct();
  }
}

PHP 4 doesn't call constructors of the base class automatically from a constructor of a derived class. It is your responsibility to propagate the call to constructors upstream where appropriate.

Don't stop with die()

Reff: http://docs.joomla.org/Do_not_use_die_to_debug

เพราะ Joomla เก็บ State ไว้ใน Database จะต้องจบเป็นลำดับดังนี้

echo 'Test';
$mainframe->close();
/*
or use:
jexit();
*/
  
or 

function stop($msg = '')
{
    global $mainframe;
    echo $msg;
    $mainframe->close();
  /*
Alternative:
echo $msg;
jexit();
*/
}


Database

Joomla and CakePHP

Create Template

Document

Create Component

Netbeans for Joomla Dev

Programming Extension

Nooku Framework

  • Nooku Framework (codename Koowa) is a rapid extension development framework for Joomla! written in PHP5.2

Nooku Framework can be installed in Joomla as a plugin and allows developers to build more powerful extensions, or even to develop standalone web applications.

It aims to speed up the creation and maintenance of joomla extensions, and to replace the repetitive coding tasks by power, control and pleasure.

Jumi

JA T3 Template Framework

Link

เว็บ Joomla ในไทย

รับข้อมูลจาก "http://www.noklek.com/wiki3/index.php/Joomla_Developer"
เครื่องมือส่วนตัว