Origin database can work since it is just an adapter.
$db = JFactory::getDbo();
$db->setQuery($query)->execute();
<?php | |
JTable::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_foo/tables'); | |
$table = JTable::getInstance('Item', 'FooTable'); | |
$table->load($id); |
<?php | |
/** | |
* @package Joomla.Administrator | |
* @subpackage com_icrm | |
* @copyright Copyright (C) 2012 Asikart. All rights reserved. | |
* @license GNU General Public License version 2 or later; see LICENSE.txt | |
* @author Generated by AKHelper - http://asikart.com | |
*/ | |
// No direct access |
<?php | |
include_once JPATH_LIBRARIES . '/windwalker/init.php' ; |
# PHP # | |
###下載 原始碼 | |
$ wget http://tw2.php.net/distributions/php-5.3.8.tar.gz | |
$ wget http://xmlsoft.org/sources/libxml2-2.7.7.tar.gz | |
$ wget http://zlib.net/zlib-1.2.5.tar.gz | |
###解壓縮 | |
<?php | |
// login.php | |
$start_time = microtime(TRUE); | |
session_start(); | |
// do all my logic etc... | |
$end_time = microtime(TRUE); |
<?php | |
// Origin | |
// ----------------------------------------------------------------------------------------- | |
$rootCategory = $this->getRootCategory(); | |
$db = $this->getDbo(); | |
$start_time = microtime(TRUE); | |
foreach (range(1,500) as $r): |
joomla | |
``` | |
index | |
| | |
v | |
routing | |
| | |
v | |
controller <---- models <-- table & form | |
| | |
/<\?php\s(\/\*(?:[^*]|\n|(?:\*(?:[^\/]|\n)))*\*\/)\s/
Test in: http://www.rubular.com/
// Example JS | |
var RxresidentList = { | |
/** | |
* | |
*/ | |
init : function(option, $) | |
{ | |
this.root = option.root || 'http://localhost'; |