APPPATH/classes/Controller/Site/Catalog.php [ 94 ]
89 $toastrErrorMessages = [];
90
91 $itemPref = $this->request->param('slug');
92 $item = $this->m_catalog->getItem($this->userType, $this->lang['id'], $itemPref);
93 if(empty($item)){
94 throw new Kohana_HTTP_Exception_404;
95 }
96
97 //seo
98 $this->pageInfo['image'] = $item['photos_sm'][0];
99
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Site_Catalog->action_item()
79 array(':uri' => $this->request->uri()) 80 )->request($this->request); 81 } 82 83 // Execute the action itself 84 $this->{$action}(); 85 86 // Execute the "after action" method 87 $this->after(); 88 89 // Return the response
-
{PHP internal call} » Kohana_Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Site_Catalog(20)
{ public m_catalog => object Model_Site_Catalog(0)
{ }
public filters => array(1) ( "search_cat" => NULL ) public prices => array(2) ( "min_price" => string(2) "42" "max_price" => string(4) "1185" ) public showPriceFilter => bool FALSE public userType => string(8) "standard" public m_base => object Model_Site_Base(0){ }
public template => object View(2){ protected _file => string(56) "/opt/htdocs/application/views/site/template/template.php" protected _data => array(2) ( "header" => object View(2)
public headerPath => string(27) "site/template/blocks/header" public footerPath => string(27) "site/template/blocks/footer" public content => string(0) "" public lang => array(6) ( "id" => string(1) "1" "pref" => string(2) "ru" "title" => string(14) "Русский" "def" => string(1) "0" "active" => string(1) "1" "type" => string(1) "0" ) public pageInfo => array(14) ( "id" => string(2) "29" "pref" => string(7) "catalog" "sub" => NULL "srt" => string(2) "14" "active" => string(1) "1" "lng_id" => string(1) "1" "page_id" => string(2) "25" "title" => string(14) "Каталог" "preview" => string(0) "" "content" => string(0) "" "seo_title" => string(14) "Каталог" "seo_keys" => string(0) "" "seo_desc" => string(0) "" "image" => string(34) "/public/cms/img/no_image_small.png" ) public logged_in_site => bool FALSE public user_site => NULL public settings => object Config_Group(4){ protected _file => string(61) "/opt/htdocs/application/views/site/template/blocks/header.php" protected _data => array(1) ( "captcha" => object Captcha_Alpha(4)
"footer" => object View(2){ protected driver => NULL protected response => string(4) "MK32" protected image => NULL protected image_type => string(3) "png" }
) }{ protected _file => string(61) "/opt/htdocs/application/views/site/template/blocks/footer.php" protected _data => array(0) }
) }{ public emails => array(1) ( 0 => string(22) "rezanok.sale@gmail.com" ) public phones => array(2) ( "hotline" => string(19) "+38 (0800) 50 50 13" "shop" => array(3) ( 0 => string(19) "+38 (050) 274 27 77" 1 => string(19) "+38 (096) 932 24 58" 2 => string(19) "+38 (063) 251 24 48" ) ) public liqpay => array(2) ( "public_key" => string(12) "i66708414685" "private_key" => string(40) "uC8OGn9yKWX6Ef305hbjbyTgQiYaOrJU2j4Z1aQV" ) public newPost => array(1) ( "apiKey" => string(32) "e510531ab5e8db9041a3d932f698f090" ) }
public cardInfo => NULL public lngVars => array(185) ( "header.welcome" => string(31) "Добро пожаловать" "header.cart" => string(17) "В корзине" "header.cart.items" => string(14) "товаров" "header.cart.sum" => string(15) "на сумму" "logout" => string(10) "Выход" "login" => string(8) "Вход" "registration" => string(22) "Регистрация" "header.contact.ask" => string(32) "Возникли вопросы?" "header.contact.description" => string(107) "Звонки со всех телефонов на территории Украины - бесплатно" "login.title" => string(22) "Вход на сайт" "footer.navigation" => string(18) "Навигация" "footer.copyright" => string(43) "2016 © Все права защищены." "login.remember" => string(27) "Запомнить меня" "back" => string(10) "Назад" "go_back" => string(29) "Вернуться назад" "date_start" => string(21) "Дата начала" "date_end" => string(27) "Дата окончания" "all_items" => string(19) "Все товары" "filter.items_per_page" => string(36) "Товаров на странице" "filter.sort" => string(27) "Сортировать по" "filter.price" => string(8) "Цена" "filter.sort.price" => string(13) "по цене" "filter.sort.popularity" => string(29) "по популярности" "buy" => string(12) "Купить" "fast_buy" => string(25) "Купить в клик" "add_to_cart" => string(17) "В корзину" "count" => string(20) "Количество" "thank_you" => string(28) "Благодарим Вас!" "cart.added" => string(45) "Товар добавлен в корзину" "fast_buy.bought_title" => string(173) "Благодарим, Ваш заказ оправлен на обработку. Наши специалисты свяжутся с Вами в скором времени" "main_page" => string(14) "Главная" "in_store" => string(17) "в наличии" "not0in_store" => string(24) "нет в наличии" "item_description" => string(29) "Описание товара" "item" => string(10) "Товар" "price" => string(8) "Цена" "sum" => string(10) "Сумма" "cart.take_order" => string(16) "Заказать" "cart.order_sum" => string(15) "на сумму" "cart.delete_confirm" => string(76) "Вы уверены, что хотите удалить этот товар?" "delete" => string(14) "Удалить" "cart.item_deleted" => string(38) "Товар успешно удален" "error" => string(12) "Ошибка" "phone" => string(14) "Телефон" "email" => string(6) "E-mail" "upload" => string(18) "Загрузить" "empty_file" => string(26) "Файл не выбран" "required_fields_info" => string(58) "поля, обязательные к заполнению" "send" => string(18) "Отправить" "contact_info" => string(41) "Контактная информация" "feedback" => string(27) "Обратная связь" "feedback.name" => string(15) "Ваше имя" "feedback.symb_left_start" => string(16) "Осталось" "detail" => string(18) "Детальнее" "name" => string(6) "Имя" "surname" => string(14) "Фамилия" "adress" => string(12) "Адресс" "password" => string(12) "Пароль" "catalog-cart-empty" => string(27) "Корзина пустая" "order.create_ok" => string(43) "Благодарим за Ваш заказ" "order.create_error" => string(55) "Ошибка при регистрации заказа" "order.create.title" => string(27) "Оформить заказ" "order.payment-service-select" => string(42) "Выберите способ оплаты" "order.create" => string(16) "Заказать" "order.cant_use_bonuses" => string(39) "Недостаточно бонусов" "order.comment" => string(22) "Комментарий" "order.delivery-select" => string(46) "Выберите способ доставки" "order.delivery-yes" => string(33) "Доставка курьером" "order.delivery-no" => string(61) "Самосоятельно забрать в магазине" "header.call_you?" => string(26) "Позвонить Вам?" "header.call_you.info" => string(143) "Укажите Ваш номер телефона и наш менеджер свяжется с Вами в ближайшем времени." "header.call_you.your_phone" => string(34) "Ваш номер телефона" "header.callback.success" => string(89) "Наш менеджер свяжется с Вами в ближайшем времени" "registration.success" => string(84) "Письмо с подтверждением отправлено на Ваш e-mail" "user.forget_password?" => string(26) "Забыли пароль?" "profile.password_recovery.email-info" => string(258) "Введите адрес электронной почты, к которой прикреплен Ваш аккаунт. На этот адресс будет выслано письмо с инструкцией о дальнейши …" "filter.sort.change" => string(19) "Не выбрано" "error.mail.problem_with_service" => string(53) "Проблемы с почтовым сервисом" "proceed" => string(27) "Оформить заказ" "server_error" => string(27) "Ошибка сервера" "catalog.cart.delivery" => string(16) "Доставка" "catalog.cart.total" => string(10) "Всего" "catalog.cart.succesfully_deleted" => string(54) "Товар удален из Вашей корзины" "order.card-number" => string(27) "Номер карточки" "header.how_to_buy" => string(20) "Как купить?" "header.about_shop" => string(21) "Про магазин" "header.company_title" => string(33) "Улюбленый продукт" "footer_new.copuright" => string(34) "Все права защищены" "footer.info" => string(20) "Информация" "footer.subscribe" => string(107) "Подписывайтесь на новости, актуальные предложения и акции" "footer.subscrive_on_your_email" => string(47) "На Вашу электронную почту" "footer.subscribe.placeholder" => string(30) "Введите свой E-mail" "footer.subscribe_label" => string(22) "Подписаться" "index.sales" => string(10) "Акции" "index.sale_proposes" => string(41) "Акционные предложения" "index.sales_hits" => string(23) "Хиты продажи" "header.search_item" => string(10) "Поиск" "index.new_items" => string(33) "Новіе поступления" "catalog.no-items" => string(35) "Товары отсутствуют" "catalog.catalog" => string(29) "Каталог товаров" "catalog.articul" => string(14) "Артикул" "catalog.no_items" => string(35) "Товары отсутствуют" "similar_items" => string(27) "Похожие товары" "catalog.seen_items" => string(39) "Просмотренные товары" "catalog.shop-title" => string(31) "Интернет-магазин" "header.online_order" => string(38) "Заказать по телефону" "filter.sort.price-asc" => string(37) "цене, по возростанию" "filter.sort.price-desc" => string(31) "цене, по убыванию" "filter.sort.date-asc" => string(37) "дате, по возростанию" "filter.sort.date-desc" => string(31) "дате, по убыванию" "filter.sort.pop" => string(24) "популярности" "pagination.goods_from" => string(21) "товар(ов) из" "filter.sort.default" => string(23) "по умолчанию" "item.on_stock" => string(17) "в наличии" "comments.comments_from" => string(33) "комментарий(ев) из" "label.text" => string(10) "Текст" "label.name" => string(6) "Имя" "label.give_feedback" => string(27) "Оставить отзыв" "label.item_description" => string(29) "Описание товара" "label.feedbacks" => string(12) "Отзывы" "label.categories" => string(18) "Категории" "label.search.all_categories" => string(25) "Все категории" "clean" => string(16) "Очистить" "cart.go_to_cart" => string(32) "Перейти к корзине" "labels.search.query_results" => string(51) "Результаты поиска по запосу" "static.unique_item" => string(35) "Уникальное изделие" "static.be_unique_begin" => string(50) "Будь особенным, закажи свое" "static.be_unique_end" => string(24) "прямо сейчас!" "label.news" => string(14) "Новости" "enter" => string(10) "Войти" "registration.thx" => string(48) "Благодарим за регистрацию" "label.save_changes" => string(37) "Сохранить изменения" "labels.save_password" => string(31) "Сохранить пароль" "order" => string(10) "Заказ" "part.items_on_sum" => string(30) "товаров на сумму" "order.status" => string(25) "Статус заказа" "orders.history_empty" => string(64) "На данный момент, у Вас нет заказов." "label.order_history" => string(29) "История заказов" "label.order.item_name" => string(43) "Наименование продукции" "cart.to_catalog" => string(35) "Продолжить покупки" "cart.label.my_cart" => string(21) "Моя корзина" "order.label.check" => string(6) "Чек" "order.label.selected_items" => string(29) "Выбраные товары" "order.label.cart_empty" => string(80) "Корзина пустая. Вы не можете оформить заказ." "order.labels.edit_order" => string(37) "Редактировать заказ" "order.label.contact_data" => string(33) "Контактные данные" "order.label.name_surname" => string(33) "Ваши имя и фамилия" "order.delivery_type" => string(29) "Способ доставки" "city" => string(10) "Город" "order.storage_number" => string(23) "Номер склада" "order.storage_address" => string(25) "Адресс склада" "order.payment_type" => string(25) "Способ оплаты" "order.confirm_order" => string(33) "Подтвердить заказ" "email.pay_link_sent" => string(555) "Уважаемый {{username}}! Вы оформили заказ на сайте компании \"Резанок\"\'. Для оплати заказа - дождитесь, пока наши менеджеры ор …" "order.label.your_order_sent" => string(30) "Ваш заказ принят" "order.label.manager_meets_you" => string(107) "Наш менеджер свяжется с Вами для уточнения деталей заказа." "login.label.social_login" => string(49) "Вход через социальные мети" "watch_all" => string(23) "Смотреть все" "from" => string(4) "от" "to" => string(4) "до" "order_toy" => string(31) "Заказать игрушку" "mobile_phone" => string(33) "Мобильный телефон" "open_file" => string(23) "Открыть файл" "file_not_chosen" => string(26) "Файл не выбран" "own_toy.file_description" => string(196) "Вы можете прикрепить к сообщению файл, размером не более 40 Мб. Допустимые форматы файлов: ai, jpeg, png, swf, zip, rar, psd" "order.own-toy.order_confirm" => string(136) "Ваш заказ успешно принят. Наш менеджер свяжется с вами в ближайшем времени" "order.order_create" => string(33) "Оформление заказа" "subscribe.error.empty_email" => string(44) "E-mail не может быть пустым" "subscribr.success" => string(130) "Вы успешно подписались на наши новости, актуальные предложения и акции" "share.label" => string(20) "Поделиться" "share.tweet.label" => string(16) "Твитнуть" "footer.join_us" => string(30) "Присоеденяйтесь" "comment.not_logined_user" => string(126) "Только авторизированніе пользователти могут оценивать комментарии." "comment.user_have_one" => string(58) "Ві уже оценили єтот комментарий" "error.bad_signature" => string(44) "Ошибка цифровой подписи" "footer.email_label" => string(48) "По всем вопросам пишите на" "footer.how_to_find_us?" => string(25) "Как нас найти?" "main_address" => string(93) "Украина, Волынская область., г.Луцк, ул. Львовская 154" "error.have_no_access" => string(96) "У вас нет прав доступа для просмотра данной страницы" "order.storage-number-select" => string(35) "Выберите отделение" "order.city-select" => string(27) "Выберите город" "additional_info" => string(49) "Дополнительная информация" "order.confirm_order.fast_pay" => string(35) "Мометальная оплата" "about_us" => string(13) "Про нас" "label.popular_items" => string(20) "Популярное" ) public auto_render => bool TRUE public request => object Request(19){ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(32) "<lang>/catalog(/<slug>(/<page>))" protected _regex => array(0) protected _defaults => array(3) ( "directory" => string(4) "Site" "controller" => string(7) "Catalog" "action" => string(4) "item" ) protected _route_regex => string(92) "#^(?P<lang>[^/.,;?\n]++)/catalog(?:/(?P<slug>[^/.,;?\n]++)(?:/(?P<page>[^/.,;?\n]++))?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(4) "Site" protected _controller => string(7) "Catalog" protected _action => string(4) "item" protected _uri => string(31) "ru/catalog/nichnik-akriloviy-3d" protected _external => bool FALSE protected _params => array(2) ( "lang" => string(2) "ru" "slug" => string(20) "nichnik-akriloviy-3d" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}{ protected _status => integer 200 protected _header => object HTTP_Header(0)
}{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }92 93 // Create a new instance of the controller 94 $controller = $class->newInstance($request, $response); 95 96 // Run the controller's execute() method 97 $response = $class->getMethod('execute')->invoke($controller); 98 99 if ( ! $response instanceof Response) 100 { 101 // Controller failed to return a Response. 102 throw new Kohana_Exception('Controller failed to return a Response');
-
SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(32) "<lang>/catalog(/<slug>(/<page>))" protected _regex => array(0) protected _defaults => array(3) ( "directory" => string(4) "Site" "controller" => string(7) "Catalog" "action" => string(4) "item" ) protected _route_regex => string(92) "#^(?P<lang>[^/.,;?\n]++)/catalog(?:/(?P<slug>[^/.,;?\n]++)(?:/(?P<page>[^/.,;?\n]++))?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(4) "Site" protected _controller => string(7) "Catalog" protected _action => string(4) "item" protected _uri => string(31) "ru/catalog/nichnik-akriloviy-3d" protected _external => bool FALSE protected _params => array(2) ( "lang" => string(2) "ru" "slug" => string(20) "nichnik-akriloviy-3d" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}1
object Response(5)
{ protected _status => integer 200 protected _header => object HTTP_Header(0)
{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }109 $orig_response = $response = Response::factory(array('_protocol' => $request->protocol())); 110 111 if (($cache = $this->cache()) instanceof HTTP_Cache) 112 return $cache->execute($this, $request, $response); 113 114 $response = $this->execute_request($request, $response); 115 116 // Execute response callbacks 117 foreach ($this->header_callbacks() as $header => $callback) 118 { 119 if ($response->headers($header))
-
SYSPATH/classes/Kohana/Request.php [ 997 ] » Kohana_Request_Client->execute(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(32) "<lang>/catalog(/<slug>(/<page>))" protected _regex => array(0) protected _defaults => array(3) ( "directory" => string(4) "Site" "controller" => string(7) "Catalog" "action" => string(4) "item" ) protected _route_regex => string(92) "#^(?P<lang>[^/.,;?\n]++)/catalog(?:/(?P<slug>[^/.,;?\n]++)(?:/(?P<page>[^/.,;?\n]++))?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(4) "Site" protected _controller => string(7) "Catalog" protected _action => string(4) "item" protected _uri => string(31) "ru/catalog/nichnik-akriloviy-3d" protected _external => bool FALSE protected _params => array(2) ( "lang" => string(2) "ru" "slug" => string(20) "nichnik-akriloviy-3d" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}992 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 993 ':uri' => $this->_uri, 994 )); 995 } 996 997 return $this->_client->execute($this); 998 } 999 1000 /** 1001 * Returns whether this request is the initial request Kohana received. 1002 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 118 ] » Kohana_Request->execute()
113 /** 114 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 115 * If no source is specified, the URI will be automatically detected. 116 */ 117 echo Request::factory(TRUE, array(), FALSE) 118 ->execute() 119 ->send_headers(TRUE) 120 ->body(); 121 }