APPPATH/classes/Controller/Appcontroller.php [ 58 ]
53 break;
54 }
55
56 $select = DB::query(Database::SELECT, $sql)->execute()->as_array();
57 //Wariables needed for all area_type;
58 $sst = strtoupper($select[0]['state_short']); //Example AL
59 $ssst = strtolower($sst); //Example al
60 $lst = $select[0]['state_name']; //Alabama
61 $companyr = $select[0]['company'];
62 $yin = ' '.$select[0]['yin'].' years ';
63 $logo = $select[0]['logo'];
-
APPPATH/classes/Controller/Appcontroller.php [ 58 ] » Kohana_Core::error_handler(arguments)
0integer 8
1string(19) "Undefined offset: 0"2string(94) "/var/www/vhosts/smilelandscaping.com/httpdocs/application/classes/Controller/Appcontroller.php"3integer 58
4array(13) ( "area_type" => string(8) "counties" "area_name" => string(10) "St. Joseph" "area_id" => string(2) "25" "page_id" => string(3) "134" "path" => array(5) ( 0 => string(7) "widgets" 1 => string(11) "gallerypage" 2 => string(3) "134" 3 => string(8) "counties" 4 => string(10) "St. Joseph" ) "fcn" => string(18) "Smile Land Scaping" "area" => array(5) ( "area_type" => string(8) "counties" "area_name" => string(10) "St. Joseph" "area_id" => string(2) "25" "page_id" => string(3) "134" "fcn" => string(18) "Smile Land Scaping" ) "state_sql" => string(67) "cat_states.state_id, cat_states.state_name, cat_states.state_short," "county_sql" => string(86) "cat_counties.county_id, cat_counties.county_name, cat_counties.url_name AS url_county," "city_sql" => string(74) "cat_cities.city_name, cat_cities.city_id, cat_cities.url_name AS url_city," "customer_sql" => string(183) "db_customers.customer_id, db_customers.company, db_customers.address, db_customers.yin, db_customers.logo, db_customers.email, d …" "sql" => string(549) "SELECT cat_states.state_id, cat_states.state_name, cat_states.state_short,cat_counties.county_id, cat_counties.county_name, cat_ …" "select" => array(0) )
53 break; 54 } 55 56 $select = DB::query(Database::SELECT, $sql)->execute()->as_array(); 57 //Wariables needed for all area_type; 58 $sst = strtoupper($select[0]['state_short']); //Example AL 59 $ssst = strtolower($sst); //Example al 60 $lst = $select[0]['state_name']; //Alabama 61 $companyr = $select[0]['company']; 62 $yin = ' '.$select[0]['yin'].' years '; 63 $logo = $select[0]['logo']; -
SYSPATH/classes/Kohana/Controller.php [ 69 ] » Controller_Appcontroller->before()
64 * @return Response 65 */ 66 public function execute() 67 { 68 // Execute the "before action" method 69 $this->before(); 70 71 // Determine the action to use 72 $action = 'action_'.$this->request->action(); 73 74 // If the action doesn't exist, it's a 404 -
{PHP internal call} » Kohana_Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)
0object Controller_Gallery(7)
{ public search => NULL public replace => NULL public parameters => NULL public template => object View(2){ protected _file => string(76) "/var/www/vhosts/smilelandscaping.com/httpdocs/application/views/template.php" protected _data => array(0) }public auto_render => bool TRUE public request => object Request(19){ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => NULL protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)public response => object Response(5){ protected _filters => array(0) protected _uri => string(6) "<path>" protected _regex => array(1) ( "path" => string(7) "^(.*)+$" ) protected _defaults => array(7) ( "area_name" => string(10) "St. Joseph" "area_type" => string(8) "counties" "area_id" => string(2) "25" "unique_page_id" => string(1) "0" "parent_page_id" => string(3) "134" "controller" => string(7) "gallery" "action" => string(11) "gallerypage" ) protected _route_regex => string(23) "#^(?P<path>^(.*)+$)$#uD" }protected _routes => array(0) protected _header => object HTTP_Header(0){ }protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "Gallery" protected _action => string(11) "gallerypage" protected _uri => string(43) "widgets/gallerypage/134/counties/St. Joseph" protected _external => bool FALSE protected _params => array(6) ( "path" => string(43) "widgets/gallerypage/134/counties/St. Joseph" "area_name" => string(10) "St. Joseph" "area_type" => string(8) "counties" "area_id" => string(2) "25" "unique_page_id" => string(1) "0" "parent_page_id" => string(3) "134" ) 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 => NULL }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)
0object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => NULL protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5){ protected _filters => array(0) protected _uri => string(6) "<path>" protected _regex => array(1) ( "path" => string(7) "^(.*)+$" ) protected _defaults => array(7) ( "area_name" => string(10) "St. Joseph" "area_type" => string(8) "counties" "area_id" => string(2) "25" "unique_page_id" => string(1) "0" "parent_page_id" => string(3) "134" "controller" => string(7) "gallery" "action" => string(11) "gallerypage" ) protected _route_regex => string(23) "#^(?P<path>^(.*)+$)$#uD" }protected _routes => array(0) protected _header => object HTTP_Header(0){ }protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "Gallery" protected _action => string(11) "gallerypage" protected _uri => string(43) "widgets/gallerypage/134/counties/St. Joseph" protected _external => bool FALSE protected _params => array(6) ( "path" => string(43) "widgets/gallerypage/134/counties/St. Joseph" "area_name" => string(10) "St. Joseph" "area_type" => string(8) "counties" "area_id" => string(2) "25" "unique_page_id" => string(1) "0" "parent_page_id" => string(3) "134" ) 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) }}1object Response(5)
{ protected _status => integer 200 protected _header => object HTTP_Header(0){ }protected _body => string(0) "" protected _cookies => array(0) protected _protocol => NULL }109 $orig_response = $response = Response::factory(); 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 [ 990 ] » Kohana_Request_Client->execute(arguments)
0object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => NULL protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5){ protected _filters => array(0) protected _uri => string(6) "<path>" protected _regex => array(1) ( "path" => string(7) "^(.*)+$" ) protected _defaults => array(7) ( "area_name" => string(10) "St. Joseph" "area_type" => string(8) "counties" "area_id" => string(2) "25" "unique_page_id" => string(1) "0" "parent_page_id" => string(3) "134" "controller" => string(7) "gallery" "action" => string(11) "gallerypage" ) protected _route_regex => string(23) "#^(?P<path>^(.*)+$)$#uD" }protected _routes => array(0) protected _header => object HTTP_Header(0){ }protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "Gallery" protected _action => string(11) "gallerypage" protected _uri => string(43) "widgets/gallerypage/134/counties/St. Joseph" protected _external => bool FALSE protected _params => array(6) ( "path" => string(43) "widgets/gallerypage/134/counties/St. Joseph" "area_name" => string(10) "St. Joseph" "area_type" => string(8) "counties" "area_id" => string(2) "25" "unique_page_id" => string(1) "0" "parent_page_id" => string(3) "134" ) 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) }}985 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 986 ':uri' => $this->_uri, 987 )); 988 } 989 990 return $this->_client->execute($this); 991 } 992 993 /** 994 * Returns whether this request is the initial request Kohana received. 995 * Can be used to test for sub requests. -
APPPATH/classes/Controller/Gallery.php [ 50 ] » Kohana_Request->execute()
45 //For level 1 46 $contactsw = Request::factory('widgets/quickcontact')->query('area', $area)->query('customer_id', $customer_id)->execute(); 47 48 $banners = View::factory('front/v_banners'); 49 50 $gallerypage = Request::factory('widgets/gallerypage/'.$page_id.'/'.$area_type.'/'.$area_name)->execute(); 51 52 if($area_type != 'main') 53 { 54 $locationlist = Request::factory('widgets/locationlist/')->query('area', $area)->execute(); 55 -
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Gallery->action_gallerypage()
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)
0object Controller_Gallery(9)
{ public search => NULL public replace => NULL public parameters => array(4) ( "area" => array(12) ( "area_type" => string(8) "counties" "area_name" => string(10) "St. Joseph" "area_id" => string(2) "25" "page_id" => string(3) "134" "fcn" => string(18) "Smile Land Scaping" "state_id" => string(2) "15" "ssst" => string(2) "in" "u_states" => string(7) "indiana" "county_name" => string(10) "St. Joseph" "state_name" => string(7) "Indiana" "county_id" => string(2) "25" "u_counties" => string(16) "st_joseph_county" ) "search" => array(11) ( 0 => string(6) "[ssst]" 1 => string(5) "[sst]" 2 => string(5) "[lst]" 3 => string(5) "[lco]" 4 => string(7) "[smile]" 5 => string(10) " 10 years " 6 => string(5) "[lci]" 7 => string(9) "[lst_url]" 8 => string(6) "[slst]" 9 => string(6) "[slco]" 10 => string(6) "[slci]" ) "replace" => array(11) ( 0 => string(2) "in" 1 => string(2) "IN" 2 => string(7) "Indiana" 3 => string(10) "St. Joseph" 4 => string(5) "Smile" 5 => string(10) " 10 years " 6 => string(0) "" 7 => string(7) "Indiana" 8 => string(7) "indiana" 9 => string(10) "st. joseph" 10 => string(0) "" ) "customer" => array(8) ( "companyr" => string(5) "Smile" "yin" => string(10) " 10 years " "logo" => string(8) "logo.svg" "phone" => string(14) "1-888-320-0059" "bbb" => string(1) "0" "email" => string(21) "simon.harel@gmail.com" "customer_id" => string(1) "0" "address" => string(33) "Smile Roofing | | 1-888-320-0059" ) ) public template => object View(2){ protected _file => string(76) "/var/www/vhosts/smilelandscaping.com/httpdocs/application/views/template.php" protected _data => array(8) ( "styles" => array(4) ( 0 => string(14) "/css/style.css" 1 => string(13) "/css/menu.css" 2 => string(16) "/css/gallery.css" 3 => string(23) "/css/front.fancybox.css" ) "scripts" => array(8) ( 0 => string(23) "/js/jquery-1.9.1.min.js" 1 => string(27) "/js/jquery.fancybox.pack.js" 2 => string(11) "/js/main.js" 3 => string(26) "/js/jquery.validate.min.js" 4 => string(15) "/js/adaptive.js" 5 => string(20) "/js/jquery.cookie.js" 6 => string(11) "/js/menu.js" 7 => string(14) "/js/gallery.js" ) "area_type" => string(8) "counties" "page_id" => string(3) "134" "admin" => integer 0 "customer" => array(8) ( "companyr" => string(5) "Smile" "yin" => string(10) " 10 years " "logo" => string(8) "logo.svg" "phone" => string(14) "1-888-320-0059" "bbb" => string(1) "0" "email" => string(21) "simon.harel@gmail.com" "customer_id" => string(1) "0" "address" => string(33) "Smile Roofing | | 1-888-320-0059" ) "top_menu" => object Response(5)public auto_render => bool TRUE public request => object Request(19){ protected _status => integer 200 protected _header => object HTTP_Header(0)"footer_menu" => object Response(5){ }protected _body => string(1425) "<div id="top"> <div id="hcolum1"> <a id="logo" href="/in/st_joseph_county"> <img src="/images/logo/logo.svg" alt="Smile Land …" protected _cookies => array(0) protected _protocol => NULL }{ protected _status => integer 200 protected _header => object HTTP_Header(0)) }{ }protected _body => string(1365) "<div class="infooter"> <div id="footer1"> <ul class="navigation"> <li><a href="/">Home</a></li> <li><a href="/in/ …" protected _cookies => array(0) protected _protocol => NULL }{ 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(6) "<path>" protected _regex => array(1) ( "path" => string(7) "^(.*)+$" ) protected _defaults => array(7) ( "area_name" => string(10) "St. Joseph" "area_type" => string(8) "counties" "area_id" => string(2) "25" "unique_page_id" => string(1) "0" "parent_page_id" => string(3) "134" "controller" => string(7) "gallery" "action" => string(11) "gallerypage" ) protected _route_regex => string(23) "#^(?P<path>^(.*)+$)$#uD" }protected _routes => array(0) protected _header => object HTTP_Header(0){ }protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "Gallery" protected _action => string(11) "gallerypage" protected _uri => string(48) "in/landscaping-gallery-projects-st_joseph_county" protected _external => bool FALSE protected _params => array(6) ( "path" => string(48) "in/landscaping-gallery-projects-st_joseph_county" "area_name" => string(10) "St. Joseph" "area_type" => string(8) "counties" "area_id" => string(2) "25" "unique_page_id" => string(1) "0" "parent_page_id" => string(3) "134" ) 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)public auth => object Auth_ORM(2){ }protected _body => string(0) "" protected _cookies => array(0) protected _protocol => NULL }{ protected _session => object Session_Native(5)public leftmenu => object Response(5){ protected _name => string(7) "session" protected _lifetime => integer 0 protected _encrypted => bool FALSE protected _data => array(0) protected _destroyed => bool FALSE }protected _config => object Config_Group(7){ public driver => string(3) "ORM" public hash_method => string(6) "sha256" public hash_key => string(12) "zxcvb7uhjnlk" public lifetime => integer 1209600 public session_type => string(6) "native" public session_key => string(9) "auth_user" public users => array(0) }}{ protected _status => integer 200 protected _header => object HTTP_Header(0)}{ }protected _body => string(1269) " <div class="wdg-services"> <ul> <li> <a href="/in/lawn-care-st_joseph_county">Lawn …" protected _cookies => array(0) protected _protocol => NULL }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)
0object 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(6) "<path>" protected _regex => array(1) ( "path" => string(7) "^(.*)+$" ) protected _defaults => array(7) ( "area_name" => string(10) "St. Joseph" "area_type" => string(8) "counties" "area_id" => string(2) "25" "unique_page_id" => string(1) "0" "parent_page_id" => string(3) "134" "controller" => string(7) "gallery" "action" => string(11) "gallerypage" ) protected _route_regex => string(23) "#^(?P<path>^(.*)+$)$#uD" }protected _routes => array(0) protected _header => object HTTP_Header(0){ }protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "Gallery" protected _action => string(11) "gallerypage" protected _uri => string(48) "in/landscaping-gallery-projects-st_joseph_county" protected _external => bool FALSE protected _params => array(6) ( "path" => string(48) "in/landscaping-gallery-projects-st_joseph_county" "area_name" => string(10) "St. Joseph" "area_type" => string(8) "counties" "area_id" => string(2) "25" "unique_page_id" => string(1) "0" "parent_page_id" => string(3) "134" ) 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) }}1object Response(5)
{ protected _status => integer 200 protected _header => object HTTP_Header(0){ }protected _body => string(0) "" protected _cookies => array(0) protected _protocol => NULL }109 $orig_response = $response = Response::factory(); 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 [ 990 ] » Kohana_Request_Client->execute(arguments)
0object 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(6) "<path>" protected _regex => array(1) ( "path" => string(7) "^(.*)+$" ) protected _defaults => array(7) ( "area_name" => string(10) "St. Joseph" "area_type" => string(8) "counties" "area_id" => string(2) "25" "unique_page_id" => string(1) "0" "parent_page_id" => string(3) "134" "controller" => string(7) "gallery" "action" => string(11) "gallerypage" ) protected _route_regex => string(23) "#^(?P<path>^(.*)+$)$#uD" }protected _routes => array(0) protected _header => object HTTP_Header(0){ }protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "Gallery" protected _action => string(11) "gallerypage" protected _uri => string(48) "in/landscaping-gallery-projects-st_joseph_county" protected _external => bool FALSE protected _params => array(6) ( "path" => string(48) "in/landscaping-gallery-projects-st_joseph_county" "area_name" => string(10) "St. Joseph" "area_type" => string(8) "counties" "area_id" => string(2) "25" "unique_page_id" => string(1) "0" "parent_page_id" => string(3) "134" ) 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) }}985 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 986 ':uri' => $this->_uri, 987 )); 988 } 989 990 return $this->_client->execute($this); 991 } 992 993 /** 994 * Returns whether this request is the initial request Kohana received. 995 * Can be used to test for sub requests. -
DOCROOT/index.php [ 117 ] » Kohana_Request->execute()
112 /** 113 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 114 * If no source is specified, the URI will be automatically detected. 115 */ 116 echo Request::factory(TRUE, array(), FALSE) 117 ->execute() 118 ->send_headers(TRUE) 119 ->body(); 120 }