Хабр Курсы для всех
РЕКЛАМА
Практикум, Хекслет, SkyPro, авторские курсы — собрали всех и попросили скидки. Осталось выбрать!
The $options parameter can be either an array or an instance of Zend_Config with the following keys (defaults in paranthesis)
- z-index: Placement on the z-axis of the html output (255, top)
- image_path: Path to plugin icons (null, embedded as base64 encoded data)
- jquery_path: Specify a custom path to the jQuery script. Will only be included if not already part of the page. (http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js)
- plugins: An array of plugins to show.
var ZFDebugLoad = window.onload;
window.onload = function(){
if (ZFDebugLoad) {
ZFDebugLoad();
}
jQuery.noConflict();
ZFDebugCollapsed();
};
window.onload), всё равно будет вызван метод noConflict(), который замаскирует $, и, судя по всему, вызовет ещё какие-то побочные эффекты, препятствующие загрузке плагинов.noConflict():// jQuery.noConflict();

;
; Database
;
resources.db.adapter = "PDO_MYSQL"
resources.db.params.host = "localhost"
resources.db.params.username = "user"
resources.db.params.password = "pass"
resources.db.params.dbname = "database"
resources.db.isDefaultTableAdapter = true
/**
* Bootstrap zend debuging for application resources
*/
protected function _initZFDebug()
{
$autoloader = Zend_Loader_Autoloader::getInstance();
$autoloader->registerNamespace('ZFDebug');
$options = array(
'plugins' => array('Variables',
'Database' => array('adapter' => $db),
'File',
'Memory',
'Time',
'Registry',
'Exception')
);
$debug = new ZFDebug_Controller_Plugin_Debug($options);
$this->bootstrap('frontController');
$frontController = $this->getResource('frontController');
$frontController->registerPlugin($debug);
}
Zend_Db_Table::getDefaultAdapter(), то всеравно пишет что нет адаптера… =///class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
$resource = $this->getPluginResource('db');
$db = $resource->getDbAdapter();
$options = array(
'plugins' => array('Variables',
'Database' => array('adapter' => $db),
)
);
* This source code was highlighted with Source Code Highlighter.;============================================================================== ;DATABASE (application.ini)
;==============================================================================
resources.db.adapter = "Pdo_Mysql"
resources.db.params.host = "localhost"
resources.db.params.port = 3306
resources.db.params.username = "***"
resources.db.params.password = "***"
resources.db.params.dbname = "***"
resources.db.isDefaultTableAdapter = true
resources.db.profiler.enabled = true
resources.db.profiler.class = "Zend_Db_Profiler_Firebug"
resources.db.caseFolding = true
resources.db.autoQuoteIdentifiers = true
resources.db.allowSerialization = true
resources.db.autoReconnectOnUnserialize = true
resources.db.adapterNamespace = "Zend_Db_Adapter"
resources.db.driver_options.1002 = "SET NAMES UTF8"
* This source code was highlighted with Source Code Highlighter.resources.db.params.charset = "utf8"resources.db.driver_options.1002 = "SET NAMES UTF8"class XXX_Controller_Plugin extends Zend_Controller_Plugin_Abstract
{
public function preDispatch(Zend_Controller_Request_Abstract $request)
{
global $application;
$bootstrap = $application->getBootstrap();
$frontendOptions = array(
'automatic_serialization' => true
);
$backendOptions = array(
'cache_dir' => APPLICATION_PATH . DIRECTORY_SEPARATOR . 'cache'
);
$cache = Zend_Cache::factory(
'Core',
'File',
$frontendOptions,
$backendOptions
);
if ($bootstrap->hasResource('ZFDebug')) {
$frontController = Zend_Controller_Front::getInstance();
$zfDebug = $frontController->getPlugin('ZFDebug_Controller_Plugin_Debug');
$cachePlugin = new ZFDebug_Controller_Plugin_Debug_Plugin_Cache(array('backend' => $cache->getBackend()));
$zfDebug->registerPlugin($cachePlugin);
}
// Next, set the cache to be used with all table objects
Zend_Db_Table_Abstract::setDefaultMetadataCache($cache);
}
}
* This source code was highlighted with Source Code Highlighter.// ZFDebug/Controller/Plugin/Debug.php line 62
public static $standardPlugins = array('Auth' /* ... */);
* This source code was highlighted with Source Code Highlighter.
ZFDebug