/var/www/clients/client13/web77/web/vendor/bombayworks/zendframework1/library/Zend/Db/Statement/Pdo.php
return $this->_stmt->execute($params);
} else {
return $this->_stmt->execute();
}
} catch (PDOException $e) {
// require_once 'Zend/Db/Statement/Exception.php';
$message = sprintf('%s, query was: %s', $e->getMessage(), $this->_stmt->queryString);
throw new Zend_Db_Statement_Exception($message, (int) $e->getCode(), $e);
}
}
/var/www/clients/client13/web77/web/vendor/bombayworks/zendframework1/library/Zend/Db/Statement/Pdo.php
* @return bool
* @throws Zend_Db_Statement_Exception
*/
public function _execute(array $params = null)
{
try {
if ($params !== null) {
return $this->_stmt->execute($params);
} else {
return $this->_stmt->execute();
/var/www/clients/client13/web77/web/vendor/bombayworks/zendframework1/library/Zend/Db/Statement/Pdo.php
* @return bool
* @throws Zend_Db_Statement_Exception
*/
public function _execute(array $params = null)
{
try {
if ($params !== null) {
return $this->_stmt->execute($params);
} else {
return $this->_stmt->execute();
/var/www/clients/client13/web77/web/vendor/bombayworks/zendframework1/library/Zend/Db/Statement.php
*/
public function execute(array $params = null)
{
/*
* Simple case - no query profiler to manage.
*/
if ($this->_queryId === null) {
return $this->_execute($params);
}
/var/www/clients/client13/web77/web/vendor/bombayworks/zendframework1/library/Zend/Db/Adapter/Abstract.php
// because $bind may be a Zend_Db_Expr object
if (!is_array($bind)) {
$bind = array($bind);
}
// prepare and execute the statement with profiling
$stmt = $this->prepare($sql);
$stmt->execute($bind);
// return the results embedded in the prepared statement object
/var/www/clients/client13/web77/web/vendor/bombayworks/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php
unset($bind[$name]);
$bind[$newName] = $value;
}
}
}
try {
return parent::query($sql, $bind);
} catch (PDOException $e) {
/**
/var/www/clients/client13/web77/web/library/Dnk/Db/Table.php
public function cacheFetchAll($select = "", $type = "FETCHALL")
{
$prepare = $select->__toString();
//self::$_logger->warn($select);
$stmt = $this->getAdapter()->query($select);
$useCache = Zend_Registry::get('cnf')->use_cache;
/var/www/clients/client13/web77/web/library/Dnk/Db/Table.php
}
}
}
// if($this->_name=="nw_product_foodtypes"){
// Zend_Debug::dump($joinTable);die();
// self::$_FBlogger->debug($select.'');
// }
$retv = $this->cacheFetchAll($select);
}
else{
/var/www/clients/client13/web77/web/library/Dnk/Db/Table.php
}
public function getSingle($fields = array(), $where = "", $joinTable = "", $joinCond = "", $joinFields = array(), $joinType="")
{
if(count($fields) > 0){
//self::$_logger->warn(serialize($fields)." where ".$where);
$retv = $this->getAll($fields, $where, "", "", "", "", $joinTable, $joinCond, $joinFields, $joinType);
if(is_array($retv) && count($retv) > 0) $retv = $retv[0];
}
/var/www/clients/client13/web77/web/application/modules/products/models/ProductModel.php
$id = $this->getIdByUrl($id, $lang);
$data = $this->getSingle(array( 'id',
'name_'.$lang.' as name',
'annotation_'.$lang.' as annotation',
'text_'.$lang.' as text', 'lead_'.$lang.' as lead',
'brand', 'more_link', 'c2a_type', 'file_path', 'price', 'price_from',
'eshop_link_'.$lang.' as eshop_link',
), 'id='.$id);
if(!empty($data)){
$data['url'] = $this->getUrl($id, $lang);
/var/www/clients/client13/web77/web/application/modules/products/controllers/IndexController.php
class Products_IndexController extends Dnk_Common_Controller
{
function itemAction()
{
$lang =$this->view->currentLang();
$model = new ProductModel();
$this->view->item = $model->getItem($this->getParam('id'), $lang);
$brand_model = new BrandsModel();
/var/www/clients/client13/web77/web/vendor/bombayworks/zendframework1/library/Zend/Controller/Action.php
// @see ZF-7496
if (!($this->getResponse()->isRedirect())) {
// preDispatch() didn't change the action, so we can continue
if ($this->getInvokeArg('useCaseSensitiveActions') || in_array($action, $this->_classMethods)) {
if ($this->getInvokeArg('useCaseSensitiveActions')) {
trigger_error('Using case sensitive actions without word separators is deprecated; please do not rely on this "feature"');
}
$this->$action();
} else {
$this->__call($action, array());
/var/www/clients/client13/web77/web/vendor/bombayworks/zendframework1/library/Zend/Controller/Dispatcher/Standard.php
$disableOb = $this->getParam('disableOutputBuffering');
$obLevel = ob_get_level();
if (empty($disableOb)) {
ob_start();
}
try {
$controller->dispatch($action);
} catch (Exception $e) {
// Clean output buffer on error
/var/www/clients/client13/web77/web/vendor/bombayworks/zendframework1/library/Zend/Controller/Front.php
continue;
}
/**
* Dispatch request
*/
try {
$dispatcher->dispatch($this->_request, $this->_response);
} catch (Exception $e) {
if ($this->throwExceptions()) {
/var/www/clients/client13/web77/web/vendor/bombayworks/zendframework1/library/Zend/Controller/Front.php
* @return void
* @throws Zend_Controller_Exception if called from an object instance
*/
public static function run($controllerDirectory)
{
self::getInstance()
->setControllerDirectory($controllerDirectory)
->dispatch();
}
/var/www/clients/client13/web77/web/application/kernel.php
$viewRenderer->setView($view);
Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
//добавление пути для своих помощников
$view->addHelperPath('/admin/views/helpers', 'Admin_View_Helper');
// Запуск приложения
Zend_Controller_Front::run($config["path"]["controllers"]);
/var/www/clients/client13/web77/web/public/index.php
// Enable Composer autoloader
require_once BASE_PATH.'/vendor/autoload.php';
// Bootstrap default resources & run app
//$application->bootstrap(['frontController','request','routing','dicontainer','view'])->run();
include_once BASE_PATH.'/application/kernel.php';