Error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'Book.Book.position' in 'order clause'
SQL Query: SELECT `Book`.`id`, `Book`.`type`, `Book`.`full_ukr`, `Book`.`full_eng`, `Book`.`slug`, `Book`.`name_ukr`, `Book`.`name_eng`, `Book`.`cost`, `Book`.`old_cost`, `Book`.`in_stock`, `Book`.`pic`, `Book`.`pic_2`, `Book`.`label_text_ukr`, `Book`.`label_text_eng`, `Book`.`show_label_text`, `Book`.`label_color_ukr`, `Book`.`label_color_eng` FROM `nebopublishing_new`.`books` AS `Book` WHERE ((`Book`.`type` = ('book')) AND (`Book`.`in_stock` = 1) AND (`Book`.`del` = 0) AND (`Book`.`cost` > 0) AND (`Book`.`publishing` = 1)) ORDER BY `Book`.`Book`.position ASC LIMIT 24
Notice: If you want to customize this error message, create app/View/Errors/pdo_error.ctp
try {
$query = $this->_connection->prepare($sql, $prepareOptions);
$query->setFetchMode(PDO::FETCH_LAZY);
if (!$query->execute($params)) {
$this->_result = $query;
array()
$options += array('log' => $this->fullDebug);
$t = microtime(true);
$this->_result = $this->_execute($sql, $params);
'SELECT `Book`.`id`, `Book`.`type`, `Book`.`full_ukr`, `Book`.`full_eng`, `Book`.`slug`, `Book`.`name_ukr`, `Book`.`name_eng`, `Book`.`cost`, `Book`.`old_cost`, `Book`.`in_stock`, `Book`.`pic`, `Book`.`pic_2`, `Book`.`label_text_ukr`, `Book`.`label_text_eng`, `Book`.`show_label_text`, `Book`.`label_color_ukr`, `Book`.`label_color_eng` FROM `nebopublishing_new`.`books` AS `Book` WHERE ((`Book`.`type` = ('book')) AND (`Book`.`in_stock` = 1) AND (`Book`.`del` = 0) AND (`Book`.`cost` > 0) AND (`Book`.`publishing` = 1)) ORDER BY `Book`.`Book`.position ASC LIMIT 24' array()
if ($cache && ($cached = $this->getQueryCache($sql, $params)) !== false) {
return $cached;
}
$result = $this->execute($sql, array(), $params);
if ($result) {
'SELECT `Book`.`id`, `Book`.`type`, `Book`.`full_ukr`, `Book`.`full_eng`, `Book`.`slug`, `Book`.`name_ukr`, `Book`.`name_eng`, `Book`.`cost`, `Book`.`old_cost`, `Book`.`in_stock`, `Book`.`pic`, `Book`.`pic_2`, `Book`.`label_text_ukr`, `Book`.`label_text_eng`, `Book`.`show_label_text`, `Book`.`label_color_ukr`, `Book`.`label_color_eng` FROM `nebopublishing_new`.`books` AS `Book` WHERE ((`Book`.`type` = ('book')) AND (`Book`.`in_stock` = 1) AND (`Book`.`del` = 0) AND (`Book`.`cost` > 0) AND (`Book`.`publishing` = 1)) ORDER BY `Book`.`Book`.position ASC LIMIT 24' array() array()
// Build SQL statement with the primary model, plus hasOne and belongsTo associations
$query = $this->buildAssociationQuery($Model, $queryData);
$resultSet = $this->fetchAll($query, $Model->cacheQueries);
unset($query);
'SELECT `Book`.`id`, `Book`.`type`, `Book`.`full_ukr`, `Book`.`full_eng`, `Book`.`slug`, `Book`.`name_ukr`, `Book`.`name_eng`, `Book`.`cost`, `Book`.`old_cost`, `Book`.`in_stock`, `Book`.`pic`, `Book`.`pic_2`, `Book`.`label_text_ukr`, `Book`.`label_text_eng`, `Book`.`show_label_text`, `Book`.`label_color_ukr`, `Book`.`label_color_eng` FROM `nebopublishing_new`.`books` AS `Book` WHERE ((`Book`.`type` = ('book')) AND (`Book`.`in_stock` = 1) AND (`Book`.`del` = 0) AND (`Book`.`cost` > 0) AND (`Book`.`publishing` = 1)) ORDER BY `Book`.`Book`.position ASC LIMIT 24' false
* @return array
*/
protected function _readDataSource($type, $query) {
$results = $this->getDataSource()->read($this, $query);
$this->resetAssociations();
object(Book) { virtualFields => array( 'full_name_ukr' => 'CONCAT(Book.name_ukr, " (", Book.type, ") " )', 'full_name_eng' => 'CONCAT(Book.name_eng, " (", Book.type, ") " )' ) actsAs => array( 'Slugomatic.Slugomatic' => array( 'fields' => 'name_ukr', 'scope' => false, 'conditions' => false, 'slugfield' => 'slug', 'separator' => '-', 'overwrite' => true, 'length' => (int) 256, 'lower' => true ) ) validate => array( 'name_ukr' => array( 'notBlank' => array( [maximum depth reached] ) ), 'name_eng' => array( 'notBlank' => array( [maximum depth reached] ) ), 'position' => array( 'notBlank' => array( [maximum depth reached] ), 'numeric' => array( [maximum depth reached] ) ), 'cost' => array( 'notBlank' => array( [maximum depth reached] ), 'numeric' => array( [maximum depth reached] ) ), 'old_cost' => array( 'notBlank' => array( [maximum depth reached] ), 'numeric' => array( [maximum depth reached] ) ), 'page_cnt' => array( 'notBlank' => array( [maximum depth reached] ), 'numeric' => array( [maximum depth reached] ) ), 'massa' => array( 'notBlank' => array( [maximum depth reached] ), 'numeric' => array( [maximum depth reached] ) ), 'size_w' => array( 'notBlank' => array( [maximum depth reached] ), 'numeric' => array( [maximum depth reached] ) ), 'size_l' => array( 'notBlank' => array( [maximum depth reached] ), 'numeric' => array( [maximum depth reached] ) ), 'publication_year' => array( 'notBlank' => array( [maximum depth reached] ), 'numeric' => array( [maximum depth reached] ) ), 'isbn' => array( 'notBlank' => array( [maximum depth reached] ) ) ) hasAndBelongsToMany => array( 'Param' => array( 'className' => 'Param', 'joinTable' => 'books_params', 'foreignKey' => 'book_id', 'associationForeignKey' => 'param_id', 'unique' => 'keepExisting', 'conditions' => '', 'fields' => '', 'order' => '', 'limit' => '', 'offset' => '', 'finderQuery' => '', 'with' => 'BooksParam', 'dynamicWith' => true ) ) useDbConfig => 'default' useTable => 'books' id => false data => array() schemaName => 'nebopublishing_new' table => 'books' primaryKey => 'id' validationErrors => array() validationDomain => null tablePrefix => '' plugin => null name => 'Book' alias => 'Book' tableToModel => array( 'books' => 'Book' ) cacheQueries => false belongsTo => array() hasOne => array() hasMany => array() Behaviors => object(BehaviorCollection) { modelName => 'Book' defaultPriority => (int) 10 [protected] _methods => array([maximum depth reached]) [protected] _mappedMethods => array([maximum depth reached]) [protected] _enabled => array( [maximum depth reached] ) [protected] _loaded => array( [maximum depth reached] ) } whitelist => array() cacheSources => true findQueryType => 'all' recursive => (int) -1 order => null __backAssociation => array() __backInnerAssociation => array() __backOriginalAssociation => array() __backContainableAssociation => array() __safeUpdateMode => false useConsistentAfterFind => true findMethods => array( 'all' => true, 'first' => true, 'count' => true, 'neighbors' => true, 'list' => true, 'threaded' => true ) [protected] _schema => array( 'id' => array( 'type' => 'integer', 'null' => false, 'default' => null, 'length' => (int) 11, 'unsigned' => false, 'key' => 'primary' ), 'del' => array( 'type' => 'integer', 'null' => false, 'default' => '0', 'length' => (int) 11, 'unsigned' => false ), 'is_only_visa_pay' => array( 'type' => 'integer', 'null' => false, 'default' => '0', 'length' => (int) 11, 'unsigned' => false ), 'ebook_link_id' => array( 'type' => 'integer', 'null' => false, 'default' => '0', 'length' => (int) 11, 'unsigned' => false ), 'show_peredprodagh_text' => array( 'type' => 'integer', 'null' => false, 'default' => '0', 'length' => (int) 11, 'unsigned' => false ), 'peredpodagh_date_out_ukr' => array( 'type' => 'string', 'null' => true, 'default' => null, 'length' => (int) 500, 'collate' => 'utf8_general_ci', 'charset' => 'utf8' ), 'peredpodagh_date_out_eng' => array( 'type' => 'string', 'null' => true, 'default' => null, 'length' => (int) 500, 'collate' => 'utf8_general_ci', 'charset' => 'utf8' ), 'in_stock' => array( 'type' => 'integer', 'null' => false, 'default' => '1', 'length' => (int) 11, 'unsigned' => false ), 'type' => array( 'type' => 'string', 'null' => false, 'default' => 'book', 'length' => (int) 40, 'collate' => 'utf8_general_ci', 'charset' => 'utf8' ), 'label_text_ukr' => array( 'type' => 'string', 'null' => true, 'default' => null, 'length' => (int) 100, 'collate' => 'utf8_general_ci', 'charset' => 'utf8' ), 'label_text_eng' => array( 'type' => 'string', 'null' => true, 'default' => null, 'length' => (int) 100, 'collate' => 'utf8_general_ci', 'charset' => 'utf8' ), 'show_label_text' => array( 'type' => 'integer', 'null' => true, 'default' => '0', 'length' => (int) 11, 'unsigned' => false ), 'label_color_ukr' => array( 'type' => 'string', 'null' => true, 'default' => null, 'length' => (int) 100, 'collate' => 'utf8_general_ci', 'charset' => 'utf8' ), 'label_color_eng' => array( 'type' => 'string', 'null' => true, 'default' => null, 'length' => (int) 100, 'collate' => 'utf8_general_ci', 'charset' => 'utf8' ), 'pic' => array( 'type' => 'string', 'null' => true, 'default' => null, 'length' => (int) 255, 'collate' => 'utf8_general_ci', 'charset' => 'utf8' ), 'pic_2' => array( 'type' => 'string', 'null' => true, 'default' => null, 'length' => (int) 255, 'collate' => 'utf8_general_ci', 'charset' => 'utf8' ), 'name_ukr' => array( 'type' => 'string', 'null' => true, 'default' => null, 'length' => (int) 255, 'collate' => 'utf8_general_ci', 'charset' => 'utf8' ), 'name_eng' => array( 'type' => 'string', 'null' => true, 'default' => null, 'length' => (int) 255, 'collate' => 'utf8_general_ci', 'charset' => 'utf8' ), 'full_ukr' => array( 'type' => 'text', 'null' => true, 'default' => null, 'length' => null, 'collate' => 'utf8_general_ci', 'charset' => 'utf8' ), 'full_eng' => array( 'type' => 'text', 'null' => true, 'default' => null, 'length' => null, 'collate' => 'utf8_general_ci', 'charset' => 'utf8' ), 'about_auth_ukr' => array( 'type' => 'text', 'null' => true, 'default' => null, 'length' => null, 'collate' => 'utf8_general_ci', 'charset' => 'utf8' ), 'about_auth_eng' => array( 'type' => 'text', 'null' => true, 'default' => null, 'length' => null, 'collate' => 'utf8_general_ci', 'charset' => 'utf8' ), 'video_frame' => array( 'type' => 'text', 'null' => true, 'default' => null, 'length' => null, 'collate' => 'utf8_general_ci', 'charset' => 'utf8' ), 'works_by_book_ukr' => array( 'type' => 'text', 'null' => true, 'default' => null, 'length' => null, 'collate' => 'utf8_general_ci', 'charset' => 'utf8' ), 'works_by_book_eng' => array( 'type' => 'text', 'null' => true, 'default' => null, 'length' => null, 'collate' => 'utf8_general_ci', 'charset' => 'utf8' ), 'publication_year' => array( 'type' => 'string', 'null' => true, 'default' => null, 'length' => (int) 255, 'collate' => 'utf8_general_ci', 'charset' => 'utf8' ), 'isbn' => array( 'type' => 'string', 'null' => true, 'default' => null, 'length' => (int) 255, 'collate' => 'utf8_general_ci', 'charset' => 'utf8' ), 'isbn_inner' => array( 'type' => 'string', 'null' => true, 'default' => null, 'length' => (int) 255, 'collate' => 'utf8_general_ci', 'charset' => 'utf8' ), 'cost' => array( 'type' => 'float', 'null' => false, 'default' => '0', 'length' => null, 'unsigned' => false ), 'old_cost' => array( 'type' => 'float', 'null' => false, 'default' => '0', 'length' => null, 'unsigned' => false ), 'page_cnt' => array( 'type' => 'integer', 'null' => false, 'default' => '0', 'length' => (int) 11, 'unsigned' => false ), 'massa' => array( 'type' => 'float', 'null' => false, 'default' => '0', 'length' => null, 'unsigned' => false ), 'size_w' => array( 'type' => 'float', 'null' => false, 'default' => '0', 'length' => null, 'unsigned' => false ), 'size_l' => array( 'type' => 'float', 'null' => false, 'default' => '0', 'length' => null, 'unsigned' => false ), 'month_hit' => array( 'type' => 'integer', 'null' => false, 'default' => '0', 'length' => (int) 11, 'unsigned' => false ), 'new_arrival' => array( 'type' => 'integer', 'null' => false, 'default' => '0', 'length' => (int) 11, 'unsigned' => false ), 'meta_title_ukr' => array( 'type' => 'string', 'null' => true, 'default' => null, 'length' => (int) 255, 'collate' => 'utf8_general_ci', 'charset' => 'utf8' ), 'meta_title_eng' => array( 'type' => 'string', 'null' => true, 'default' => null, 'length' => (int) 255, 'collate' => 'utf8_general_ci', 'charset' => 'utf8' ), 'meta_keywords_ukr' => array( 'type' => 'string', 'null' => true, 'default' => null, 'length' => (int) 255, 'collate' => 'utf8_general_ci', 'charset' => 'utf8' ), 'meta_keywords_eng' => array( 'type' => 'string', 'null' => true, 'default' => null, 'length' => (int) 255, 'collate' => 'utf8_general_ci', 'charset' => 'utf8' ), 'meta_description_ukr' => array( 'type' => 'text', 'null' => true, 'default' => null, 'length' => null, 'collate' => 'utf8_general_ci', 'charset' => 'utf8' ), 'meta_description_eng' => array( 'type' => 'text', 'null' => true, 'default' => null, 'length' => null, 'collate' => 'utf8_general_ci', 'charset' => 'utf8' ), 'slug' => array( 'type' => 'string', 'null' => false, 'default' => null, 'length' => (int) 255, 'collate' => 'utf8_general_ci', 'charset' => 'utf8' ), 'publishing' => array( 'type' => 'integer', 'null' => false, 'default' => '1', 'length' => (int) 11, 'unsigned' => false ), 'position' => array( 'type' => 'integer', 'null' => false, 'default' => '0', 'length' => (int) 11, 'unsigned' => false ), 'created' => array( 'type' => 'datetime', 'null' => false, 'default' => null, 'length' => null ), 'modified' => array( 'type' => 'datetime', 'null' => false, 'default' => null, 'length' => null ) ) [protected] _associationKeys => array( 'belongsTo' => array( (int) 0 => 'className', (int) 1 => 'foreignKey', (int) 2 => 'conditions', (int) 3 => 'fields', (int) 4 => 'order', (int) 5 => 'counterCache' ), 'hasOne' => array( (int) 0 => 'className', (int) 1 => 'foreignKey', (int) 2 => 'conditions', (int) 3 => 'fields', (int) 4 => 'order', (int) 5 => 'dependent' ), 'hasMany' => array( (int) 0 => 'className', (int) 1 => 'foreignKey', (int) 2 => 'conditions', (int) 3 => 'fields', (int) 4 => 'order', (int) 5 => 'limit', (int) 6 => 'offset', (int) 7 => 'dependent', (int) 8 => 'exclusive', (int) 9 => 'finderQuery', (int) 10 => 'counterQuery' ), 'hasAndBelongsToMany' => array( (int) 0 => 'className', (int) 1 => 'joinTable', (int) 2 => 'with', (int) 3 => 'foreignKey', (int) 4 => 'associationForeignKey', (int) 5 => 'conditions', (int) 6 => 'fields', (int) 7 => 'order', (int) 8 => 'limit', (int) 9 => 'offset', (int) 10 => 'unique', (int) 11 => 'finderQuery' ) ) [protected] _associations => array( (int) 0 => 'belongsTo', (int) 1 => 'hasOne', (int) 2 => 'hasMany', (int) 3 => 'hasAndBelongsToMany' ) [protected] _insertID => null [protected] _sourceConfigured => true [protected] _eventManager => object(CakeEventManager) { [protected] _generalManager => object(CakeEventManager) {} [protected] _listeners => array( [maximum depth reached] ) [protected] _isGlobal => false } [protected] _validator => null } array( 'conditions' => array( 'AND' => array( 'Book.type' => array( (int) 0 => 'book' ), 'Book.in_stock' => (int) 1, 'Book.del' => (int) 0, 'Book.cost >' => (int) 0, 'Book.publishing' => (int) 1 ), 'OR' => array() ), 'fields' => array( (int) 0 => 'Book.id', (int) 1 => 'Book.type', (int) 2 => 'Book.full_ukr', (int) 3 => 'Book.full_eng', (int) 4 => 'Book.slug', (int) 5 => 'Book.name_ukr', (int) 6 => 'Book.name_eng', (int) 7 => 'Book.cost', (int) 8 => 'Book.old_cost', (int) 9 => 'Book.in_stock', (int) 10 => 'Book.pic', (int) 11 => 'Book.pic_2', (int) 12 => 'Book.label_text_ukr', (int) 13 => 'Book.label_text_eng', (int) 14 => 'Book.show_label_text', (int) 15 => 'Book.label_color_ukr', (int) 16 => 'Book.label_color_eng' ), 'joins' => array(), 'limit' => (int) 24, 'offset' => null, 'order' => array( (int) 0 => 'Book.Book.position' ), 'page' => (int) 1, 'group' => null, 'callbacks' => true, 'recursive' => (int) -1, 'maxLimit' => (int) 100, 'paramType' => 'named', 'queryScope' => null )
return null;
}
return $this->_readDataSource($type, $query);
}
'all' array( 'conditions' => array( 'AND' => array( 'Book.type' => array( (int) 0 => 'book' ), 'Book.in_stock' => (int) 1, 'Book.del' => (int) 0, 'Book.cost >' => (int) 0, 'Book.publishing' => (int) 1 ), 'OR' => array() ), 'fields' => array( (int) 0 => 'Book.id', (int) 1 => 'Book.type', (int) 2 => 'Book.full_ukr', (int) 3 => 'Book.full_eng', (int) 4 => 'Book.slug', (int) 5 => 'Book.name_ukr', (int) 6 => 'Book.name_eng', (int) 7 => 'Book.cost', (int) 8 => 'Book.old_cost', (int) 9 => 'Book.in_stock', (int) 10 => 'Book.pic', (int) 11 => 'Book.pic_2', (int) 12 => 'Book.label_text_ukr', (int) 13 => 'Book.label_text_eng', (int) 14 => 'Book.show_label_text', (int) 15 => 'Book.label_color_ukr', (int) 16 => 'Book.label_color_eng' ), 'joins' => array(), 'limit' => (int) 24, 'offset' => null, 'order' => array( (int) 0 => 'Book.Book.position' ), 'page' => (int) 1, 'group' => null, 'callbacks' => true, 'recursive' => (int) -1, 'maxLimit' => (int) 100, 'paramType' => 'named', 'queryScope' => null )
if ($recursive != $object->recursive) {
$parameters['recursive'] = $recursive;
}
$results = $object->find($type, array_merge($parameters, $extra));
}
'all' array( 'conditions' => array( 'AND' => array( 'Book.type' => array( (int) 0 => 'book' ), 'Book.in_stock' => (int) 1, 'Book.del' => (int) 0, 'Book.cost >' => (int) 0, 'Book.publishing' => (int) 1 ), 'OR' => array() ), 'fields' => array( (int) 0 => 'Book.id', (int) 1 => 'Book.type', (int) 2 => 'Book.full_ukr', (int) 3 => 'Book.full_eng', (int) 4 => 'Book.slug', (int) 5 => 'Book.name_ukr', (int) 6 => 'Book.name_eng', (int) 7 => 'Book.cost', (int) 8 => 'Book.old_cost', (int) 9 => 'Book.in_stock', (int) 10 => 'Book.pic', (int) 11 => 'Book.pic_2', (int) 12 => 'Book.label_text_ukr', (int) 13 => 'Book.label_text_eng', (int) 14 => 'Book.show_label_text', (int) 15 => 'Book.label_color_ukr', (int) 16 => 'Book.label_color_eng' ), 'order' => 'Book.Book.position', 'limit' => (int) 24, 'page' => (int) 1, 'recursive' => (int) -1, 'maxLimit' => (int) 100, 'paramType' => 'named', 'queryScope' => null )
* @link https://book.cakephp.org/2.0/en/controllers.html#Controller::paginate
*/
public function paginate($object = null, $scope = array(), $whitelist = array()) {
return $this->Components->load('Paginator', $this->paginate)->paginate($object, $scope, $whitelist);
}
'Book' array() array()
'order'=>$sort,
'conditions'=>$cond,
));
$books = $this->paginate('Book');
$booksImgPath = $this->Book->imgPath();
'Book'
);
$limit = array(24,36,48);
$types = array();
$this->_products($AND = array('Book.type'=>array('book' ), 'Book.in_stock'=>1, 'Book.del'=>0, 'Book.cost >'=>0, 'Book.publishing'=>1) );
array( 'Book.type' => array( (int) 0 => 'book' ), 'Book.in_stock' => (int) 1, 'Book.del' => (int) 0, 'Book.cost >' => (int) 0, 'Book.publishing' => (int) 1 )
'action' => $request->params['action']
));
}
return $method->invokeArgs($this, $request->params['pass']);
object(PagesController) { uses => array( (int) 0 => 'Book', (int) 1 => 'Promocode', (int) 2 => 'Message', (int) 3 => 'User', (int) 4 => 'Review', (int) 5 => 'Wfp', (int) 6 => 'OrdersBook', (int) 7 => 'Bonus', (int) 8 => 'Setting', (int) 9 => 'Wishlist', (int) 10 => 'Param', (int) 11 => 'ParamsParam', (int) 12 => 'Cart', (int) 13 => 'Slider', (int) 14 => 'Section', (int) 15 => 'Post', (int) 16 => 'Order', (int) 17 => 'OrdersBook', (int) 18 => 'BooksParam', (int) 19 => 'BooksContractor', (int) 20 => 'Pic', (int) 21 => 'Wishlist' ) components => array( 'Auth' => array( 'authorize' => array( [maximum depth reached] ) ), (int) 0 => 'Session', (int) 1 => 'RequestHandler', (int) 2 => 'Cookie', (int) 3 => 'Paginator', (int) 4 => 'Redirect' ) name => 'Pages' helpers => array() request => object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array( [maximum depth reached] ) url => 'books' base => '' webroot => '/' here => '/books' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' } response => object(CakeResponse) { [protected] _statusCodes => array( [maximum depth reached] ) [protected] _mimeTypes => array( [maximum depth reached] ) [protected] _protocol => 'HTTP/1.1' [protected] _status => (int) 200 [protected] _contentType => 'text/html' [protected] _headers => array([maximum depth reached]) [protected] _body => null [protected] _file => null [protected] _fileRange => null [protected] _charset => 'UTF-8' [protected] _cacheDirectives => array([maximum depth reached]) [protected] _cookies => array([maximum depth reached]) } viewPath => 'Pages' layoutPath => null viewVars => array( 'current_user' => null, 'usersImgPath' => '/files/users/', 'vt' => 'grid', 'body_class' => 'books', 'cart' => null, 'cart_sum' => array( 'cart_sum' => (int) 0 ), 'cart_count' => (int) 0 ) view => 'books' layout => 'nebo' autoRender => true autoLayout => true Components => object(ComponentCollection) { defaultPriority => (int) 10 [protected] _Controller => object(PagesController) {} [protected] _enabled => array( [maximum depth reached] ) [protected] _loaded => array( [maximum depth reached] ) } viewClass => 'View' View => null ext => '.ctp' plugin => null cacheAction => false passedArgs => array() scaffold => false methods => array( (int) 1 => 'webhhook_keycrm', (int) 2 => 'get_crm_num_id', (int) 3 => 'update_pay_keycrm', (int) 4 => 'crmkey', (int) 5 => 'delWishItem', (int) 6 => 'from_w_to_c', (int) 7 => 'ajax_delFromWishlist', (int) 8 => 'ajax_addToWoshlist', (int) 9 => 'wishlist', (int) 10 => 'emptyCart', (int) 11 => 'ajax_cart', (int) 12 => 'ajax_wish', (int) 13 => 'ajax_RemoveCartItem', (int) 14 => 'delCartItem', (int) 15 => 'ajax_addToCart', (int) 16 => 'checkout_login', (int) 17 => 'cart', (int) 18 => '_sendUserOrderMail', (int) 19 => 'promo_use', (int) 20 => 'checkout', (int) 21 => '_wfp', (int) 22 => 'wfp_response', (int) 23 => 'success', (int) 24 => 'home', (int) 25 => 'ajax_book', (int) 26 => 'product_view', (int) 27 => '_product', (int) 28 => 'send_review', (int) 29 => 'ajax_login', (int) 30 => 'search', (int) 31 => 'merch', (int) 32 => 'box_set', (int) 33 => 'ebooks', (int) 34 => 'books', (int) 35 => 'ajax_loading', (int) 36 => '_products', (int) 37 => 'posts', (int) 38 => 'post', (int) 39 => 'send_message', (int) 40 => 'about', (int) 41 => 'partnerstvo', (int) 42 => 'contacts', (int) 44 => 'setLang', (int) 45 => '_setErrorLayout', (int) 46 => 'isAuthorized' ) modelClass => 'Book' modelKey => 'page' validationErrors => null Auth => object(AuthComponent) { components => array( [maximum depth reached] ) authenticate => array( [maximum depth reached] ) authorize => array( [maximum depth reached] ) ajaxLogin => null flash => array( [maximum depth reached] ) loginAction => array( [maximum depth reached] ) loginRedirect => array( [maximum depth reached] ) logoutRedirect => array( [maximum depth reached] ) authError => 'You are not authorized to access that location.' unauthorizedRedirect => true allowedActions => array( [maximum depth reached] ) request => object(CakeRequest) {} response => object(CakeResponse) {} settings => array( [maximum depth reached] ) [protected] _authenticateObjects => array( [maximum depth reached] ) [protected] _authorizeObjects => array([maximum depth reached]) [protected] _user => array([maximum depth reached]) [protected] _methods => array( [maximum depth reached] ) [protected] _Collection => object(ComponentCollection) {} [protected] _componentMap => array( [maximum depth reached] ) } Session => object(SessionComponent) { settings => array([maximum depth reached]) components => array([maximum depth reached]) [protected] _Collection => object(ComponentCollection) {} [protected] _componentMap => array([maximum depth reached]) } RequestHandler => object(RequestHandlerComponent) { ajaxLayout => 'ajax' enabled => true request => object(CakeRequest) {} response => object(CakeResponse) {} ext => null params => array( [maximum depth reached] ) settings => array( [maximum depth reached] ) components => array([maximum depth reached]) [protected] _renderType => null [protected] _inputTypeMap => array( [maximum depth reached] ) [protected] _viewClassMap => array( [maximum depth reached] ) [protected] _Collection => object(ComponentCollection) {} [protected] _componentMap => array([maximum depth reached]) } Cookie => object(CookieComponent) { name => 'CakeCookie' time => null path => '/' domain => '' secure => false key => 'DYhG93b0qyJfIxsdjgfjsdgfjfs2guVoUubWwvniR2G0FgaC9mi' httpOnly => false settings => array([maximum depth reached]) components => array([maximum depth reached]) [protected] _values => array( [maximum depth reached] ) [protected] _type => 'cipher' [protected] _reset => null [protected] _expires => (int) 0 [protected] _response => object(CakeResponse) {} [protected] _Collection => object(ComponentCollection) {} [protected] _componentMap => array([maximum depth reached]) } Paginator => object(PaginatorComponent) { settings => array( [maximum depth reached] ) whitelist => array( [maximum depth reached] ) components => array([maximum depth reached]) Controller => object(PagesController) {} [protected] _Collection => object(ComponentCollection) {} [protected] _componentMap => array([maximum depth reached]) } Redirect => object(RedirectComponent) { components => array( [maximum depth reached] ) controller => object(PagesController) {} settings => array([maximum depth reached]) [protected] _Collection => object(ComponentCollection) {} [protected] _componentMap => array( [maximum depth reached] ) } Cart => object(Cart) { useTable => false components => array( [maximum depth reached] ) useDbConfig => 'default' displayField => null id => null data => array([maximum depth reached]) schemaName => null table => 'carts' primaryKey => 'id' validate => array([maximum depth reached]) validationErrors => array([maximum depth reached]) validationDomain => null plugin => null name => 'Cart' alias => 'Cart' tableToModel => array([maximum depth reached]) cacheQueries => false belongsTo => array([maximum depth reached]) hasOne => array([maximum depth reached]) hasMany => array([maximum depth reached]) hasAndBelongsToMany => array([maximum depth reached]) actsAs => null Behaviors => object(BehaviorCollection) {} whitelist => array([maximum depth reached]) cacheSources => true findQueryType => null recursive => (int) 1 order => null virtualFields => array([maximum depth reached]) __backAssociation => array([maximum depth reached]) __backInnerAssociation => array([maximum depth reached]) __backOriginalAssociation => array([maximum depth reached]) __backContainableAssociation => array([maximum depth reached]) __safeUpdateMode => false useConsistentAfterFind => true findMethods => array( [maximum depth reached] ) [protected] _schema => null [protected] _associationKeys => array( [maximum depth reached] ) [protected] _associations => array( [maximum depth reached] ) [protected] _insertID => null [protected] _sourceConfigured => false [protected] _eventManager => null [protected] _validator => null } User => object(User) { virtualFields => array( [maximum depth reached] ) validate => array( [maximum depth reached] ) belongsTo => array( [maximum depth reached] ) hasMany => array( [maximum depth reached] ) useDbConfig => 'default' useTable => 'users' id => null data => array([maximum depth reached]) schemaName => null table => 'users' primaryKey => 'id' validationErrors => array([maximum depth reached]) validationDomain => null plugin => null name => 'User' alias => 'User' tableToModel => array( [maximum depth reached] ) cacheQueries => false hasOne => array([maximum depth reached]) hasAndBelongsToMany => array([maximum depth reached]) actsAs => null Behaviors => object(BehaviorCollection) {} whitelist => array([maximum depth reached]) cacheSources => true findQueryType => null recursive => (int) 1 order => null __backAssociation => array([maximum depth reached]) __backInnerAssociation => array([maximum depth reached]) __backOriginalAssociation => array([maximum depth reached]) __backContainableAssociation => array([maximum depth reached]) __safeUpdateMode => false useConsistentAfterFind => true findMethods => array( [maximum depth reached] ) [protected] _schema => null [protected] _associationKeys => array( [maximum depth reached] ) [protected] _associations => array( [maximum depth reached] ) [protected] _insertID => null [protected] _sourceConfigured => false [protected] _eventManager => null [protected] _validator => null } Book => object(Book) { virtualFields => array( [maximum depth reached] ) actsAs => array( [maximum depth reached] ) validate => array( [maximum depth reached] ) hasAndBelongsToMany => array( [maximum depth reached] ) useDbConfig => 'default' useTable => 'books' id => false data => array([maximum depth reached]) schemaName => 'nebopublishing_new' table => 'books' primaryKey => 'id' validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => '' plugin => null name => 'Book' alias => 'Book' tableToModel => array( [maximum depth reached] ) cacheQueries => false belongsTo => array([maximum depth reached]) hasOne => array([maximum depth reached]) hasMany => array([maximum depth reached]) Behaviors => object(BehaviorCollection) {} whitelist => array([maximum depth reached]) cacheSources => true findQueryType => 'all' recursive => (int) -1 order => null __backAssociation => array([maximum depth reached]) __backInnerAssociation => array([maximum depth reached]) __backOriginalAssociation => array([maximum depth reached]) __backContainableAssociation => array([maximum depth reached]) __safeUpdateMode => false useConsistentAfterFind => true findMethods => array( [maximum depth reached] ) [protected] _schema => array( [maximum depth reached] ) [protected] _associationKeys => array( [maximum depth reached] ) [protected] _associations => array( [maximum depth reached] ) [protected] _insertID => null [protected] _sourceConfigured => true [protected] _eventManager => object(CakeEventManager) {} [protected] _validator => null } [protected] _responseClass => 'CakeResponse' [protected] _mergeParent => 'AppController' [protected] _eventManager => object(CakeEventManager) { [protected] _generalManager => object(CakeEventManager) {} [protected] _listeners => array( [maximum depth reached] ) [protected] _isGlobal => false } } array()
$response = $controller->response;
$render = true;
$result = $controller->invokeAction($request);
if ($result instanceof CakeResponse) {
object(CakeRequest) { params => array( 'plugin' => null, 'controller' => 'pages', 'action' => 'books', 'named' => array(), 'pass' => array(), 'lang' => 'ukr', 'isAjax' => false, 'models' => array( 'Cart' => array( [maximum depth reached] ), 'User' => array( [maximum depth reached] ), 'Book' => array( [maximum depth reached] ) ) ) data => array() query => array( 'sort' => 'Book.position', 'direction' => 'desc', 'series' => '60', 'age' => '67', 'genre' => '39' ) url => 'books' base => '' webroot => '/' here => '/books' [protected] _detectors => array( 'get' => array( 'env' => 'REQUEST_METHOD', 'value' => 'GET' ), 'patch' => array( 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ), 'post' => array( 'env' => 'REQUEST_METHOD', 'value' => 'POST' ), 'put' => array( 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ), 'delete' => array( 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ), 'head' => array( 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ), 'options' => array( 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ), 'ssl' => array( 'env' => 'HTTPS', 'value' => (int) 1 ), 'ajax' => array( 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ), 'flash' => array( 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ), 'mobile' => array( 'env' => 'HTTP_USER_AGENT', 'options' => array( [maximum depth reached] ) ), 'requested' => array( 'param' => 'requested', 'value' => (int) 1 ), 'json' => array( 'accept' => array( [maximum depth reached] ), 'param' => 'ext', 'value' => 'json' ), 'xml' => array( 'accept' => array( [maximum depth reached] ), 'param' => 'ext', 'value' => 'xml' ) ) [protected] _input => '' }
));
}
$response = $this->_invoke($controller, $request);
if (isset($request->params['return'])) {
object(PagesController) { uses => array( (int) 0 => 'Book', (int) 1 => 'Promocode', (int) 2 => 'Message', (int) 3 => 'User', (int) 4 => 'Review', (int) 5 => 'Wfp', (int) 6 => 'OrdersBook', (int) 7 => 'Bonus', (int) 8 => 'Setting', (int) 9 => 'Wishlist', (int) 10 => 'Param', (int) 11 => 'ParamsParam', (int) 12 => 'Cart', (int) 13 => 'Slider', (int) 14 => 'Section', (int) 15 => 'Post', (int) 16 => 'Order', (int) 17 => 'OrdersBook', (int) 18 => 'BooksParam', (int) 19 => 'BooksContractor', (int) 20 => 'Pic', (int) 21 => 'Wishlist' ) components => array( 'Auth' => array( 'authorize' => array( [maximum depth reached] ) ), (int) 0 => 'Session', (int) 1 => 'RequestHandler', (int) 2 => 'Cookie', (int) 3 => 'Paginator', (int) 4 => 'Redirect' ) name => 'Pages' helpers => array() request => object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array( [maximum depth reached] ) url => 'books' base => '' webroot => '/' here => '/books' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' } response => object(CakeResponse) { [protected] _statusCodes => array( [maximum depth reached] ) [protected] _mimeTypes => array( [maximum depth reached] ) [protected] _protocol => 'HTTP/1.1' [protected] _status => (int) 200 [protected] _contentType => 'text/html' [protected] _headers => array([maximum depth reached]) [protected] _body => null [protected] _file => null [protected] _fileRange => null [protected] _charset => 'UTF-8' [protected] _cacheDirectives => array([maximum depth reached]) [protected] _cookies => array([maximum depth reached]) } viewPath => 'Pages' layoutPath => null viewVars => array( 'current_user' => null, 'usersImgPath' => '/files/users/', 'vt' => 'grid', 'body_class' => 'books', 'cart' => null, 'cart_sum' => array( 'cart_sum' => (int) 0 ), 'cart_count' => (int) 0 ) view => 'books' layout => 'nebo' autoRender => true autoLayout => true Components => object(ComponentCollection) { defaultPriority => (int) 10 [protected] _Controller => object(PagesController) {} [protected] _enabled => array( [maximum depth reached] ) [protected] _loaded => array( [maximum depth reached] ) } viewClass => 'View' View => null ext => '.ctp' plugin => null cacheAction => false passedArgs => array() scaffold => false methods => array( (int) 1 => 'webhhook_keycrm', (int) 2 => 'get_crm_num_id', (int) 3 => 'update_pay_keycrm', (int) 4 => 'crmkey', (int) 5 => 'delWishItem', (int) 6 => 'from_w_to_c', (int) 7 => 'ajax_delFromWishlist', (int) 8 => 'ajax_addToWoshlist', (int) 9 => 'wishlist', (int) 10 => 'emptyCart', (int) 11 => 'ajax_cart', (int) 12 => 'ajax_wish', (int) 13 => 'ajax_RemoveCartItem', (int) 14 => 'delCartItem', (int) 15 => 'ajax_addToCart', (int) 16 => 'checkout_login', (int) 17 => 'cart', (int) 18 => '_sendUserOrderMail', (int) 19 => 'promo_use', (int) 20 => 'checkout', (int) 21 => '_wfp', (int) 22 => 'wfp_response', (int) 23 => 'success', (int) 24 => 'home', (int) 25 => 'ajax_book', (int) 26 => 'product_view', (int) 27 => '_product', (int) 28 => 'send_review', (int) 29 => 'ajax_login', (int) 30 => 'search', (int) 31 => 'merch', (int) 32 => 'box_set', (int) 33 => 'ebooks', (int) 34 => 'books', (int) 35 => 'ajax_loading', (int) 36 => '_products', (int) 37 => 'posts', (int) 38 => 'post', (int) 39 => 'send_message', (int) 40 => 'about', (int) 41 => 'partnerstvo', (int) 42 => 'contacts', (int) 44 => 'setLang', (int) 45 => '_setErrorLayout', (int) 46 => 'isAuthorized' ) modelClass => 'Book' modelKey => 'page' validationErrors => null Auth => object(AuthComponent) { components => array( [maximum depth reached] ) authenticate => array( [maximum depth reached] ) authorize => array( [maximum depth reached] ) ajaxLogin => null flash => array( [maximum depth reached] ) loginAction => array( [maximum depth reached] ) loginRedirect => array( [maximum depth reached] ) logoutRedirect => array( [maximum depth reached] ) authError => 'You are not authorized to access that location.' unauthorizedRedirect => true allowedActions => array( [maximum depth reached] ) request => object(CakeRequest) {} response => object(CakeResponse) {} settings => array( [maximum depth reached] ) [protected] _authenticateObjects => array( [maximum depth reached] ) [protected] _authorizeObjects => array([maximum depth reached]) [protected] _user => array([maximum depth reached]) [protected] _methods => array( [maximum depth reached] ) [protected] _Collection => object(ComponentCollection) {} [protected] _componentMap => array( [maximum depth reached] ) } Session => object(SessionComponent) { settings => array([maximum depth reached]) components => array([maximum depth reached]) [protected] _Collection => object(ComponentCollection) {} [protected] _componentMap => array([maximum depth reached]) } RequestHandler => object(RequestHandlerComponent) { ajaxLayout => 'ajax' enabled => true request => object(CakeRequest) {} response => object(CakeResponse) {} ext => null params => array( [maximum depth reached] ) settings => array( [maximum depth reached] ) components => array([maximum depth reached]) [protected] _renderType => null [protected] _inputTypeMap => array( [maximum depth reached] ) [protected] _viewClassMap => array( [maximum depth reached] ) [protected] _Collection => object(ComponentCollection) {} [protected] _componentMap => array([maximum depth reached]) } Cookie => object(CookieComponent) { name => 'CakeCookie' time => null path => '/' domain => '' secure => false key => 'DYhG93b0qyJfIxsdjgfjsdgfjfs2guVoUubWwvniR2G0FgaC9mi' httpOnly => false settings => array([maximum depth reached]) components => array([maximum depth reached]) [protected] _values => array( [maximum depth reached] ) [protected] _type => 'cipher' [protected] _reset => null [protected] _expires => (int) 0 [protected] _response => object(CakeResponse) {} [protected] _Collection => object(ComponentCollection) {} [protected] _componentMap => array([maximum depth reached]) } Paginator => object(PaginatorComponent) { settings => array( [maximum depth reached] ) whitelist => array( [maximum depth reached] ) components => array([maximum depth reached]) Controller => object(PagesController) {} [protected] _Collection => object(ComponentCollection) {} [protected] _componentMap => array([maximum depth reached]) } Redirect => object(RedirectComponent) { components => array( [maximum depth reached] ) controller => object(PagesController) {} settings => array([maximum depth reached]) [protected] _Collection => object(ComponentCollection) {} [protected] _componentMap => array( [maximum depth reached] ) } Cart => object(Cart) { useTable => false components => array( [maximum depth reached] ) useDbConfig => 'default' displayField => null id => null data => array([maximum depth reached]) schemaName => null table => 'carts' primaryKey => 'id' validate => array([maximum depth reached]) validationErrors => array([maximum depth reached]) validationDomain => null plugin => null name => 'Cart' alias => 'Cart' tableToModel => array([maximum depth reached]) cacheQueries => false belongsTo => array([maximum depth reached]) hasOne => array([maximum depth reached]) hasMany => array([maximum depth reached]) hasAndBelongsToMany => array([maximum depth reached]) actsAs => null Behaviors => object(BehaviorCollection) {} whitelist => array([maximum depth reached]) cacheSources => true findQueryType => null recursive => (int) 1 order => null virtualFields => array([maximum depth reached]) __backAssociation => array([maximum depth reached]) __backInnerAssociation => array([maximum depth reached]) __backOriginalAssociation => array([maximum depth reached]) __backContainableAssociation => array([maximum depth reached]) __safeUpdateMode => false useConsistentAfterFind => true findMethods => array( [maximum depth reached] ) [protected] _schema => null [protected] _associationKeys => array( [maximum depth reached] ) [protected] _associations => array( [maximum depth reached] ) [protected] _insertID => null [protected] _sourceConfigured => false [protected] _eventManager => null [protected] _validator => null } User => object(User) { virtualFields => array( [maximum depth reached] ) validate => array( [maximum depth reached] ) belongsTo => array( [maximum depth reached] ) hasMany => array( [maximum depth reached] ) useDbConfig => 'default' useTable => 'users' id => null data => array([maximum depth reached]) schemaName => null table => 'users' primaryKey => 'id' validationErrors => array([maximum depth reached]) validationDomain => null plugin => null name => 'User' alias => 'User' tableToModel => array( [maximum depth reached] ) cacheQueries => false hasOne => array([maximum depth reached]) hasAndBelongsToMany => array([maximum depth reached]) actsAs => null Behaviors => object(BehaviorCollection) {} whitelist => array([maximum depth reached]) cacheSources => true findQueryType => null recursive => (int) 1 order => null __backAssociation => array([maximum depth reached]) __backInnerAssociation => array([maximum depth reached]) __backOriginalAssociation => array([maximum depth reached]) __backContainableAssociation => array([maximum depth reached]) __safeUpdateMode => false useConsistentAfterFind => true findMethods => array( [maximum depth reached] ) [protected] _schema => null [protected] _associationKeys => array( [maximum depth reached] ) [protected] _associations => array( [maximum depth reached] ) [protected] _insertID => null [protected] _sourceConfigured => false [protected] _eventManager => null [protected] _validator => null } Book => object(Book) { virtualFields => array( [maximum depth reached] ) actsAs => array( [maximum depth reached] ) validate => array( [maximum depth reached] ) hasAndBelongsToMany => array( [maximum depth reached] ) useDbConfig => 'default' useTable => 'books' id => false data => array([maximum depth reached]) schemaName => 'nebopublishing_new' table => 'books' primaryKey => 'id' validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => '' plugin => null name => 'Book' alias => 'Book' tableToModel => array( [maximum depth reached] ) cacheQueries => false belongsTo => array([maximum depth reached]) hasOne => array([maximum depth reached]) hasMany => array([maximum depth reached]) Behaviors => object(BehaviorCollection) {} whitelist => array([maximum depth reached]) cacheSources => true findQueryType => 'all' recursive => (int) -1 order => null __backAssociation => array([maximum depth reached]) __backInnerAssociation => array([maximum depth reached]) __backOriginalAssociation => array([maximum depth reached]) __backContainableAssociation => array([maximum depth reached]) __safeUpdateMode => false useConsistentAfterFind => true findMethods => array( [maximum depth reached] ) [protected] _schema => array( [maximum depth reached] ) [protected] _associationKeys => array( [maximum depth reached] ) [protected] _associations => array( [maximum depth reached] ) [protected] _insertID => null [protected] _sourceConfigured => true [protected] _eventManager => object(CakeEventManager) {} [protected] _validator => null } [protected] _responseClass => 'CakeResponse' [protected] _mergeParent => 'AppController' [protected] _eventManager => object(CakeEventManager) { [protected] _generalManager => object(CakeEventManager) {} [protected] _listeners => array( [maximum depth reached] ) [protected] _isGlobal => false } } object(CakeRequest) { params => array( 'plugin' => null, 'controller' => 'pages', 'action' => 'books', 'named' => array(), 'pass' => array(), 'lang' => 'ukr', 'isAjax' => false, 'models' => array( 'Cart' => array( [maximum depth reached] ), 'User' => array( [maximum depth reached] ), 'Book' => array( [maximum depth reached] ) ) ) data => array() query => array( 'sort' => 'Book.position', 'direction' => 'desc', 'series' => '60', 'age' => '67', 'genre' => '39' ) url => 'books' base => '' webroot => '/' here => '/books' [protected] _detectors => array( 'get' => array( 'env' => 'REQUEST_METHOD', 'value' => 'GET' ), 'patch' => array( 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ), 'post' => array( 'env' => 'REQUEST_METHOD', 'value' => 'POST' ), 'put' => array( 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ), 'delete' => array( 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ), 'head' => array( 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ), 'options' => array( 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ), 'ssl' => array( 'env' => 'HTTPS', 'value' => (int) 1 ), 'ajax' => array( 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ), 'flash' => array( 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ), 'mobile' => array( 'env' => 'HTTP_USER_AGENT', 'options' => array( [maximum depth reached] ) ), 'requested' => array( 'param' => 'requested', 'value' => (int) 1 ), 'json' => array( 'accept' => array( [maximum depth reached] ), 'param' => 'ext', 'value' => 'json' ), 'xml' => array( 'accept' => array( [maximum depth reached] ), 'param' => 'ext', 'value' => 'xml' ) ) [protected] _input => '' }
$Dispatcher->dispatch(
new CakeRequest(),
new CakeResponse()
);
object(CakeRequest) { params => array( 'plugin' => null, 'controller' => 'pages', 'action' => 'books', 'named' => array(), 'pass' => array(), 'lang' => 'ukr', 'isAjax' => false, 'models' => array( 'Cart' => array( [maximum depth reached] ), 'User' => array( [maximum depth reached] ), 'Book' => array( [maximum depth reached] ) ) ) data => array() query => array( 'sort' => 'Book.position', 'direction' => 'desc', 'series' => '60', 'age' => '67', 'genre' => '39' ) url => 'books' base => '' webroot => '/' here => '/books' [protected] _detectors => array( 'get' => array( 'env' => 'REQUEST_METHOD', 'value' => 'GET' ), 'patch' => array( 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ), 'post' => array( 'env' => 'REQUEST_METHOD', 'value' => 'POST' ), 'put' => array( 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ), 'delete' => array( 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ), 'head' => array( 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ), 'options' => array( 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ), 'ssl' => array( 'env' => 'HTTPS', 'value' => (int) 1 ), 'ajax' => array( 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ), 'flash' => array( 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ), 'mobile' => array( 'env' => 'HTTP_USER_AGENT', 'options' => array( [maximum depth reached] ) ), 'requested' => array( 'param' => 'requested', 'value' => (int) 1 ), 'json' => array( 'accept' => array( [maximum depth reached] ), 'param' => 'ext', 'value' => 'json' ), 'xml' => array( 'accept' => array( [maximum depth reached] ), 'param' => 'ext', 'value' => 'xml' ) ) [protected] _input => '' } object(CakeResponse) { [protected] _statusCodes => array( (int) 100 => 'Continue', (int) 101 => 'Switching Protocols', (int) 200 => 'OK', (int) 201 => 'Created', (int) 202 => 'Accepted', (int) 203 => 'Non-Authoritative Information', (int) 204 => 'No Content', (int) 205 => 'Reset Content', (int) 206 => 'Partial Content', (int) 300 => 'Multiple Choices', (int) 301 => 'Moved Permanently', (int) 302 => 'Found', (int) 303 => 'See Other', (int) 304 => 'Not Modified', (int) 305 => 'Use Proxy', (int) 307 => 'Temporary Redirect', (int) 400 => 'Bad Request', (int) 401 => 'Unauthorized', (int) 402 => 'Payment Required', (int) 403 => 'Forbidden', (int) 404 => 'Not Found', (int) 405 => 'Method Not Allowed', (int) 406 => 'Not Acceptable', (int) 407 => 'Proxy Authentication Required', (int) 408 => 'Request Time-out', (int) 409 => 'Conflict', (int) 410 => 'Gone', (int) 411 => 'Length Required', (int) 412 => 'Precondition Failed', (int) 413 => 'Request Entity Too Large', (int) 414 => 'Request-URI Too Large', (int) 415 => 'Unsupported Media Type', (int) 416 => 'Requested range not satisfiable', (int) 417 => 'Expectation Failed', (int) 429 => 'Too Many Requests', (int) 500 => 'Internal Server Error', (int) 501 => 'Not Implemented', (int) 502 => 'Bad Gateway', (int) 503 => 'Service Unavailable', (int) 504 => 'Gateway Time-out', (int) 505 => 'Unsupported Version' ) [protected] _mimeTypes => array( 'html' => array( (int) 0 => 'text/html', (int) 1 => '*/*' ), 'json' => 'application/json', 'xml' => array( (int) 0 => 'application/xml', (int) 1 => 'text/xml' ), 'rss' => 'application/rss+xml', 'ai' => 'application/postscript', 'bcpio' => 'application/x-bcpio', 'bin' => 'application/octet-stream', 'ccad' => 'application/clariscad', 'cdf' => 'application/x-netcdf', 'class' => 'application/octet-stream', 'cpio' => 'application/x-cpio', 'cpt' => 'application/mac-compactpro', 'csh' => 'application/x-csh', 'csv' => array( (int) 0 => 'text/csv', (int) 1 => 'application/vnd.ms-excel' ), 'dcr' => 'application/x-director', 'dir' => 'application/x-director', 'dms' => 'application/octet-stream', 'doc' => 'application/msword', 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'drw' => 'application/drafting', 'dvi' => 'application/x-dvi', 'dwg' => 'application/acad', 'dxf' => 'application/dxf', 'dxr' => 'application/x-director', 'eot' => 'application/vnd.ms-fontobject', 'eps' => 'application/postscript', 'exe' => 'application/octet-stream', 'ez' => 'application/andrew-inset', 'flv' => 'video/x-flv', 'gtar' => 'application/x-gtar', 'gz' => 'application/x-gzip', 'bz2' => 'application/x-bzip', '7z' => 'application/x-7z-compressed', 'hdf' => 'application/x-hdf', 'hqx' => 'application/mac-binhex40', 'ico' => 'image/x-icon', 'ips' => 'application/x-ipscript', 'ipx' => 'application/x-ipix', 'js' => 'application/javascript', 'jsonapi' => 'application/vnd.api+json', 'latex' => 'application/x-latex', 'lha' => 'application/octet-stream', 'lsp' => 'application/x-lisp', 'lzh' => 'application/octet-stream', 'man' => 'application/x-troff-man', 'me' => 'application/x-troff-me', 'mif' => 'application/vnd.mif', 'ms' => 'application/x-troff-ms', 'nc' => 'application/x-netcdf', 'oda' => 'application/oda', 'otf' => 'font/otf', 'pdf' => 'application/pdf', 'pgn' => 'application/x-chess-pgn', 'pot' => 'application/vnd.ms-powerpoint', 'pps' => 'application/vnd.ms-powerpoint', 'ppt' => 'application/vnd.ms-powerpoint', 'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'ppz' => 'application/vnd.ms-powerpoint', 'pre' => 'application/x-freelance', 'prt' => 'application/pro_eng', 'ps' => 'application/postscript', 'roff' => 'application/x-troff', 'scm' => 'application/x-lotusscreencam', 'set' => 'application/set', 'sh' => 'application/x-sh', 'shar' => 'application/x-shar', 'sit' => 'application/x-stuffit', 'skd' => 'application/x-koan', 'skm' => 'application/x-koan', 'skp' => 'application/x-koan', 'skt' => 'application/x-koan', 'smi' => 'application/smil', 'smil' => 'application/smil', 'sol' => 'application/solids', 'spl' => 'application/x-futuresplash', 'src' => 'application/x-wais-source', 'step' => 'application/STEP', 'stl' => 'application/SLA', 'stp' => 'application/STEP', 'sv4cpio' => 'application/x-sv4cpio', 'sv4crc' => 'application/x-sv4crc', 'svg' => 'image/svg+xml', 'svgz' => 'image/svg+xml', 'swf' => 'application/x-shockwave-flash', 't' => 'application/x-troff', 'tar' => 'application/x-tar', 'tcl' => 'application/x-tcl', 'tex' => 'application/x-tex', 'texi' => 'application/x-texinfo', 'texinfo' => 'application/x-texinfo', 'tr' => 'application/x-troff', 'tsp' => 'application/dsptype', 'ttc' => 'font/ttf', 'ttf' => 'font/ttf', 'unv' => 'application/i-deas', 'ustar' => 'application/x-ustar', 'vcd' => 'application/x-cdlink', 'vda' => 'application/vda', 'xlc' => 'application/vnd.ms-excel', 'xll' => 'application/vnd.ms-excel', 'xlm' => 'application/vnd.ms-excel', 'xls' => 'application/vnd.ms-excel', 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'xlw' => 'application/vnd.ms-excel', 'zip' => 'application/zip', 'aif' => 'audio/x-aiff', 'aifc' => 'audio/x-aiff', 'aiff' => 'audio/x-aiff', 'au' => 'audio/basic', 'kar' => 'audio/midi', 'mid' => 'audio/midi', 'midi' => 'audio/midi', 'mp2' => 'audio/mpeg', 'mp3' => 'audio/mpeg', 'mpga' => 'audio/mpeg', 'ogg' => 'audio/ogg', 'oga' => 'audio/ogg', 'spx' => 'audio/ogg', 'ra' => 'audio/x-realaudio', 'ram' => 'audio/x-pn-realaudio', 'rm' => 'audio/x-pn-realaudio', 'rpm' => 'audio/x-pn-realaudio-plugin', 'snd' => 'audio/basic', 'tsi' => 'audio/TSP-audio', 'wav' => 'audio/x-wav', 'aac' => 'audio/aac', 'asc' => 'text/plain', 'c' => 'text/plain', 'cc' => 'text/plain', 'css' => 'text/css', 'etx' => 'text/x-setext', 'f' => 'text/plain', 'f90' => 'text/plain', 'h' => 'text/plain', 'hh' => 'text/plain', 'htm' => array( (int) 0 => 'text/html', (int) 1 => '*/*' ), 'ics' => 'text/calendar', 'm' => 'text/plain', 'rtf' => 'text/rtf', 'rtx' => 'text/richtext', 'sgm' => 'text/sgml', 'sgml' => 'text/sgml', 'tsv' => 'text/tab-separated-values', 'tpl' => 'text/template', 'txt' => 'text/plain', 'text' => 'text/plain', 'avi' => 'video/x-msvideo', 'fli' => 'video/x-fli', 'mov' => 'video/quicktime', 'movie' => 'video/x-sgi-movie', 'mpe' => 'video/mpeg', 'mpeg' => 'video/mpeg', 'mpg' => 'video/mpeg', 'qt' => 'video/quicktime', 'viv' => 'video/vnd.vivo', 'vivo' => 'video/vnd.vivo', 'ogv' => 'video/ogg', 'webm' => 'video/webm', 'mp4' => 'video/mp4', 'm4v' => 'video/mp4', 'f4v' => 'video/mp4', 'f4p' => 'video/mp4', 'm4a' => 'audio/mp4', 'f4a' => 'audio/mp4', 'f4b' => 'audio/mp4', 'gif' => 'image/gif', 'ief' => 'image/ief', 'jpg' => 'image/jpeg', 'jpeg' => 'image/jpeg', 'jpe' => 'image/jpeg', 'pbm' => 'image/x-portable-bitmap', 'pgm' => 'image/x-portable-graymap', 'png' => 'image/png', 'pnm' => 'image/x-portable-anymap', 'ppm' => 'image/x-portable-pixmap', 'ras' => 'image/cmu-raster', 'rgb' => 'image/x-rgb', 'tif' => 'image/tiff', 'tiff' => 'image/tiff', 'xbm' => 'image/x-xbitmap', 'xpm' => 'image/x-xpixmap', 'xwd' => 'image/x-xwindowdump', 'psd' => array( (int) 0 => 'application/photoshop', (int) 1 => 'application/psd', (int) 2 => 'image/psd', (int) 3 => 'image/x-photoshop', (int) 4 => 'image/photoshop', (int) 5 => 'zz-application/zz-winassoc-psd' ), 'ice' => 'x-conference/x-cooltalk', 'iges' => 'model/iges', 'igs' => 'model/iges', 'mesh' => 'model/mesh', 'msh' => 'model/mesh', 'silo' => 'model/mesh', 'vrml' => 'model/vrml', 'wrl' => 'model/vrml', 'mime' => 'www/mime', 'pdb' => 'chemical/x-pdb', 'xyz' => 'chemical/x-pdb', 'javascript' => 'application/javascript', 'form' => 'application/x-www-form-urlencoded', 'file' => 'multipart/form-data', 'xhtml' => array( (int) 0 => 'application/xhtml+xml', (int) 1 => 'application/xhtml', (int) 2 => 'text/xhtml' ), 'xhtml-mobile' => 'application/vnd.wap.xhtml+xml', 'atom' => 'application/atom+xml', 'amf' => 'application/x-amf', 'wap' => array( (int) 0 => 'text/vnd.wap.wml', (int) 1 => 'text/vnd.wap.wmlscript', (int) 2 => 'image/vnd.wap.wbmp' ), 'wml' => 'text/vnd.wap.wml', 'wmlscript' => 'text/vnd.wap.wmlscript', 'wbmp' => 'image/vnd.wap.wbmp', 'woff' => 'application/x-font-woff', 'webp' => 'image/webp', 'appcache' => 'text/cache-manifest', 'manifest' => 'text/cache-manifest', 'htc' => 'text/x-component', 'rdf' => 'application/xml', 'crx' => 'application/x-chrome-extension', 'oex' => 'application/x-opera-extension', 'xpi' => 'application/x-xpinstall', 'safariextz' => 'application/octet-stream', 'webapp' => 'application/x-web-app-manifest+json', 'vcf' => 'text/x-vcard', 'vtt' => 'text/vtt', 'mkv' => 'video/x-matroska', 'pkpass' => 'application/vnd.apple.pkpass', 'ajax' => 'text/html' ) [protected] _protocol => 'HTTP/1.1' [protected] _status => (int) 200 [protected] _contentType => 'text/html' [protected] _headers => array() [protected] _body => null [protected] _file => null [protected] _fileRange => null [protected] _charset => 'UTF-8' [protected] _cacheDirectives => array() [protected] _cookies => array() }
замовляй подарункове пакування окремо