SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 159 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

$db-
>nameQuote('#__some_table').' ( '
$db->nameQuote('id').' int(11) NOT NULL auto_increment, '
.$db->nameQuote('name').' varchar(255) NOT NULL default '', '
.'PRIMARY KEY ('.$db->nameQuote('id'). ') '
.') CHARACTER SET `utf8` COLLATE `utf8_general_ci`';
$db->setQuery($query);
$db->query();
// set the `tablecreated` flag to true
$params->set('tablecreated', 1);
}
???
???
Module Design
[ 118 ]
Of course we don't have to use the database to store data. For example, we can use
XML files. A full description of using XML in Joomla! is available in Chapter 10.
Modules and Components Working Together
Joomla! does not provide a large API for Modules; it's partly for this reason that
generally we create modules in conjunction with components. Modules, which
complement components, should take advantage of existing component code. This
creates dependencies between the module and the component.
There is currently no formal way of defining dependencies in extensions. We must
manually ensure that all dependencies are met.


Pages:
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6