The document discusses best practices for developing Joomla extensions, including using Git and GitHub for version control, a decent IDE like NetBeans or PHPStorm, standard folder structures, libraries like jQuery and Bootstrap, JTable for managing data, the JModel class for retrieving data, JController and JView for controlling application flow, and creating separate objects for different extension components like talks, speakers, rooms, etc. It also recommends using private and public properties appropriately, logging with JLog, and providing documentation and example code.
1 of 32
Download to read offline
More Related Content
Francesco abeni joomla_extensions_best_practices
1. Francesco Abeni
Sviluppo di estensioni per
Joomla: BEST PRACTICES
@f_abeni
http://www.gibilogic.com
Francesco Abeni
Sviluppo di estensioni per
Joomla: BEST PRACTICES
@f_abeni
http://www.gibilogic.com
24. public function __construct(...) {
JLog::addLogger(
array(
“text_file” => “jfestival.talks.log.php”
),
JLog::ALL,
'jfestival.talks'
);
}
25. public function whatever(...) {
JLog::add(
'A debug message',
JLog::DEBUG, 'jfestival.talks'
);
JLog::add(
'An info message',
JLog::INFO, 'jfestival.talks'
);
}
27. public function get($id) { … }
protected function buildQuery() { … }
private function getName() { … }
public $id; // “$object→id” funziona
vs.
private $id; // “$object→id” NON funziona
public function getId() { return $this→id; }