Database_Exception [ ]
 

MODPATH/profilertoolbar/classes/Kohana/Database/MySQL.php [ 108 ]

103 	protected function _select_db($database)104 	{105 		if ( ! mysql_select_db($database, $this->_connection))106 		{107 			// Unable to select database108 			throw new Database_Exception(':error',109 				array(':error' => mysql_error($this->_connection)),110 				mysql_errno($this->_connection));111 		}112  113 		Database_MySQL::$_current_databases[$this->_connection_id] = $database;114  
  1. MODPATH/profilertoolbar/classes/Kohana/Database/MySQL.php [ 75 ] » Kohana_Database_MySQL->_select_db ( arguments )

    0 ttnn2013new
    70 		}71  72 		// \xFF is a better delimiter, but the PHP driver uses underscore73 		$this->_connection_id = sha1($hostname.'_'.$username.'_'.$password);74  75 		$this->_select_db($database);76  77 		if ( ! empty($this->_config['charset']))78 		{79 			// Set the character set80 			$this->set_charset($this->_config['charset']);81  
  2. MODPATH/profilertoolbar/classes/Kohana/Database/MySQL.php [ 439 ] » Kohana_Database_MySQL->connect ( )

    434 	}435  436 	public function escape($value)437 	{438 		// Make sure the database is connected439 		$this->_connection or $this->connect();440  441 		if (($value = mysql_real_escape_string( (string) $value, $this->_connection)) === FALSE)442 		{443 			throw new Database_Exception(':error',444 				array(':error' => mysql_error($this->_connection)),445  
  3. MODPATH/database/classes/Kohana/Database.php [ 478 ] » Kohana_Database_MySQL->escape ( arguments )

    0 site
    473 		{474 			// Convert to non-locale aware float to prevent possible commas475 			return sprintf('%F', $value);476 		}477  478 		return $this->escape($value);479 	}480  481 	/**482 	 * Quote a database column name and add the table prefix if needed.483 	 *484 
  4. MODPATH/database/classes/Kohana/Database/Query/Builder.php [ 116 ] » Kohana_Database->quote ( arguments )

    0 site
    111 						$value = $min.' AND '.$max;112 					}113 					elseif ((is_string($value) AND array_key_exists($value, $this->_parameters)) === FALSE)114 					{115 						// Quote the value, it is not a parameter116 						$value = $db->quote($value);117 					}118  119 					if ($column)120 					{121 						if (is_array($column))122  
  5. MODPATH/database/classes/Kohana/Database/Query/Builder/Select.php [ 372 ] » Kohana_Database_Query_Builder->_compile_conditions ( arguments )

    0
    object(Database_MySQL)#56 (6) {
      ["_connection_id":protected] => string(40) "4c98a95b4c9b36816265b865bd923dbe96c15347"
      ["_identifier":protected] => string(1) "`"
      ["last_query"] => NULL
      ["_instance":protected] => string(7) "default"
      ["_connection":protected] => bool(false)
      ["_config":protected] => array(5) {
        ["type"] => string(5) "MySQL"
        ["connection"] => array(3) {
          ["hostname"] => string(11) "10.33.21.11"
          ["database"] => string(11) "ttnn2013new"
          ["persistent"] => bool(false)
        }
        ["table_prefix"] => string(0) ""
        ["charset"] => string(4) "utf8"
        ["caching"] => bool(false)
      }
    }
    
    1
    array(2) {
      [0] => array(1) {
        ["AND"] => array(3) {
          [0] => string(4) "type"
          [1] => string(1) "="
          [2] => string(4) "site"
        }
      }
      [1] => array(1) {
        ["AND"] => array(3) {
          [0] => string(7) "lang_id"
          [1] => string(1) "="
          [2] => int(1)
        }
      }
    }
    
    367 		}368  369 		if ( ! empty($this->_where))370 		{371 			// Add selection conditions372 			$query .= ' WHERE '.$this->_compile_conditions($db, $this->_where);373 		}374  375 		if ( ! empty($this->_group_by))376 		{377 			// Add grouping378  
  6. MODPATH/database/classes/Kohana/Database/Query.php [ 234 ] » Kohana_Database_Query_Builder_Select->compile ( arguments )

    0
    object(Database_MySQL)#56 (6) {
      ["_connection_id":protected] => string(40) "4c98a95b4c9b36816265b865bd923dbe96c15347"
      ["_identifier":protected] => string(1) "`"
      ["last_query"] => NULL
      ["_instance":protected] => string(7) "default"
      ["_connection":protected] => bool(false)
      ["_config":protected] => array(5) {
        ["type"] => string(5) "MySQL"
        ["connection"] => array(3) {
          ["hostname"] => string(11) "10.33.21.11"
          ["database"] => string(11) "ttnn2013new"
          ["persistent"] => bool(false)
        }
        ["table_prefix"] => string(0) ""
        ["charset"] => string(4) "utf8"
        ["caching"] => bool(false)
      }
    }
    
    229 		{230 			$object_params = $this->_object_params;231 		}232  233 		// Compile the SQL query234 		$sql = $this->compile($db);235  236 		if ($this->_lifetime !== NULL AND $this->_type === Database::SELECT)237 		{238 			// Set the cache key based on the database instance name and SQL239 			$cache_key = 'Database::query("'.$db.'", "'.$sql.'")';240  
  7. APPPATH/classes/Model/Config.php [ 123 ] » Kohana_Database_Query->execute ( )

    118  
  8. APPPATH/classes/Class/Meta.php [ 13 ] » Model_Config->getDetails ( arguments )

    0 1
     8   9     public static function instance() {10         global $config_site;11         if($config_site == array()){12             $config = new Model_Config();13             $config_site = $config->getDetails(Class_Tools::langDefault());            14         }15         $config = $config_site;16         if (!isset(Class_Meta::$result['title']) OR Class_Meta::$result['title'] == '' OR Class_Meta::$result['title'] == NULL)17             Class_Meta::$result['title'] = $config['site_name'];18         if (!isset(Class_Meta::$result['description']) OR Class_Meta::$result['description'] == '' OR Class_Meta::$result['description'] == NULL)19  
  9. APPPATH/classes/Class/Meta.php [ 31 ] » Class_Meta::instance ( )

    26         return TRUE;27     }28  29  30     public static function get($key = '') {31         Class_Meta::instance();32         if (!isset(Class_Meta::$result[$key]))33             return '';34         return Class_Meta::$result[$key];35     }36  37  
  10. APPPATH/views/frontend/default/contents/global/header.php [ 6 ] » Class_Meta::get ( arguments )

    0 title
     1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <base href="<?php echo url::base(); ?>"> 5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 6 <title><?php echo Class_Meta::get('title')?></title> 7 <meta name="keywords" content="<?php echo Class_Meta::get('keywords')?>" /> 8 <meta name="description" content="<?php echo Class_Meta::get('description');?>" /> 9 <meta name="generator" content="Trương Thái Sơn - 0986.654.628 - thaison.it09@gmail.com"/>10 <meta name="ROBOTS" content="index, follow" />11 <meta name="google-site-verification" content="DqlUhH0nV-PY8A3UxjHeQBVVbwOdpAbXuUb7SVkMYrE" />12  
  11. SYSPATH/classes/Kohana/View.php [ 61 ] » include ( arguments )

    0 /data/wcode/ttnn2013/application/views/frontend/default/contents/global/header.php
    56 		ob_start();57  58 		try59 		{60 			// Load the view within the current scope61 			include $kohana_view_filename;62 		}63 		catch (Exception $e)64 		{65 			// Delete the output buffer66 			ob_end_clean();67  
  12. SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture ( arguments )

    0 /data/wcode/ttnn2013/application/views/frontend/default/contents/global/header.php
    1
    array(0) {
    }
    
    343 		{344 			throw new View_Exception('You must set the file to use within your view before rendering');345 		}346  347 		// Combine local and global data and capture the output348 		return View::capture($this->_file, $this->_data);349 	}350  351 } // End View352  
  13. SYSPATH/classes/Kohana/View.php [ 228 ] » Kohana_View->render ( )

    223 	 */224 	public function __toString()225 	{226 		try227 		{228 			return $this->render();229 		}230 		catch (Exception $e)231 		{232 			/**233 			 * Display the exception message.234 
  14. SYSPATH/classes/Kohana/Response.php [ 160 ] » Kohana_View->__toString ( )

    155 	public function body($content = NULL)156 	{157 		if ($content === NULL)158 			return $this->_body;159  160 		$this->_body = (string) $content;161 		return $this;162 	}163  164 	/**165 	 * Gets or sets the HTTP protocol. The standard protocol to use166 
  15. APPPATH/classes/Controller/Frontend/Global/Header.php [ 11 ] » Kohana_Response->body ( arguments )

    0
    object(View)#49 (2) {
      ["_file":protected] => string(82) "/data/wcode/ttnn2013/application/views/frontend/default/contents/global/header.php"
      ["_data":protected] => array(0) {
      }
    }
    
     6     private $module_name = 'global'; 7     private $object_name = 'header'; 8     private $default_action = 'header'; 9  10     public function action_index() {11         $this->response->body(View::factory('frontend/default/contents/' . $this->module_name . '/' . $this->default_action . ''));12     }13  14     public function action_business_directory() {15  16         $this->response->body(View::factory('frontend/default/contents/' . $this->module_name . '/' . $this->default_action . ''));17  
  16. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Frontend_Global_Header->action_index ( )

    79 				array(':uri' => $this->request->uri())80 			)->request($this->request);81 		}82  83 		// Execute the action itself84 		$this->{$action}();85  86 		// Execute the "after action" method87 		$this->after();88  89 		// Return the response90  
  17. {PHP internal call} » Kohana_Controller->execute ( )

  18. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke ( arguments )

    0
    object(Controller_Frontend_Global_Header)#47 (5) {
      ["module_name":"Controller_Frontend_Global_Header":private] => string(6) "global"
      ["object_name":"Controller_Frontend_Global_Header":private] => string(6) "header"
      ["default_action":"Controller_Frontend_Global_Header":private] => string(6) "header"
      ["request"] => object(Request)#41 (19) {
        ["_requested_with":protected] => NULL
        ["_method":protected] => string(3) "GET"
        ["_protocol":protected] => NULL
        ["_secure":protected] => bool(false)
        ["_referrer":protected] => NULL
        ["_route":protected] => object(Route)#15 (5) {
          ["_filters":protected] => array(0) {
          }
          ["_uri":protected] => string(114) "<directory>(/<controller>(/<action>(/<param1>(/<param2>(/<param3>(/<param4>(/<param5>(/<param6>(/<param7>)))))))))"
          ["_regex":protected] => array(1) {
            ["directory"] => string(19) "[a-zA-Z]+/[a-zA-Z]+"
          }
          ["_defaults":protected] => array(2) {
            ["action"] => string(5) "index"
            ["host"] => bool(false)
          }
          ["_route_regex":protected] => string(314) "#^(?P<directory>[a-zA-Z]+/[a-zA-Z]+)(?:/(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<param1>[^/.,;?\n]++)(?:/(?P<param2>[^/.,;?\n]++)(?:/(?P<param3>[^/.,;?\n]++)(?:/(?P<param4>[^/.,;?\n]++)(?:/(?P<param5>[^/.,;?\n]++)(?:/(?P<param6>[^/.,;?\n]++)(?:/(?P<param7>[^/.,;?\n]++))?)?)?)?)?)?)?)?)?$#uD"
        }
        ["_routes":protected] => array(0) {
        }
        ["_header":protected] => object(HTTP_Header)#42 (5) {
          ["_accept_content":protected] => NULL
          ["_accept_charset":protected] => NULL
          ["_accept_encoding":protected] => NULL
          ["_accept_language":protected] => NULL
          ["storage":"ArrayObject":private] => array(0) {
          }
        }
        ["_body":protected] => NULL
        ["_directory":protected] => string(15) "Frontend/Global"
        ["_controller":protected] => string(6) "Header"
        ["_action":protected] => string(5) "index"
        ["_uri":protected] => string(28) "Frontend/Global/header/index"
        ["_external":protected] => bool(false)
        ["_params":protected] => array(1) {
          ["host"] => bool(false)
        }
        ["_get":protected] => array(0) {
        }
        ["_post":protected] => array(0) {
        }
        ["_cookies":protected] => array(0) {
        }
        ["_client":protected] => object(Request_Client_Internal)#43 (9) {
          ["_previous_environment":protected] => NULL
          ["_cache":protected] => NULL
          ["_follow":protected] => bool(false)
          ["_follow_headers":protected] => array(1) {
            [0] => string(13) "Authorization"
          }
          ["_strict_redirect":protected] => bool(true)
          ["_header_callbacks":protected] => array(1) {
            ["Location"] => string(34) "Request_Client::on_header_location"
          }
          ["_max_callback_depth":protected] => int(5)
          ["_callback_depth":protected] => int(1)
          ["_callback_params":protected] => array(0) {
          }
        }
      }
      ["response"] => object(Response)#44 (5) {
        ["_status":protected] => int(200)
        ["_header":protected] => object(HTTP_Header)#45 (5) {
          ["_accept_content":protected] => NULL
          ["_accept_charset":protected] => NULL
          ["_accept_encoding":protected] => NULL
          ["_accept_language":protected] => NULL
          ["storage":"ArrayObject":private] => array(0) {
          }
        }
        ["_body":protected] => string(0) ""
        ["_cookies":protected] => array(0) {
        }
        ["_protocol":protected] => 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');103  
  19. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request ( arguments )

    0
    object(Request)#41 (19) {
      ["_requested_with":protected] => NULL
      ["_method":protected] => string(3) "GET"
      ["_protocol":protected] => NULL
      ["_secure":protected] => bool(false)
      ["_referrer":protected] => NULL
      ["_route":protected] => object(Route)#15 (5) {
        ["_filters":protected] => array(0) {
        }
        ["_uri":protected] => string(114) "<directory>(/<controller>(/<action>(/<param1>(/<param2>(/<param3>(/<param4>(/<param5>(/<param6>(/<param7>)))))))))"
        ["_regex":protected] => array(1) {
          ["directory"] => string(19) "[a-zA-Z]+/[a-zA-Z]+"
        }
        ["_defaults":protected] => array(2) {
          ["action"] => string(5) "index"
          ["host"] => bool(false)
        }
        ["_route_regex":protected] => string(314) "#^(?P<directory>[a-zA-Z]+/[a-zA-Z]+)(?:/(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<param1>[^/.,;?\n]++)(?:/(?P<param2>[^/.,;?\n]++)(?:/(?P<param3>[^/.,;?\n]++)(?:/(?P<param4>[^/.,;?\n]++)(?:/(?P<param5>[^/.,;?\n]++)(?:/(?P<param6>[^/.,;?\n]++)(?:/(?P<param7>[^/.,;?\n]++))?)?)?)?)?)?)?)?)?$#uD"
      }
      ["_routes":protected] => array(0) {
      }
      ["_header":protected] => object(HTTP_Header)#42 (5) {
        ["_accept_content":protected] => NULL
        ["_accept_charset":protected] => NULL
        ["_accept_encoding":protected] => NULL
        ["_accept_language":protected] => NULL
        ["storage":"ArrayObject":private] => array(0) {
        }
      }
      ["_body":protected] => NULL
      ["_directory":protected] => string(15) "Frontend/Global"
      ["_controller":protected] => string(6) "Header"
      ["_action":protected] => string(5) "index"
      ["_uri":protected] => string(28) "Frontend/Global/header/index"
      ["_external":protected] => bool(false)
      ["_params":protected] => array(1) {
        ["host"] => bool(false)
      }
      ["_get":protected] => array(0) {
      }
      ["_post":protected] => array(0) {
      }
      ["_cookies":protected] => array(0) {
      }
      ["_client":protected] => object(Request_Client_Internal)#43 (9) {
        ["_previous_environment":protected] => NULL
        ["_cache":protected] => NULL
        ["_follow":protected] => bool(false)
        ["_follow_headers":protected] => array(1) {
          [0] => string(13) "Authorization"
        }
        ["_strict_redirect":protected] => bool(true)
        ["_header_callbacks":protected] => array(1) {
          ["Location"] => string(34) "Request_Client::on_header_location"
        }
        ["_max_callback_depth":protected] => int(5)
        ["_callback_depth":protected] => int(1)
        ["_callback_params":protected] => array(0) {
        }
      }
    }
    
    1
    object(Response)#44 (5) {
      ["_status":protected] => int(200)
      ["_header":protected] => object(HTTP_Header)#45 (5) {
        ["_accept_content":protected] => NULL
        ["_accept_charset":protected] => NULL
        ["_accept_encoding":protected] => NULL
        ["_accept_language":protected] => NULL
        ["storage":"ArrayObject":private] => array(0) {
        }
      }
      ["_body":protected] => string(0) ""
      ["_cookies":protected] => array(0) {
      }
      ["_protocol":protected] => 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 callbacks117 		foreach ($this->header_callbacks() as $header => $callback)118 		{119 			if ($response->headers($header))120  
  20. SYSPATH/classes/Kohana/Request.php [ 990 ] » Kohana_Request_Client->execute ( arguments )

    0
    object(Request)#41 (19) {
      ["_requested_with":protected] => NULL
      ["_method":protected] => string(3) "GET"
      ["_protocol":protected] => NULL
      ["_secure":protected] => bool(false)
      ["_referrer":protected] => NULL
      ["_route":protected] => object(Route)#15 (5) {
        ["_filters":protected] => array(0) {
        }
        ["_uri":protected] => string(114) "<directory>(/<controller>(/<action>(/<param1>(/<param2>(/<param3>(/<param4>(/<param5>(/<param6>(/<param7>)))))))))"
        ["_regex":protected] => array(1) {
          ["directory"] => string(19) "[a-zA-Z]+/[a-zA-Z]+"
        }
        ["_defaults":protected] => array(2) {
          ["action"] => string(5) "index"
          ["host"] => bool(false)
        }
        ["_route_regex":protected] => string(314) "#^(?P<directory>[a-zA-Z]+/[a-zA-Z]+)(?:/(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<param1>[^/.,;?\n]++)(?:/(?P<param2>[^/.,;?\n]++)(?:/(?P<param3>[^/.,;?\n]++)(?:/(?P<param4>[^/.,;?\n]++)(?:/(?P<param5>[^/.,;?\n]++)(?:/(?P<param6>[^/.,;?\n]++)(?:/(?P<param7>[^/.,;?\n]++))?)?)?)?)?)?)?)?)?$#uD"
      }
      ["_routes":protected] => array(0) {
      }
      ["_header":protected] => object(HTTP_Header)#42 (5) {
        ["_accept_content":protected] => NULL
        ["_accept_charset":protected] => NULL
        ["_accept_encoding":protected] => NULL
        ["_accept_language":protected] => NULL
        ["storage":"ArrayObject":private] => array(0) {
        }
      }
      ["_body":protected] => NULL
      ["_directory":protected] => string(15) "Frontend/Global"
      ["_controller":protected] => string(6) "Header"
      ["_action":protected] => string(5) "index"
      ["_uri":protected] => string(28) "Frontend/Global/header/index"
      ["_external":protected] => bool(false)
      ["_params":protected] => array(1) {
        ["host"] => bool(false)
      }
      ["_get":protected] => array(0) {
      }
      ["_post":protected] => array(0) {
      }
      ["_cookies":protected] => array(0) {
      }
      ["_client":protected] => object(Request_Client_Internal)#43 (9) {
        ["_previous_environment":protected] => NULL
        ["_cache":protected] => NULL
        ["_follow":protected] => bool(false)
        ["_follow_headers":protected] => array(1) {
          [0] => string(13) "Authorization"
        }
        ["_strict_redirect":protected] => bool(true)
        ["_header_callbacks":protected] => array(1) {
          ["Location"] => string(34) "Request_Client::on_header_location"
        }
        ["_max_callback_depth":protected] => int(5)
        ["_callback_depth":protected] => int(1)
        ["_callback_params":protected] => 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.996 
  21. APPPATH/views/frontend/default/contents/global/home.php [ 1 ] » Kohana_Request->execute ( )

    -4 <?php echo Request::factory('Frontend/Global/header/index')->execute(); ?> -3 <?php echo Request::factory('Frontend/Global/ads/index/slider/')->execute(); ?>-2 <?php echo Request::factory('Frontend/News/focus/home')->execute(); ?>-1 <?php echo Request::factory('Frontend/Global/ads/index/homecenter/')->execute(); ?>0     <div class="box-news clearfix">1 <?php echo Request::factory('Frontend/News/List/withcat/8')->execute(); ?>2  
  22. SYSPATH/classes/Kohana/View.php [ 61 ] » include ( arguments )

    0 /data/wcode/ttnn2013/application/views/frontend/default/contents/global/home.php
    56 		ob_start();57  58 		try59 		{60 			// Load the view within the current scope61 			include $kohana_view_filename;62 		}63 		catch (Exception $e)64 		{65 			// Delete the output buffer66 			ob_end_clean();67  
  23. SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture ( arguments )

    0 /data/wcode/ttnn2013/application/views/frontend/default/contents/global/home.php
    1
    array(0) {
    }
    
    343 		{344 			throw new View_Exception('You must set the file to use within your view before rendering');345 		}346  347 		// Combine local and global data and capture the output348 		return View::capture($this->_file, $this->_data);349 	}350  351 } // End View352  
  24. SYSPATH/classes/Kohana/View.php [ 228 ] » Kohana_View->render ( )

    223 	 */224 	public function __toString()225 	{226 		try227 		{228 			return $this->render();229 		}230 		catch (Exception $e)231 		{232 			/**233 			 * Display the exception message.234 
  25. SYSPATH/classes/Kohana/Response.php [ 160 ] » Kohana_View->__toString ( )

    155 	public function body($content = NULL)156 	{157 		if ($content === NULL)158 			return $this->_body;159  160 		$this->_body = (string) $content;161 		return $this;162 	}163  164 	/**165 	 * Gets or sets the HTTP protocol. The standard protocol to use166 
  26. APPPATH/classes/Controller/Frontend/Global/Home.php [ 24 ] » Kohana_Response->body ( arguments )

    0
    object(View)#40 (2) {
      ["_file":protected] => string(80) "/data/wcode/ttnn2013/application/views/frontend/default/contents/global/home.php"
      ["_data":protected] => array(0) {
      }
    }
    
    19         if ($_REQUEST['lang']) {20             $_SESSION['language'] = $_REQUEST['lang'];21             $selectedLanguage = $_REQUEST['lang'];22         }23  24         $this->response->body(View::factory('frontend/default/contents/' . $this->module_name . '/' . $this->default_action . ''));25     }26  27 }
  27. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Frontend_Global_Home->action_index ( )

    79 				array(':uri' => $this->request->uri())80 			)->request($this->request);81 		}82  83 		// Execute the action itself84 		$this->{$action}();85  86 		// Execute the "after action" method87 		$this->after();88  89 		// Return the response90  
  28. {PHP internal call} » Kohana_Controller->execute ( )

  29. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke ( arguments )

    0
    object(Controller_Frontend_Global_Home)#38 (5) {
      ["module_name":"Controller_Frontend_Global_Home":private] => string(6) "global"
      ["object_name":"Controller_Frontend_Global_Home":private] => string(4) "home"
      ["default_action":"Controller_Frontend_Global_Home":private] => string(4) "home"
      ["request"] => object(Request)#32 (19) {
        ["_requested_with":protected] => NULL
        ["_method":protected] => string(3) "GET"
        ["_protocol":protected] => string(8) "HTTP/1.1"
        ["_secure":protected] => bool(false)
        ["_referrer":protected] => NULL
        ["_route":protected] => object(Route)#11 (5) {
          ["_filters":protected] => array(0) {
          }
          ["_uri":protected] => string(0) ""
          ["_regex":protected] => array(0) {
          }
          ["_defaults":protected] => array(3) {
            ["directory"] => string(15) "Frontend/Global"
            ["controller"] => string(4) "home"
            ["action"] => string(5) "index"
          }
          ["_route_regex":protected] => string(6) "#^$#uD"
        }
        ["_routes":protected] => array(0) {
        }
        ["_header":protected] => object(HTTP_Header)#33 (5) {
          ["_accept_content":protected] => NULL
          ["_accept_charset":protected] => NULL
          ["_accept_encoding":protected] => NULL
          ["_accept_language":protected] => NULL
          ["storage":"ArrayObject":private] => array(0) {
          }
        }
        ["_body":protected] => NULL
        ["_directory":protected] => string(15) "Frontend/Global"
        ["_controller":protected] => string(4) "Home"
        ["_action":protected] => string(5) "index"
        ["_uri":protected] => string(0) ""
        ["_external":protected] => bool(false)
        ["_params":protected] => array(0) {
        }
        ["_get":protected] => array(0) {
        }
        ["_post":protected] => array(0) {
        }
        ["_cookies":protected] => array(0) {
        }
        ["_client":protected] => object(Request_Client_Internal)#34 (9) {
          ["_previous_environment":protected] => NULL
          ["_cache":protected] => NULL
          ["_follow":protected] => bool(false)
          ["_follow_headers":protected] => array(1) {
            [0] => string(13) "Authorization"
          }
          ["_strict_redirect":protected] => bool(true)
          ["_header_callbacks":protected] => array(1) {
            ["Location"] => string(34) "Request_Client::on_header_location"
          }
          ["_max_callback_depth":protected] => int(5)
          ["_callback_depth":protected] => int(1)
          ["_callback_params":protected] => array(0) {
          }
        }
      }
      ["response"] => object(Response)#35 (5) {
        ["_status":protected] => int(200)
        ["_header":protected] => object(HTTP_Header)#36 (5) {
          ["_accept_content":protected] => NULL
          ["_accept_charset":protected] => NULL
          ["_accept_encoding":protected] => NULL
          ["_accept_language":protected] => NULL
          ["storage":"ArrayObject":private] => array(0) {
          }
        }
        ["_body":protected] => string(0) ""
        ["_cookies":protected] => array(0) {
        }
        ["_protocol":protected] => 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');103  
  30. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request ( arguments )

    0
    object(Request)#32 (19) {
      ["_requested_with":protected] => NULL
      ["_method":protected] => string(3) "GET"
      ["_protocol":protected] => string(8) "HTTP/1.1"
      ["_secure":protected] => bool(false)
      ["_referrer":protected] => NULL
      ["_route":protected] => object(Route)#11 (5) {
        ["_filters":protected] => array(0) {
        }
        ["_uri":protected] => string(0) ""
        ["_regex":protected] => array(0) {
        }
        ["_defaults":protected] => array(3) {
          ["directory"] => string(15) "Frontend/Global"
          ["controller"] => string(4) "home"
          ["action"] => string(5) "index"
        }
        ["_route_regex":protected] => string(6) "#^$#uD"
      }
      ["_routes":protected] => array(0) {
      }
      ["_header":protected] => object(HTTP_Header)#33 (5) {
        ["_accept_content":protected] => NULL
        ["_accept_charset":protected] => NULL
        ["_accept_encoding":protected] => NULL
        ["_accept_language":protected] => NULL
        ["storage":"ArrayObject":private] => array(0) {
        }
      }
      ["_body":protected] => NULL
      ["_directory":protected] => string(15) "Frontend/Global"
      ["_controller":protected] => string(4) "Home"
      ["_action":protected] => string(5) "index"
      ["_uri":protected] => string(0) ""
      ["_external":protected] => bool(false)
      ["_params":protected] => array(0) {
      }
      ["_get":protected] => array(0) {
      }
      ["_post":protected] => array(0) {
      }
      ["_cookies":protected] => array(0) {
      }
      ["_client":protected] => object(Request_Client_Internal)#34 (9) {
        ["_previous_environment":protected] => NULL
        ["_cache":protected] => NULL
        ["_follow":protected] => bool(false)
        ["_follow_headers":protected] => array(1) {
          [0] => string(13) "Authorization"
        }
        ["_strict_redirect":protected] => bool(true)
        ["_header_callbacks":protected] => array(1) {
          ["Location"] => string(34) "Request_Client::on_header_location"
        }
        ["_max_callback_depth":protected] => int(5)
        ["_callback_depth":protected] => int(1)
        ["_callback_params":protected] => array(0) {
        }
      }
    }
    
    1
    object(Response)#35 (5) {
      ["_status":protected] => int(200)
      ["_header":protected] => object(HTTP_Header)#36 (5) {
        ["_accept_content":protected] => NULL
        ["_accept_charset":protected] => NULL
        ["_accept_encoding":protected] => NULL
        ["_accept_language":protected] => NULL
        ["storage":"ArrayObject":private] => array(0) {
        }
      }
      ["_body":protected] => string(0) ""
      ["_cookies":protected] => array(0) {
      }
      ["_protocol":protected] => 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 callbacks117 		foreach ($this->header_callbacks() as $header => $callback)118 		{119 			if ($response->headers($header))120  
  31. SYSPATH/classes/Kohana/Request.php [ 990 ] » Kohana_Request_Client->execute ( arguments )

    0
    object(Request)#32 (19) {
      ["_requested_with":protected] => NULL
      ["_method":protected] => string(3) "GET"
      ["_protocol":protected] => string(8) "HTTP/1.1"
      ["_secure":protected] => bool(false)
      ["_referrer":protected] => NULL
      ["_route":protected] => object(Route)#11 (5) {
        ["_filters":protected] => array(0) {
        }
        ["_uri":protected] => string(0) ""
        ["_regex":protected] => array(0) {
        }
        ["_defaults":protected] => array(3) {
          ["directory"] => string(15) "Frontend/Global"
          ["controller"] => string(4) "home"
          ["action"] => string(5) "index"
        }
        ["_route_regex":protected] => string(6) "#^$#uD"
      }
      ["_routes":protected] => array(0) {
      }
      ["_header":protected] => object(HTTP_Header)#33 (5) {
        ["_accept_content":protected] => NULL
        ["_accept_charset":protected] => NULL
        ["_accept_encoding":protected] => NULL
        ["_accept_language":protected] => NULL
        ["storage":"ArrayObject":private] => array(0) {
        }
      }
      ["_body":protected] => NULL
      ["_directory":protected] => string(15) "Frontend/Global"
      ["_controller":protected] => string(4) "Home"
      ["_action":protected] => string(5) "index"
      ["_uri":protected] => string(0) ""
      ["_external":protected] => bool(false)
      ["_params":protected] => array(0) {
      }
      ["_get":protected] => array(0) {
      }
      ["_post":protected] => array(0) {
      }
      ["_cookies":protected] => array(0) {
      }
      ["_client":protected] => object(Request_Client_Internal)#34 (9) {
        ["_previous_environment":protected] => NULL
        ["_cache":protected] => NULL
        ["_follow":protected] => bool(false)
        ["_follow_headers":protected] => array(1) {
          [0] => string(13) "Authorization"
        }
        ["_strict_redirect":protected] => bool(true)
        ["_header_callbacks":protected] => array(1) {
          ["Location"] => string(34) "Request_Client::on_header_location"
        }
        ["_max_callback_depth":protected] => int(5)
        ["_callback_depth":protected] => int(1)
        ["_callback_params":protected] => 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.996 
  32. 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 }122  
Database_Exception [ ]
 

MODPATH/profilertoolbar/classes/Kohana/Database/MySQL.php [ 108 ]

103 	protected function _select_db($database)104 	{105 		if ( ! mysql_select_db($database, $this->_connection))106 		{107 			// Unable to select database108 			throw new Database_Exception(':error',109 				array(':error' => mysql_error($this->_connection)),110 				mysql_errno($this->_connection));111 		}112  113 		Database_MySQL::$_current_databases[$this->_connection_id] = $database;114  
  1. MODPATH/profilertoolbar/classes/Kohana/Database/MySQL.php [ 75 ] » Kohana_Database_MySQL->_select_db ( arguments )

    0 ttnn2013new
    70 		}71  72 		// \xFF is a better delimiter, but the PHP driver uses underscore73 		$this->_connection_id = sha1($hostname.'_'.$username.'_'.$password);74  75 		$this->_select_db($database);76  77 		if ( ! empty($this->_config['charset']))78 		{79 			// Set the character set80 			$this->set_charset($this->_config['charset']);81  
  2. MODPATH/profilertoolbar/classes/Kohana/Database/MySQL.php [ 439 ] » Kohana_Database_MySQL->connect ( )

    434 	}435  436 	public function escape($value)437 	{438 		// Make sure the database is connected439 		$this->_connection or $this->connect();440  441 		if (($value = mysql_real_escape_string( (string) $value, $this->_connection)) === FALSE)442 		{443 			throw new Database_Exception(':error',444 				array(':error' => mysql_error($this->_connection)),445  
  3. MODPATH/database/classes/Kohana/Database.php [ 478 ] » Kohana_Database_MySQL->escape ( arguments )

    0 slider
    473 		{474 			// Convert to non-locale aware float to prevent possible commas475 			return sprintf('%F', $value);476 		}477  478 		return $this->escape($value);479 	}480  481 	/**482 	 * Quote a database column name and add the table prefix if needed.483 	 *484 
  4. MODPATH/database/classes/Kohana/Database/Query/Builder.php [ 116 ] » Kohana_Database->quote ( arguments )

    0 slider
    111 						$value = $min.' AND '.$max;112 					}113 					elseif ((is_string($value) AND array_key_exists($value, $this->_parameters)) === FALSE)114 					{115 						// Quote the value, it is not a parameter116 						$value = $db->quote($value);117 					}118  119 					if ($column)120 					{121 						if (is_array($column))122  
  5. MODPATH/database/classes/Kohana/Database/Query/Builder/Select.php [ 372 ] » Kohana_Database_Query_Builder->_compile_conditions ( arguments )

    0
    object(Database_MySQL)#56 (6) {
      ["_connection_id":protected] => string(40) "515f69d89e788c3a432a9536e33c4cd1885e69b7"
      ["_identifier":protected] => string(1) "`"
      ["last_query"] => NULL
      ["_instance":protected] => string(7) "default"
      ["_connection":protected] => bool(false)
      ["_config":protected] => array(5) {
        ["type"] => string(5) "MySQL"
        ["connection"] => array(3) {
          ["hostname"] => string(11) "10.33.21.11"
          ["database"] => string(11) "ttnn2013new"
          ["persistent"] => bool(false)
        }
        ["table_prefix"] => string(0) ""
        ["charset"] => string(4) "utf8"
        ["caching"] => bool(false)
      }
    }
    
    1
    array(1) {
      [0] => array(1) {
        ["AND"] => array(3) {
          [0] => string(10) "group_type"
          [1] => string(1) "="
          [2] => string(6) "slider"
        }
      }
    }
    
    367 		}368  369 		if ( ! empty($this->_where))370 		{371 			// Add selection conditions372 			$query .= ' WHERE '.$this->_compile_conditions($db, $this->_where);373 		}374  375 		if ( ! empty($this->_group_by))376 		{377 			// Add grouping378  
  6. MODPATH/database/classes/Kohana/Database/Query.php [ 234 ] » Kohana_Database_Query_Builder_Select->compile ( arguments )

    0
    object(Database_MySQL)#56 (6) {
      ["_connection_id":protected] => string(40) "515f69d89e788c3a432a9536e33c4cd1885e69b7"
      ["_identifier":protected] => string(1) "`"
      ["last_query"] => NULL
      ["_instance":protected] => string(7) "default"
      ["_connection":protected] => bool(false)
      ["_config":protected] => array(5) {
        ["type"] => string(5) "MySQL"
        ["connection"] => array(3) {
          ["hostname"] => string(11) "10.33.21.11"
          ["database"] => string(11) "ttnn2013new"
          ["persistent"] => bool(false)
        }
        ["table_prefix"] => string(0) ""
        ["charset"] => string(4) "utf8"
        ["caching"] => bool(false)
      }
    }
    
    229 		{230 			$object_params = $this->_object_params;231 		}232  233 		// Compile the SQL query234 		$sql = $this->compile($db);235  236 		if ($this->_lifetime !== NULL AND $this->_type === Database::SELECT)237 		{238 			// Set the cache key based on the database instance name and SQL239 			$cache_key = 'Database::query("'.$db.'", "'.$sql.'")';240  
  7. APPPATH/classes/Model/AdsGroup.php [ 85 ] » Kohana_Database_Query->execute ( )

    80  81     public function getIdByName($name) {82         $assign = $this->setupModel();83         $result = DB::select($assign['object_key'])->from($assign['object_table'])84                         ->where($assign['object_name'] . '_type', '=', $name)85                         ->execute()->as_array();86  87         if (isset($result[0]))88             return $result[0][$assign['object_key']];89         else90             return FALSE;91  
  8. APPPATH/classes/Controller/Frontend/Global/Ads.php [ 19 ] » Model_AdsGroup->getIdByName ( arguments )

    0 slider
    14         $limit = $this->request->param('param3',0);15  16  17         $model_group = new Model_AdsGroup();18         $model = new Model_Ads();19         $group_id = $model_group->getIdByName($group);20  21         $where['group_id'] = $group_id;22         $where['ads_active'] = 1;23         $order_by['ads_order'] = 'ASC';24  25  
  9. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Frontend_Global_Ads->action_index ( )

    79 				array(':uri' => $this->request->uri())80 			)->request($this->request);81 		}82  83 		// Execute the action itself84 		$this->{$action}();85  86 		// Execute the "after action" method87 		$this->after();88  89 		// Return the response90  
  10. {PHP internal call} » Kohana_Controller->execute ( )

  11. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke ( arguments )

    0
    object(Controller_Frontend_Global_Ads)#47 (5) {
      ["module_name":"Controller_Frontend_Global_Ads":private] => string(3) "ads"
      ["object_name":"Controller_Frontend_Global_Ads":private] => string(3) "ads"
      ["default_action":"Controller_Frontend_Global_Ads":private] => string(3) "ads"
      ["request"] => object(Request)#44 (19) {
        ["_requested_with":protected] => NULL
        ["_method":protected] => string(3) "GET"
        ["_protocol":protected] => NULL
        ["_secure":protected] => bool(false)
        ["_referrer":protected] => NULL
        ["_route":protected] => object(Route)#15 (5) {
          ["_filters":protected] => array(0) {
          }
          ["_uri":protected] => string(114) "<directory>(/<controller>(/<action>(/<param1>(/<param2>(/<param3>(/<param4>(/<param5>(/<param6>(/<param7>)))))))))"
          ["_regex":protected] => array(1) {
            ["directory"] => string(19) "[a-zA-Z]+/[a-zA-Z]+"
          }
          ["_defaults":protected] => array(2) {
            ["action"] => string(5) "index"
            ["host"] => bool(false)
          }
          ["_route_regex":protected] => string(314) "#^(?P<directory>[a-zA-Z]+/[a-zA-Z]+)(?:/(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<param1>[^/.,;?\n]++)(?:/(?P<param2>[^/.,;?\n]++)(?:/(?P<param3>[^/.,;?\n]++)(?:/(?P<param4>[^/.,;?\n]++)(?:/(?P<param5>[^/.,;?\n]++)(?:/(?P<param6>[^/.,;?\n]++)(?:/(?P<param7>[^/.,;?\n]++))?)?)?)?)?)?)?)?)?$#uD"
        }
        ["_routes":protected] => array(0) {
        }
        ["_header":protected] => object(HTTP_Header)#45 (5) {
          ["_accept_content":protected] => NULL
          ["_accept_charset":protected] => NULL
          ["_accept_encoding":protected] => NULL
          ["_accept_language":protected] => NULL
          ["storage":"ArrayObject":private] => array(0) {
          }
        }
        ["_body":protected] => NULL
        ["_directory":protected] => string(15) "Frontend/Global"
        ["_controller":protected] => string(3) "Ads"
        ["_action":protected] => string(5) "index"
        ["_uri":protected] => string(32) "Frontend/Global/ads/index/slider"
        ["_external":protected] => bool(false)
        ["_params":protected] => array(2) {
          ["param1"] => string(6) "slider"
          ["host"] => bool(false)
        }
        ["_get":protected] => array(0) {
        }
        ["_post":protected] => array(0) {
        }
        ["_cookies":protected] => array(0) {
        }
        ["_client":protected] => object(Request_Client_Internal)#41 (9) {
          ["_previous_environment":protected] => NULL
          ["_cache":protected] => NULL
          ["_follow":protected] => bool(false)
          ["_follow_headers":protected] => array(1) {
            [0] => string(13) "Authorization"
          }
          ["_strict_redirect":protected] => bool(true)
          ["_header_callbacks":protected] => array(1) {
            ["Location"] => string(34) "Request_Client::on_header_location"
          }
          ["_max_callback_depth":protected] => int(5)
          ["_callback_depth":protected] => int(1)
          ["_callback_params":protected] => array(0) {
          }
        }
      }
      ["response"] => object(Response)#43 (5) {
        ["_status":protected] => int(200)
        ["_header":protected] => object(HTTP_Header)#42 (5) {
          ["_accept_content":protected] => NULL
          ["_accept_charset":protected] => NULL
          ["_accept_encoding":protected] => NULL
          ["_accept_language":protected] => NULL
          ["storage":"ArrayObject":private] => array(0) {
          }
        }
        ["_body":protected] => string(0) ""
        ["_cookies":protected] => array(0) {
        }
        ["_protocol":protected] => 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');103  
  12. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request ( arguments )

    0
    object(Request)#44 (19) {
      ["_requested_with":protected] => NULL
      ["_method":protected] => string(3) "GET"
      ["_protocol":protected] => NULL
      ["_secure":protected] => bool(false)
      ["_referrer":protected] => NULL
      ["_route":protected] => object(Route)#15 (5) {
        ["_filters":protected] => array(0) {
        }
        ["_uri":protected] => string(114) "<directory>(/<controller>(/<action>(/<param1>(/<param2>(/<param3>(/<param4>(/<param5>(/<param6>(/<param7>)))))))))"
        ["_regex":protected] => array(1) {
          ["directory"] => string(19) "[a-zA-Z]+/[a-zA-Z]+"
        }
        ["_defaults":protected] => array(2) {
          ["action"] => string(5) "index"
          ["host"] => bool(false)
        }
        ["_route_regex":protected] => string(314) "#^(?P<directory>[a-zA-Z]+/[a-zA-Z]+)(?:/(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<param1>[^/.,;?\n]++)(?:/(?P<param2>[^/.,;?\n]++)(?:/(?P<param3>[^/.,;?\n]++)(?:/(?P<param4>[^/.,;?\n]++)(?:/(?P<param5>[^/.,;?\n]++)(?:/(?P<param6>[^/.,;?\n]++)(?:/(?P<param7>[^/.,;?\n]++))?)?)?)?)?)?)?)?)?$#uD"
      }
      ["_routes":protected] => array(0) {
      }
      ["_header":protected] => object(HTTP_Header)#45 (5) {
        ["_accept_content":protected] => NULL
        ["_accept_charset":protected] => NULL
        ["_accept_encoding":protected] => NULL
        ["_accept_language":protected] => NULL
        ["storage":"ArrayObject":private] => array(0) {
        }
      }
      ["_body":protected] => NULL
      ["_directory":protected] => string(15) "Frontend/Global"
      ["_controller":protected] => string(3) "Ads"
      ["_action":protected] => string(5) "index"
      ["_uri":protected] => string(32) "Frontend/Global/ads/index/slider"
      ["_external":protected] => bool(false)
      ["_params":protected] => array(2) {
        ["param1"] => string(6) "slider"
        ["host"] => bool(false)
      }
      ["_get":protected] => array(0) {
      }
      ["_post":protected] => array(0) {
      }
      ["_cookies":protected] => array(0) {
      }
      ["_client":protected] => object(Request_Client_Internal)#41 (9) {
        ["_previous_environment":protected] => NULL
        ["_cache":protected] => NULL
        ["_follow":protected] => bool(false)
        ["_follow_headers":protected] => array(1) {
          [0] => string(13) "Authorization"
        }
        ["_strict_redirect":protected] => bool(true)
        ["_header_callbacks":protected] => array(1) {
          ["Location"] => string(34) "Request_Client::on_header_location"
        }
        ["_max_callback_depth":protected] => int(5)
        ["_callback_depth":protected] => int(1)
        ["_callback_params":protected] => array(0) {
        }
      }
    }
    
    1
    object(Response)#43 (5) {
      ["_status":protected] => int(200)
      ["_header":protected] => object(HTTP_Header)#42 (5) {
        ["_accept_content":protected] => NULL
        ["_accept_charset":protected] => NULL
        ["_accept_encoding":protected] => NULL
        ["_accept_language":protected] => NULL
        ["storage":"ArrayObject":private] => array(0) {
        }
      }
      ["_body":protected] => string(0) ""
      ["_cookies":protected] => array(0) {
      }
      ["_protocol":protected] => 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 callbacks117 		foreach ($this->header_callbacks() as $header => $callback)118 		{119 			if ($response->headers($header))120  
  13. SYSPATH/classes/Kohana/Request.php [ 990 ] » Kohana_Request_Client->execute ( arguments )

    0
    object(Request)#44 (19) {
      ["_requested_with":protected] => NULL
      ["_method":protected] => string(3) "GET"
      ["_protocol":protected] => NULL
      ["_secure":protected] => bool(false)
      ["_referrer":protected] => NULL
      ["_route":protected] => object(Route)#15 (5) {
        ["_filters":protected] => array(0) {
        }
        ["_uri":protected] => string(114) "<directory>(/<controller>(/<action>(/<param1>(/<param2>(/<param3>(/<param4>(/<param5>(/<param6>(/<param7>)))))))))"
        ["_regex":protected] => array(1) {
          ["directory"] => string(19) "[a-zA-Z]+/[a-zA-Z]+"
        }
        ["_defaults":protected] => array(2) {
          ["action"] => string(5) "index"
          ["host"] => bool(false)
        }
        ["_route_regex":protected] => string(314) "#^(?P<directory>[a-zA-Z]+/[a-zA-Z]+)(?:/(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<param1>[^/.,;?\n]++)(?:/(?P<param2>[^/.,;?\n]++)(?:/(?P<param3>[^/.,;?\n]++)(?:/(?P<param4>[^/.,;?\n]++)(?:/(?P<param5>[^/.,;?\n]++)(?:/(?P<param6>[^/.,;?\n]++)(?:/(?P<param7>[^/.,;?\n]++))?)?)?)?)?)?)?)?)?$#uD"
      }
      ["_routes":protected] => array(0) {
      }
      ["_header":protected] => object(HTTP_Header)#45 (5) {
        ["_accept_content":protected] => NULL
        ["_accept_charset":protected] => NULL
        ["_accept_encoding":protected] => NULL
        ["_accept_language":protected] => NULL
        ["storage":"ArrayObject":private] => array(0) {
        }
      }
      ["_body":protected] => NULL
      ["_directory":protected] => string(15) "Frontend/Global"
      ["_controller":protected] => string(3) "Ads"
      ["_action":protected] => string(5) "index"
      ["_uri":protected] => string(32) "Frontend/Global/ads/index/slider"
      ["_external":protected] => bool(false)
      ["_params":protected] => array(2) {
        ["param1"] => string(6) "slider"
        ["host"] => bool(false)
      }
      ["_get":protected] => array(0) {
      }
      ["_post":protected] => array(0) {
      }
      ["_cookies":protected] => array(0) {
      }
      ["_client":protected] => object(Request_Client_Internal)#41 (9) {
        ["_previous_environment":protected] => NULL
        ["_cache":protected] => NULL
        ["_follow":protected] => bool(false)
        ["_follow_headers":protected] => array(1) {
          [0] => string(13) "Authorization"
        }
        ["_strict_redirect":protected] => bool(true)
        ["_header_callbacks":protected] => array(1) {
          ["Location"] => string(34) "Request_Client::on_header_location"
        }
        ["_max_callback_depth":protected] => int(5)
        ["_callback_depth":protected] => int(1)
        ["_callback_params":protected] => 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.996 
  14. APPPATH/views/frontend/default/contents/global/home.php [ 2 ] » Kohana_Request->execute ( )

    -3 <?php echo Request::factory('Frontend/Global/header/index')->execute(); ?> -2 <?php echo Request::factory('Frontend/Global/ads/index/slider/')->execute(); ?>-1 <?php echo Request::factory('Frontend/News/focus/home')->execute(); ?>0 <?php echo Request::factory('Frontend/Global/ads/index/homecenter/')->execute(); ?>1     <div class="box-news clearfix">2 <?php echo Request::factory('Frontend/News/List/withcat/8')->execute(); ?>3 <?php echo Request::factory('Frontend/News/List/tabcat')->execute(); ?>4  
  15. SYSPATH/classes/Kohana/View.php [ 61 ] » include ( arguments )

    0 /data/wcode/ttnn2013/application/views/frontend/default/contents/global/home.php
    56 		ob_start();57  58 		try59 		{60 			// Load the view within the current scope61 			include $kohana_view_filename;62 		}63 		catch (Exception $e)64 		{65 			// Delete the output buffer66 			ob_end_clean();67  
  16. SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture ( arguments )

    0 /data/wcode/ttnn2013/application/views/frontend/default/contents/global/home.php
    1
    array(0) {
    }
    
    343 		{344 			throw new View_Exception('You must set the file to use within your view before rendering');345 		}346  347 		// Combine local and global data and capture the output348 		return View::capture($this->_file, $this->_data);349 	}350  351 } // End View352  
  17. SYSPATH/classes/Kohana/View.php [ 228 ] » Kohana_View->render ( )

    223 	 */224 	public function __toString()225 	{226 		try227 		{228 			return $this->render();229 		}230 		catch (Exception $e)231 		{232 			/**233 			 * Display the exception message.234 
  18. SYSPATH/classes/Kohana/Response.php [ 160 ] » Kohana_View->__toString ( )

    155 	public function body($content = NULL)156 	{157 		if ($content === NULL)158 			return $this->_body;159  160 		$this->_body = (string) $content;161 		return $this;162 	}163  164 	/**165 	 * Gets or sets the HTTP protocol. The standard protocol to use166 
  19. APPPATH/classes/Controller/Frontend/Global/Home.php [ 24 ] » Kohana_Response->body ( arguments )

    0
    object(View)#40 (2) {
      ["_file":protected] => string(80) "/data/wcode/ttnn2013/application/views/frontend/default/contents/global/home.php"
      ["_data":protected] => array(0) {
      }
    }
    
    19         if ($_REQUEST['lang']) {20             $_SESSION['language'] = $_REQUEST['lang'];21             $selectedLanguage = $_REQUEST['lang'];22         }23  24         $this->response->body(View::factory('frontend/default/contents/' . $this->module_name . '/' . $this->default_action . ''));25     }26  27 }
  20. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Frontend_Global_Home->action_index ( )

    79 				array(':uri' => $this->request->uri())80 			)->request($this->request);81 		}82  83 		// Execute the action itself84 		$this->{$action}();85  86 		// Execute the "after action" method87 		$this->after();88  89 		// Return the response90  
  21. {PHP internal call} » Kohana_Controller->execute ( )

  22. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke ( arguments )

    0
    object(Controller_Frontend_Global_Home)#38 (5) {
      ["module_name":"Controller_Frontend_Global_Home":private] => string(6) "global"
      ["object_name":"Controller_Frontend_Global_Home":private] => string(4) "home"
      ["default_action":"Controller_Frontend_Global_Home":private] => string(4) "home"
      ["request"] => object(Request)#32 (19) {
        ["_requested_with":protected] => NULL
        ["_method":protected] => string(3) "GET"
        ["_protocol":protected] => string(8) "HTTP/1.1"
        ["_secure":protected] => bool(false)
        ["_referrer":protected] => NULL
        ["_route":protected] => object(Route)#11 (5) {
          ["_filters":protected] => array(0) {
          }
          ["_uri":protected] => string(0) ""
          ["_regex":protected] => array(0) {
          }
          ["_defaults":protected] => array(3) {
            ["directory"] => string(15) "Frontend/Global"
            ["controller"] => string(4) "home"
            ["action"] => string(5) "index"
          }
          ["_route_regex":protected] => string(6) "#^$#uD"
        }
        ["_routes":protected] => array(0) {
        }
        ["_header":protected] => object(HTTP_Header)#33 (5) {
          ["_accept_content":protected] => NULL
          ["_accept_charset":protected] => NULL
          ["_accept_encoding":protected] => NULL
          ["_accept_language":protected] => NULL
          ["storage":"ArrayObject":private] => array(0) {
          }
        }
        ["_body":protected] => NULL
        ["_directory":protected] => string(15) "Frontend/Global"
        ["_controller":protected] => string(4) "Home"
        ["_action":protected] => string(5) "index"
        ["_uri":protected] => string(0) ""
        ["_external":protected] => bool(false)
        ["_params":protected] => array(0) {
        }
        ["_get":protected] => array(0) {
        }
        ["_post":protected] => array(0) {
        }
        ["_cookies":protected] => array(0) {
        }
        ["_client":protected] => object(Request_Client_Internal)#34 (9) {
          ["_previous_environment":protected] => NULL
          ["_cache":protected] => NULL
          ["_follow":protected] => bool(false)
          ["_follow_headers":protected] => array(1) {
            [0] => string(13) "Authorization"
          }
          ["_strict_redirect":protected] => bool(true)
          ["_header_callbacks":protected] => array(1) {
            ["Location"] => string(34) "Request_Client::on_header_location"
          }
          ["_max_callback_depth":protected] => int(5)
          ["_callback_depth":protected] => int(1)
          ["_callback_params":protected] => array(0) {
          }
        }
      }
      ["response"] => object(Response)#35 (5) {
        ["_status":protected] => int(200)
        ["_header":protected] => object(HTTP_Header)#36 (5) {
          ["_accept_content":protected] => NULL
          ["_accept_charset":protected] => NULL
          ["_accept_encoding":protected] => NULL
          ["_accept_language":protected] => NULL
          ["storage":"ArrayObject":private] => array(0) {
          }
        }
        ["_body":protected] => string(0) ""
        ["_cookies":protected] => array(0) {
        }
        ["_protocol":protected] => 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');103  
  23. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request ( arguments )

    0
    object(Request)#32 (19) {
      ["_requested_with":protected] => NULL
      ["_method":protected] => string(3) "GET"
      ["_protocol":protected] => string(8) "HTTP/1.1"
      ["_secure":protected] => bool(false)
      ["_referrer":protected] => NULL
      ["_route":protected] => object(Route)#11 (5) {
        ["_filters":protected] => array(0) {
        }
        ["_uri":protected] => string(0) ""
        ["_regex":protected] => array(0) {
        }
        ["_defaults":protected] => array(3) {
          ["directory"] => string(15) "Frontend/Global"
          ["controller"] => string(4) "home"
          ["action"] => string(5) "index"
        }
        ["_route_regex":protected] => string(6) "#^$#uD"
      }
      ["_routes":protected] => array(0) {
      }
      ["_header":protected] => object(HTTP_Header)#33 (5) {
        ["_accept_content":protected] => NULL
        ["_accept_charset":protected] => NULL
        ["_accept_encoding":protected] => NULL
        ["_accept_language":protected] => NULL
        ["storage":"ArrayObject":private] => array(0) {
        }
      }
      ["_body":protected] => NULL
      ["_directory":protected] => string(15) "Frontend/Global"
      ["_controller":protected] => string(4) "Home"
      ["_action":protected] => string(5) "index"
      ["_uri":protected] => string(0) ""
      ["_external":protected] => bool(false)
      ["_params":protected] => array(0) {
      }
      ["_get":protected] => array(0) {
      }
      ["_post":protected] => array(0) {
      }
      ["_cookies":protected] => array(0) {
      }
      ["_client":protected] => object(Request_Client_Internal)#34 (9) {
        ["_previous_environment":protected] => NULL
        ["_cache":protected] => NULL
        ["_follow":protected] => bool(false)
        ["_follow_headers":protected] => array(1) {
          [0] => string(13) "Authorization"
        }
        ["_strict_redirect":protected] => bool(true)
        ["_header_callbacks":protected] => array(1) {
          ["Location"] => string(34) "Request_Client::on_header_location"
        }
        ["_max_callback_depth":protected] => int(5)
        ["_callback_depth":protected] => int(1)
        ["_callback_params":protected] => array(0) {
        }
      }
    }
    
    1
    object(Response)#35 (5) {
      ["_status":protected] => int(200)
      ["_header":protected] => object(HTTP_Header)#36 (5) {
        ["_accept_content":protected] => NULL
        ["_accept_charset":protected] => NULL
        ["_accept_encoding":protected] => NULL
        ["_accept_language":protected] => NULL
        ["storage":"ArrayObject":private] => array(0) {
        }
      }
      ["_body":protected] => string(0) ""
      ["_cookies":protected] => array(0) {
      }
      ["_protocol":protected] => 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 callbacks117 		foreach ($this->header_callbacks() as $header => $callback)118 		{119 			if ($response->headers($header))120  
  24. SYSPATH/classes/Kohana/Request.php [ 990 ] » Kohana_Request_Client->execute ( arguments )

    0
    object(Request)#32 (19) {
      ["_requested_with":protected] => NULL
      ["_method":protected] => string(3) "GET"
      ["_protocol":protected] => string(8) "HTTP/1.1"
      ["_secure":protected] => bool(false)
      ["_referrer":protected] => NULL
      ["_route":protected] => object(Route)#11 (5) {
        ["_filters":protected] => array(0) {
        }
        ["_uri":protected] => string(0) ""
        ["_regex":protected] => array(0) {
        }
        ["_defaults":protected] => array(3) {
          ["directory"] => string(15) "Frontend/Global"
          ["controller"] => string(4) "home"
          ["action"] => string(5) "index"
        }
        ["_route_regex":protected] => string(6) "#^$#uD"
      }
      ["_routes":protected] => array(0) {
      }
      ["_header":protected] => object(HTTP_Header)#33 (5) {
        ["_accept_content":protected] => NULL
        ["_accept_charset":protected] => NULL
        ["_accept_encoding":protected] => NULL
        ["_accept_language":protected] => NULL
        ["storage":"ArrayObject":private] => array(0) {
        }
      }
      ["_body":protected] => NULL
      ["_directory":protected] => string(15) "Frontend/Global"
      ["_controller":protected] => string(4) "Home"
      ["_action":protected] => string(5) "index"
      ["_uri":protected] => string(0) ""
      ["_external":protected] => bool(false)
      ["_params":protected] => array(0) {
      }
      ["_get":protected] => array(0) {
      }
      ["_post":protected] => array(0) {
      }
      ["_cookies":protected] => array(0) {
      }
      ["_client":protected] => object(Request_Client_Internal)#34 (9) {
        ["_previous_environment":protected] => NULL
        ["_cache":protected] => NULL
        ["_follow":protected] => bool(false)
        ["_follow_headers":protected] => array(1) {
          [0] => string(13) "Authorization"
        }
        ["_strict_redirect":protected] => bool(true)
        ["_header_callbacks":protected] => array(1) {
          ["Location"] => string(34) "Request_Client::on_header_location"
        }
        ["_max_callback_depth":protected] => int(5)
        ["_callback_depth":protected] => int(1)
        ["_callback_params":protected] => 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.996 
  25. 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 }122  
Database_Exception [ ]
 

MODPATH/profilertoolbar/classes/Kohana/Database/MySQL.php [ 108 ]

103 	protected function _select_db($database)104 	{105 		if ( ! mysql_select_db($database, $this->_connection))106 		{107 			// Unable to select database108 			throw new Database_Exception(':error',109 				array(':error' => mysql_error($this->_connection)),110 				mysql_errno($this->_connection));111 		}112  113 		Database_MySQL::$_current_databases[$this->_connection_id] = $database;114  
  1. MODPATH/profilertoolbar/classes/Kohana/Database/MySQL.php [ 75 ] » Kohana_Database_MySQL->_select_db ( arguments )

    0 ttnn2013new
    70 		}71  72 		// \xFF is a better delimiter, but the PHP driver uses underscore73 		$this->_connection_id = sha1($hostname.'_'.$username.'_'.$password);74  75 		$this->_select_db($database);76  77 		if ( ! empty($this->_config['charset']))78 		{79 			// Set the character set80 			$this->set_charset($this->_config['charset']);81  
  2. MODPATH/profilertoolbar/classes/Kohana/Database/MySQL.php [ 439 ] » Kohana_Database_MySQL->connect ( )

    434 	}435  436 	public function escape($value)437 	{438 		// Make sure the database is connected439 		$this->_connection or $this->connect();440  441 		if (($value = mysql_real_escape_string( (string) $value, $this->_connection)) === FALSE)442 		{443 			throw new Database_Exception(':error',444 				array(':error' => mysql_error($this->_connection)),445  
  3. MODPATH/database/classes/Kohana/Database.php [ 478 ] » Kohana_Database_MySQL->escape ( arguments )

    0 1
    473 		{474 			// Convert to non-locale aware float to prevent possible commas475 			return sprintf('%F', $value);476 		}477  478 		return $this->escape($value);479 	}480  481 	/**482 	 * Quote a database column name and add the table prefix if needed.483 	 *484 
  4. MODPATH/database/classes/Kohana/Database/Query/Builder.php [ 116 ] » Kohana_Database->quote ( arguments )

    0 1
    111 						$value = $min.' AND '.$max;112 					}113 					elseif ((is_string($value) AND array_key_exists($value, $this->_parameters)) === FALSE)114 					{115 						// Quote the value, it is not a parameter116 						$value = $db->quote($value);117 					}118  119 					if ($column)120 					{121 						if (is_array($column))122  
  5. MODPATH/database/classes/Kohana/Database/Query/Builder/Select.php [ 372 ] » Kohana_Database_Query_Builder->_compile_conditions ( arguments )

    0
    object(Database_MySQL)#56 (6) {
      ["_connection_id":protected] => string(40) "515f69d89e788c3a432a9536e33c4cd1885e69b7"
      ["_identifier":protected] => string(1) "`"
      ["last_query"] => NULL
      ["_instance":protected] => string(7) "default"
      ["_connection":protected] => bool(false)
      ["_config":protected] => array(5) {
        ["type"] => string(5) "MySQL"
        ["connection"] => array(3) {
          ["hostname"] => string(11) "10.33.21.11"
          ["database"] => string(11) "ttnn2013new"
          ["persistent"] => bool(false)
        }
        ["table_prefix"] => string(0) ""
        ["charset"] => string(4) "utf8"
        ["caching"] => bool(false)
      }
    }
    
    1
    array(2) {
      [0] => array(1) {
        ["AND"] => array(3) {
          [0] => string(7) "default"
          [1] => string(1) "="
          [2] => string(1) "1"
        }
      }
      [1] => array(1) {
        ["AND"] => array(3) {
          [0] => string(6) "active"
          [1] => string(1) "="
          [2] => string(1) "1"
        }
      }
    }
    
    367 		}368  369 		if ( ! empty($this->_where))370 		{371 			// Add selection conditions372 			$query .= ' WHERE '.$this->_compile_conditions($db, $this->_where);373 		}374  375 		if ( ! empty($this->_group_by))376 		{377 			// Add grouping378  
  6. MODPATH/database/classes/Kohana/Database/Query.php [ 234 ] » Kohana_Database_Query_Builder_Select->compile ( arguments )

    0
    object(Database_MySQL)#56 (6) {
      ["_connection_id":protected] => string(40) "515f69d89e788c3a432a9536e33c4cd1885e69b7"
      ["_identifier":protected] => string(1) "`"
      ["last_query"] => NULL
      ["_instance":protected] => string(7) "default"
      ["_connection":protected] => bool(false)
      ["_config":protected] => array(5) {
        ["type"] => string(5) "MySQL"
        ["connection"] => array(3) {
          ["hostname"] => string(11) "10.33.21.11"
          ["database"] => string(11) "ttnn2013new"
          ["persistent"] => bool(false)
        }
        ["table_prefix"] => string(0) ""
        ["charset"] => string(4) "utf8"
        ["caching"] => bool(false)
      }
    }
    
    229 		{230 			$object_params = $this->_object_params;231 		}232  233 		// Compile the SQL query234 		$sql = $this->compile($db);235  236 		if ($this->_lifetime !== NULL AND $this->_type === Database::SELECT)237 		{238 			// Set the cache key based on the database instance name and SQL239 			$cache_key = 'Database::query("'.$db.'", "'.$sql.'")';240  
  7. APPPATH/classes/Class/Functions.php [ 11 ] » Kohana_Database_Query->execute ( )

     6  
  8. APPPATH/classes/Model/Articlenews.php [ 336 ] » Class_Functions::langDefault ( )

    331             //print_r($result);die;332             unset($where['attr']);333         }else{334  335             $assign = $this->setupModel();336             $id_lang = ($id_lang == 0) ? Class_Functions::langDefault() : $id_lang;337  338  339             $result = DB::select()->from(array($assign['object_table'], 'art'))340                     ->join(array($assign['object_table'] . '_lang', 'artl'), 'LEFT')341                     ->on('art.' . $assign['object_key'], '=', 'artl.' . $assign['object_key']);342  
  9. APPPATH/classes/Controller/Frontend/News/Focus.php [ 25 ] » Model_Articlenews->getList ( arguments )

    0 0
    1
    array(2) {
      ["article_focus"] => int(1)
      ["article_active"] => int(1)
    }
    
    2
    array(2) {
      ["article_order"] => string(3) "ASC"
      ["article_id"] => string(4) "DESC"
    }
    
    3 1
    20         $where['article_active'] = 1;21         $order_by['article_order'] = 'ASC';22         $order_by[$assign['object_key']] = 'DESC';23         $limit = 1;24  25         $assign['list'] = $model->getList(0,$where, $order_by, $limit)->as_array();26         $assign['list'] = $model->synchronization($assign['list']);27  28  29         $where = array();30         $order_by = array();31  
  10. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Frontend_News_Focus->action_home ( )

    79 				array(':uri' => $this->request->uri())80 			)->request($this->request);81 		}82  83 		// Execute the action itself84 		$this->{$action}();85  86 		// Execute the "after action" method87 		$this->after();88  89 		// Return the response90  
  11. {PHP internal call} » Kohana_Controller->execute ( )

  12. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke ( arguments )

    0
    object(Controller_Frontend_News_Focus)#42 (5) {
      ["module_name":"Controller_Frontend_News_Focus":private] => string(4) "news"
      ["object_name":"Controller_Frontend_News_Focus":private] => string(7) "article"
      ["default_action":"Controller_Frontend_News_Focus":private] => string(5) "focus"
      ["request"] => object(Request)#48 (19) {
        ["_requested_with":protected] => NULL
        ["_method":protected] => string(3) "GET"
        ["_protocol":protected] => NULL
        ["_secure":protected] => bool(false)
        ["_referrer":protected] => NULL
        ["_route":protected] => object(Route)#15 (5) {
          ["_filters":protected] => array(0) {
          }
          ["_uri":protected] => string(114) "<directory>(/<controller>(/<action>(/<param1>(/<param2>(/<param3>(/<param4>(/<param5>(/<param6>(/<param7>)))))))))"
          ["_regex":protected] => array(1) {
            ["directory"] => string(19) "[a-zA-Z]+/[a-zA-Z]+"
          }
          ["_defaults":protected] => array(2) {
            ["action"] => string(5) "index"
            ["host"] => bool(false)
          }
          ["_route_regex":protected] => string(314) "#^(?P<directory>[a-zA-Z]+/[a-zA-Z]+)(?:/(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<param1>[^/.,;?\n]++)(?:/(?P<param2>[^/.,;?\n]++)(?:/(?P<param3>[^/.,;?\n]++)(?:/(?P<param4>[^/.,;?\n]++)(?:/(?P<param5>[^/.,;?\n]++)(?:/(?P<param6>[^/.,;?\n]++)(?:/(?P<param7>[^/.,;?\n]++))?)?)?)?)?)?)?)?)?$#uD"
        }
        ["_routes":protected] => array(0) {
        }
        ["_header":protected] => object(HTTP_Header)#49 (5) {
          ["_accept_content":protected] => NULL
          ["_accept_charset":protected] => NULL
          ["_accept_encoding":protected] => NULL
          ["_accept_language":protected] => NULL
          ["storage":"ArrayObject":private] => array(0) {
          }
        }
        ["_body":protected] => NULL
        ["_directory":protected] => string(13) "Frontend/News"
        ["_controller":protected] => string(5) "Focus"
        ["_action":protected] => string(4) "home"
        ["_uri":protected] => string(24) "Frontend/News/focus/home"
        ["_external":protected] => bool(false)
        ["_params":protected] => array(1) {
          ["host"] => bool(false)
        }
        ["_get":protected] => array(0) {
        }
        ["_post":protected] => array(0) {
        }
        ["_cookies":protected] => array(0) {
        }
        ["_client":protected] => object(Request_Client_Internal)#44 (9) {
          ["_previous_environment":protected] => NULL
          ["_cache":protected] => NULL
          ["_follow":protected] => bool(false)
          ["_follow_headers":protected] => array(1) {
            [0] => string(13) "Authorization"
          }
          ["_strict_redirect":protected] => bool(true)
          ["_header_callbacks":protected] => array(1) {
            ["Location"] => string(34) "Request_Client::on_header_location"
          }
          ["_max_callback_depth":protected] => int(5)
          ["_callback_depth":protected] => int(1)
          ["_callback_params":protected] => array(0) {
          }
        }
      }
      ["response"] => object(Response)#41 (5) {
        ["_status":protected] => int(200)
        ["_header":protected] => object(HTTP_Header)#45 (5) {
          ["_accept_content":protected] => NULL
          ["_accept_charset":protected] => NULL
          ["_accept_encoding":protected] => NULL
          ["_accept_language":protected] => NULL
          ["storage":"ArrayObject":private] => array(0) {
          }
        }
        ["_body":protected] => string(0) ""
        ["_cookies":protected] => array(0) {
        }
        ["_protocol":protected] => 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');103  
  13. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request ( arguments )

    0
    object(Request)#48 (19) {
      ["_requested_with":protected] => NULL
      ["_method":protected] => string(3) "GET"
      ["_protocol":protected] => NULL
      ["_secure":protected] => bool(false)
      ["_referrer":protected] => NULL
      ["_route":protected] => object(Route)#15 (5) {
        ["_filters":protected] => array(0) {
        }
        ["_uri":protected] => string(114) "<directory>(/<controller>(/<action>(/<param1>(/<param2>(/<param3>(/<param4>(/<param5>(/<param6>(/<param7>)))))))))"
        ["_regex":protected] => array(1) {
          ["directory"] => string(19) "[a-zA-Z]+/[a-zA-Z]+"
        }
        ["_defaults":protected] => array(2) {
          ["action"] => string(5) "index"
          ["host"] => bool(false)
        }
        ["_route_regex":protected] => string(314) "#^(?P<directory>[a-zA-Z]+/[a-zA-Z]+)(?:/(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<param1>[^/.,;?\n]++)(?:/(?P<param2>[^/.,;?\n]++)(?:/(?P<param3>[^/.,;?\n]++)(?:/(?P<param4>[^/.,;?\n]++)(?:/(?P<param5>[^/.,;?\n]++)(?:/(?P<param6>[^/.,;?\n]++)(?:/(?P<param7>[^/.,;?\n]++))?)?)?)?)?)?)?)?)?$#uD"
      }
      ["_routes":protected] => array(0) {
      }
      ["_header":protected] => object(HTTP_Header)#49 (5) {
        ["_accept_content":protected] => NULL
        ["_accept_charset":protected] => NULL
        ["_accept_encoding":protected] => NULL
        ["_accept_language":protected] => NULL
        ["storage":"ArrayObject":private] => array(0) {
        }
      }
      ["_body":protected] => NULL
      ["_directory":protected] => string(13) "Frontend/News"
      ["_controller":protected] => string(5) "Focus"
      ["_action":protected] => string(4) "home"
      ["_uri":protected] => string(24) "Frontend/News/focus/home"
      ["_external":protected] => bool(false)
      ["_params":protected] => array(1) {
        ["host"] => bool(false)
      }
      ["_get":protected] => array(0) {
      }
      ["_post":protected] => array(0) {
      }
      ["_cookies":protected] => array(0) {
      }
      ["_client":protected] => object(Request_Client_Internal)#44 (9) {
        ["_previous_environment":protected] => NULL
        ["_cache":protected] => NULL
        ["_follow":protected] => bool(false)
        ["_follow_headers":protected] => array(1) {
          [0] => string(13) "Authorization"
        }
        ["_strict_redirect":protected] => bool(true)
        ["_header_callbacks":protected] => array(1) {
          ["Location"] => string(34) "Request_Client::on_header_location"
        }
        ["_max_callback_depth":protected] => int(5)
        ["_callback_depth":protected] => int(1)
        ["_callback_params":protected] => array(0) {
        }
      }
    }
    
    1
    object(Response)#41 (5) {
      ["_status":protected] => int(200)
      ["_header":protected] => object(HTTP_Header)#45 (5) {
        ["_accept_content":protected] => NULL
        ["_accept_charset":protected] => NULL
        ["_accept_encoding":protected] => NULL
        ["_accept_language":protected] => NULL
        ["storage":"ArrayObject":private] => array(0) {
        }
      }
      ["_body":protected] => string(0) ""
      ["_cookies":protected] => array(0) {
      }
      ["_protocol":protected] => 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 callbacks117 		foreach ($this->header_callbacks() as $header => $callback)118 		{119 			if ($response->headers($header))120  
  14. SYSPATH/classes/Kohana/Request.php [ 990 ] » Kohana_Request_Client->execute ( arguments )

    0
    object(Request)#48 (19) {
      ["_requested_with":protected] => NULL
      ["_method":protected] => string(3) "GET"
      ["_protocol":protected] => NULL
      ["_secure":protected] => bool(false)
      ["_referrer":protected] => NULL
      ["_route":protected] => object(Route)#15 (5) {
        ["_filters":protected] => array(0) {
        }
        ["_uri":protected] => string(114) "<directory>(/<controller>(/<action>(/<param1>(/<param2>(/<param3>(/<param4>(/<param5>(/<param6>(/<param7>)))))))))"
        ["_regex":protected] => array(1) {
          ["directory"] => string(19) "[a-zA-Z]+/[a-zA-Z]+"
        }
        ["_defaults":protected] => array(2) {
          ["action"] => string(5) "index"
          ["host"] => bool(false)
        }
        ["_route_regex":protected] => string(314) "#^(?P<directory>[a-zA-Z]+/[a-zA-Z]+)(?:/(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<param1>[^/.,;?\n]++)(?:/(?P<param2>[^/.,;?\n]++)(?:/(?P<param3>[^/.,;?\n]++)(?:/(?P<param4>[^/.,;?\n]++)(?:/(?P<param5>[^/.,;?\n]++)(?:/(?P<param6>[^/.,;?\n]++)(?:/(?P<param7>[^/.,;?\n]++))?)?)?)?)?)?)?)?)?$#uD"
      }
      ["_routes":protected] => array(0) {
      }
      ["_header":protected] => object(HTTP_Header)#49 (5) {
        ["_accept_content":protected] => NULL
        ["_accept_charset":protected] => NULL
        ["_accept_encoding":protected] => NULL
        ["_accept_language":protected] => NULL
        ["storage":"ArrayObject":private] => array(0) {
        }
      }
      ["_body":protected] => NULL
      ["_directory":protected] => string(13) "Frontend/News"
      ["_controller":protected] => string(5) "Focus"
      ["_action":protected] => string(4) "home"
      ["_uri":protected] => string(24) "Frontend/News/focus/home"
      ["_external":protected] => bool(false)
      ["_params":protected] => array(1) {
        ["host"] => bool(false)
      }
      ["_get":protected] => array(0) {
      }
      ["_post":protected] => array(0) {
      }
      ["_cookies":protected] => array(0) {
      }
      ["_client":protected] => object(Request_Client_Internal)#44 (9) {
        ["_previous_environment":protected] => NULL
        ["_cache":protected] => NULL
        ["_follow":protected] => bool(false)
        ["_follow_headers":protected] => array(1) {
          [0] => string(13) "Authorization"
        }
        ["_strict_redirect":protected] => bool(true)
        ["_header_callbacks":protected] => array(1) {
          ["Location"] => string(34) "Request_Client::on_header_location"
        }
        ["_max_callback_depth":protected] => int(5)
        ["_callback_depth":protected] => int(1)
        ["_callback_params":protected] => 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.996 
  15. APPPATH/views/frontend/default/contents/global/home.php [ 3 ] » Kohana_Request->execute ( )

    -2 <?php echo Request::factory('Frontend/Global/header/index')->execute(); ?> -1 <?php echo Request::factory('Frontend/Global/ads/index/slider/')->execute(); ?>0 <?php echo Request::factory('Frontend/News/focus/home')->execute(); ?>1 <?php echo Request::factory('Frontend/Global/ads/index/homecenter/')->execute(); ?>2     <div class="box-news clearfix">3 <?php echo Request::factory('Frontend/News/List/withcat/8')->execute(); ?>4 <?php echo Request::factory('Frontend/News/List/tabcat')->execute(); ?>5     </div>6  
  16. SYSPATH/classes/Kohana/View.php [ 61 ] » include ( arguments )

    0 /data/wcode/ttnn2013/application/views/frontend/default/contents/global/home.php
    56 		ob_start();57  58 		try59 		{60 			// Load the view within the current scope61 			include $kohana_view_filename;62 		}63 		catch (Exception $e)64 		{65 			// Delete the output buffer66 			ob_end_clean();67  
  17. SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture ( arguments )

    0 /data/wcode/ttnn2013/application/views/frontend/default/contents/global/home.php
    1
    array(0) {
    }
    
    343 		{344 			throw new View_Exception('You must set the file to use within your view before rendering');345 		}346  347 		// Combine local and global data and capture the output348 		return View::capture($this->_file, $this->_data);349 	}350  351 } // End View352  
  18. SYSPATH/classes/Kohana/View.php [ 228 ] » Kohana_View->render ( )

    223 	 */224 	public function __toString()225 	{226 		try227 		{228 			return $this->render();229 		}230 		catch (Exception $e)231 		{232 			/**233 			 * Display the exception message.234 
  19. SYSPATH/classes/Kohana/Response.php [ 160 ] » Kohana_View->__toString ( )

    155 	public function body($content = NULL)156 	{157 		if ($content === NULL)158 			return $this->_body;159  160 		$this->_body = (string) $content;161 		return $this;162 	}163  164 	/**165 	 * Gets or sets the HTTP protocol. The standard protocol to use166 
  20. APPPATH/classes/Controller/Frontend/Global/Home.php [ 24 ] » Kohana_Response->body ( arguments )

    0
    object(View)#40 (2) {
      ["_file":protected] => string(80) "/data/wcode/ttnn2013/application/views/frontend/default/contents/global/home.php"
      ["_data":protected] => array(0) {
      }
    }
    
    19         if ($_REQUEST['lang']) {20             $_SESSION['language'] = $_REQUEST['lang'];21             $selectedLanguage = $_REQUEST['lang'];22         }23  24         $this->response->body(View::factory('frontend/default/contents/' . $this->module_name . '/' . $this->default_action . ''));25     }26  27 }
  21. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Frontend_Global_Home->action_index ( )

    79 				array(':uri' => $this->request->uri())80 			)->request($this->request);81 		}82  83 		// Execute the action itself84 		$this->{$action}();85  86 		// Execute the "after action" method87 		$this->after();88  89 		// Return the response90  
  22. {PHP internal call} » Kohana_Controller->execute ( )

  23. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke ( arguments )

    0
    object(Controller_Frontend_Global_Home)#38 (5) {
      ["module_name":"Controller_Frontend_Global_Home":private] => string(6) "global"
      ["object_name":"Controller_Frontend_Global_Home":private] => string(4) "home"
      ["default_action":"Controller_Frontend_Global_Home":private] => string(4) "home"
      ["request"] => object(Request)#32 (19) {
        ["_requested_with":protected] => NULL
        ["_method":protected] => string(3) "GET"
        ["_protocol":protected] => string(8) "HTTP/1.1"
        ["_secure":protected] => bool(false)
        ["_referrer":protected] => NULL
        ["_route":protected] => object(Route)#11 (5) {
          ["_filters":protected] => array(0) {
          }
          ["_uri":protected] => string(0) ""
          ["_regex":protected] => array(0) {
          }
          ["_defaults":protected] => array(3) {
            ["directory"] => string(15) "Frontend/Global"
            ["controller"] => string(4) "home"
            ["action"] => string(5) "index"
          }
          ["_route_regex":protected] => string(6) "#^$#uD"
        }
        ["_routes":protected] => array(0) {
        }
        ["_header":protected] => object(HTTP_Header)#33 (5) {
          ["_accept_content":protected] => NULL
          ["_accept_charset":protected] => NULL
          ["_accept_encoding":protected] => NULL
          ["_accept_language":protected] => NULL
          ["storage":"ArrayObject":private] => array(0) {
          }
        }
        ["_body":protected] => NULL
        ["_directory":protected] => string(15) "Frontend/Global"
        ["_controller":protected] => string(4) "Home"
        ["_action":protected] => string(5) "index"
        ["_uri":protected] => string(0) ""
        ["_external":protected] => bool(false)
        ["_params":protected] => array(0) {
        }
        ["_get":protected] => array(0) {
        }
        ["_post":protected] => array(0) {
        }
        ["_cookies":protected] => array(0) {
        }
        ["_client":protected] => object(Request_Client_Internal)#34 (9) {
          ["_previous_environment":protected] => NULL
          ["_cache":protected] => NULL
          ["_follow":protected] => bool(false)
          ["_follow_headers":protected] => array(1) {
            [0] => string(13) "Authorization"
          }
          ["_strict_redirect":protected] => bool(true)
          ["_header_callbacks":protected] => array(1) {
            ["Location"] => string(34) "Request_Client::on_header_location"
          }
          ["_max_callback_depth":protected] => int(5)
          ["_callback_depth":protected] => int(1)
          ["_callback_params":protected] => array(0) {
          }
        }
      }
      ["response"] => object(Response)#35 (5) {
        ["_status":protected] => int(200)
        ["_header":protected] => object(HTTP_Header)#36 (5) {
          ["_accept_content":protected] => NULL
          ["_accept_charset":protected] => NULL
          ["_accept_encoding":protected] => NULL
          ["_accept_language":protected] => NULL
          ["storage":"ArrayObject":private] => array(0) {
          }
        }
        ["_body":protected] => string(0) ""
        ["_cookies":protected] => array(0) {
        }
        ["_protocol":protected] => 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');103  
  24. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request ( arguments )

    0
    object(Request)#32 (19) {
      ["_requested_with":protected] => NULL
      ["_method":protected] => string(3) "GET"
      ["_protocol":protected] => string(8) "HTTP/1.1"
      ["_secure":protected] => bool(false)
      ["_referrer":protected] => NULL
      ["_route":protected] => object(Route)#11 (5) {
        ["_filters":protected] => array(0) {
        }
        ["_uri":protected] => string(0) ""
        ["_regex":protected] => array(0) {
        }
        ["_defaults":protected] => array(3) {
          ["directory"] => string(15) "Frontend/Global"
          ["controller"] => string(4) "home"
          ["action"] => string(5) "index"
        }
        ["_route_regex":protected] => string(6) "#^$#uD"
      }
      ["_routes":protected] => array(0) {
      }
      ["_header":protected] => object(HTTP_Header)#33 (5) {
        ["_accept_content":protected] => NULL
        ["_accept_charset":protected] => NULL
        ["_accept_encoding":protected] => NULL
        ["_accept_language":protected] => NULL
        ["storage":"ArrayObject":private] => array(0) {
        }
      }
      ["_body":protected] => NULL
      ["_directory":protected] => string(15) "Frontend/Global"
      ["_controller":protected] => string(4) "Home"
      ["_action":protected] => string(5) "index"
      ["_uri":protected] => string(0) ""
      ["_external":protected] => bool(false)
      ["_params":protected] => array(0) {
      }
      ["_get":protected] => array(0) {
      }
      ["_post":protected] => array(0) {
      }
      ["_cookies":protected] => array(0) {
      }
      ["_client":protected] => object(Request_Client_Internal)#34 (9) {
        ["_previous_environment":protected] => NULL
        ["_cache":protected] => NULL
        ["_follow":protected] => bool(false)
        ["_follow_headers":protected] => array(1) {
          [0] => string(13) "Authorization"
        }
        ["_strict_redirect":protected] => bool(true)
        ["_header_callbacks":protected] => array(1) {
          ["Location"] => string(34) "Request_Client::on_header_location"
        }
        ["_max_callback_depth":protected] => int(5)
        ["_callback_depth":protected] => int(1)
        ["_callback_params":protected] => array(0) {
        }
      }
    }
    
    1
    object(Response)#35 (5) {
      ["_status":protected] => int(200)
      ["_header":protected] => object(HTTP_Header)#36 (5) {
        ["_accept_content":protected] => NULL
        ["_accept_charset":protected] => NULL
        ["_accept_encoding":protected] => NULL
        ["_accept_language":protected] => NULL
        ["storage":"ArrayObject":private] => array(0) {
        }
      }
      ["_body":protected] => string(0) ""
      ["_cookies":protected] => array(0) {
      }
      ["_protocol":protected] => 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 callbacks117 		foreach ($this->header_callbacks() as $header => $callback)118 		{119 			if ($response->headers($header))120  
  25. SYSPATH/classes/Kohana/Request.php [ 990 ] » Kohana_Request_Client->execute ( arguments )

    0
    object(Request)#32 (19) {
      ["_requested_with":protected] => NULL
      ["_method":protected] => string(3) "GET"
      ["_protocol":protected] => string(8) "HTTP/1.1"
      ["_secure":protected] => bool(false)
      ["_referrer":protected] => NULL
      ["_route":protected] => object(Route)#11 (5) {
        ["_filters":protected] => array(0) {
        }
        ["_uri":protected] => string(0) ""
        ["_regex":protected] => array(0) {
        }
        ["_defaults":protected] => array(3) {
          ["directory"] => string(15) "Frontend/Global"
          ["controller"] => string(4) "home"
          ["action"] => string(5) "index"
        }
        ["_route_regex":protected] => string(6) "#^$#uD"
      }
      ["_routes":protected] => array(0) {
      }
      ["_header":protected] => object(HTTP_Header)#33 (5) {
        ["_accept_content":protected] => NULL
        ["_accept_charset":protected] => NULL
        ["_accept_encoding":protected] => NULL
        ["_accept_language":protected] => NULL
        ["storage":"ArrayObject":private] => array(0) {
        }
      }
      ["_body":protected] => NULL
      ["_directory":protected] => string(15) "Frontend/Global"
      ["_controller":protected] => string(4) "Home"
      ["_action":protected] => string(5) "index"
      ["_uri":protected] => string(0) ""
      ["_external":protected] => bool(false)
      ["_params":protected] => array(0) {
      }
      ["_get":protected] => array(0) {
      }
      ["_post":protected] => array(0) {
      }
      ["_cookies":protected] => array(0) {
      }
      ["_client":protected] => object(Request_Client_Internal)#34 (9) {
        ["_previous_environment":protected] => NULL
        ["_cache":protected] => NULL
        ["_follow":protected] => bool(false)
        ["_follow_headers":protected] => array(1) {
          [0] => string(13) "Authorization"
        }
        ["_strict_redirect":protected] => bool(true)
        ["_header_callbacks":protected] => array(1) {
          ["Location"] => string(34) "Request_Client::on_header_location"
        }
        ["_max_callback_depth":protected] => int(5)
        ["_callback_depth":protected] => int(1)
        ["_callback_params":protected] => 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.996 
  26. 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 }122  
Database_Exception [ ]
 

MODPATH/profilertoolbar/classes/Kohana/Database/MySQL.php [ 108 ]

103 	protected function _select_db($database)104 	{105 		if ( ! mysql_select_db($database, $this->_connection))106 		{107 			// Unable to select database108 			throw new Database_Exception(':error',109 				array(':error' => mysql_error($this->_connection)),110 				mysql_errno($this->_connection));111 		}112  113 		Database_MySQL::$_current_databases[$this->_connection_id] = $database;114  
  1. MODPATH/profilertoolbar/classes/Kohana/Database/MySQL.php [ 75 ] » Kohana_Database_MySQL->_select_db ( arguments )

    0 ttnn2013new
    70 		}71  72 		// \xFF is a better delimiter, but the PHP driver uses underscore73 		$this->_connection_id = sha1($hostname.'_'.$username.'_'.$password);74  75 		$this->_select_db($database);76  77 		if ( ! empty($this->_config['charset']))78 		{79 			// Set the character set80 			$this->set_charset($this->_config['charset']);81  
  2. MODPATH/profilertoolbar/classes/Kohana/Database/MySQL.php [ 439 ] » Kohana_Database_MySQL->connect ( )

    434 	}435  436 	public function escape($value)437 	{438 		// Make sure the database is connected439 		$this->_connection or $this->connect();440  441 		if (($value = mysql_real_escape_string( (string) $value, $this->_connection)) === FALSE)442 		{443 			throw new Database_Exception(':error',444 				array(':error' => mysql_error($this->_connection)),445  
  3. MODPATH/database/classes/Kohana/Database.php [ 478 ] » Kohana_Database_MySQL->escape ( arguments )

    0 homecenter
    473 		{474 			// Convert to non-locale aware float to prevent possible commas475 			return sprintf('%F', $value);476 		}477  478 		return $this->escape($value);479 	}480  481 	/**482 	 * Quote a database column name and add the table prefix if needed.483 	 *484 
  4. MODPATH/database/classes/Kohana/Database/Query/Builder.php [ 116 ] » Kohana_Database->quote ( arguments )

    0 homecenter
    111 						$value = $min.' AND '.$max;112 					}113 					elseif ((is_string($value) AND array_key_exists($value, $this->_parameters)) === FALSE)114 					{115 						// Quote the value, it is not a parameter116 						$value = $db->quote($value);117 					}118  119 					if ($column)120 					{121 						if (is_array($column))122  
  5. MODPATH/database/classes/Kohana/Database/Query/Builder/Select.php [ 372 ] » Kohana_Database_Query_Builder->_compile_conditions ( arguments )

    0
    object(Database_MySQL)#56 (6) {
      ["_connection_id":protected] => string(40) "515f69d89e788c3a432a9536e33c4cd1885e69b7"
      ["_identifier":protected] => string(1) "`"
      ["last_query"] => NULL
      ["_instance":protected] => string(7) "default"
      ["_connection":protected] => bool(false)
      ["_config":protected] => array(5) {
        ["type"] => string(5) "MySQL"
        ["connection"] => array(3) {
          ["hostname"] => string(11) "10.33.21.11"
          ["database"] => string(11) "ttnn2013new"
          ["persistent"] => bool(false)
        }
        ["table_prefix"] => string(0) ""
        ["charset"] => string(4) "utf8"
        ["caching"] => bool(false)
      }
    }
    
    1
    array(1) {
      [0] => array(1) {
        ["AND"] => array(3) {
          [0] => string(10) "group_type"
          [1] => string(1) "="
          [2] => string(10) "homecenter"
        }
      }
    }
    
    367 		}368  369 		if ( ! empty($this->_where))370 		{371 			// Add selection conditions372 			$query .= ' WHERE '.$this->_compile_conditions($db, $this->_where);373 		}374  375 		if ( ! empty($this->_group_by))376 		{377 			// Add grouping378  
  6. MODPATH/database/classes/Kohana/Database/Query.php [ 234 ] » Kohana_Database_Query_Builder_Select->compile ( arguments )

    0
    object(Database_MySQL)#56 (6) {
      ["_connection_id":protected] => string(40) "515f69d89e788c3a432a9536e33c4cd1885e69b7"
      ["_identifier":protected] => string(1) "`"
      ["last_query"] => NULL
      ["_instance":protected] => string(7) "default"
      ["_connection":protected] => bool(false)
      ["_config":protected] => array(5) {
        ["type"] => string(5) "MySQL"
        ["connection"] => array(3) {
          ["hostname"] => string(11) "10.33.21.11"
          ["database"] => string(11) "ttnn2013new"
          ["persistent"] => bool(false)
        }
        ["table_prefix"] => string(0) ""
        ["charset"] => string(4) "utf8"
        ["caching"] => bool(false)
      }
    }
    
    229 		{230 			$object_params = $this->_object_params;231 		}232  233 		// Compile the SQL query234 		$sql = $this->compile($db);235  236 		if ($this->_lifetime !== NULL AND $this->_type === Database::SELECT)237 		{238 			// Set the cache key based on the database instance name and SQL239 			$cache_key = 'Database::query("'.$db.'", "'.$sql.'")';240  
  7. APPPATH/classes/Model/AdsGroup.php [ 85 ] » Kohana_Database_Query->execute ( )

    80  81     public function getIdByName($name) {82         $assign = $this->setupModel();83         $result = DB::select($assign['object_key'])->from($assign['object_table'])84                         ->where($assign['object_name'] . '_type', '=', $name)85                         ->execute()->as_array();86  87         if (isset($result[0]))88             return $result[0][$assign['object_key']];89         else90             return FALSE;91  
  8. APPPATH/classes/Controller/Frontend/Global/Ads.php [ 19 ] » Model_AdsGroup->getIdByName ( arguments )

    0 homecenter
    14         $limit = $this->request->param('param3',0);15  16  17         $model_group = new Model_AdsGroup();18         $model = new Model_Ads();19         $group_id = $model_group->getIdByName($group);20  21         $where['group_id'] = $group_id;22         $where['ads_active'] = 1;23         $order_by['ads_order'] = 'ASC';24  25  
  9. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Frontend_Global_Ads->action_index ( )

    79 				array(':uri' => $this->request->uri())80 			)->request($this->request);81 		}82  83 		// Execute the action itself84 		$this->{$action}();85  86 		// Execute the "after action" method87 		$this->after();88  89 		// Return the response90  
  10. {PHP internal call} » Kohana_Controller->execute ( )

  11. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke ( arguments )

    0
    object(Controller_Frontend_Global_Ads)#45 (5) {
      ["module_name":"Controller_Frontend_Global_Ads":private] => string(3) "ads"
      ["object_name":"Controller_Frontend_Global_Ads":private] => string(3) "ads"
      ["default_action":"Controller_Frontend_Global_Ads":private] => string(3) "ads"
      ["request"] => object(Request)#57 (19) {
        ["_requested_with":protected] => NULL
        ["_method":protected] => string(3) "GET"
        ["_protocol":protected] => NULL
        ["_secure":protected] => bool(false)
        ["_referrer":protected] => NULL
        ["_route":protected] => object(Route)#15 (5) {
          ["_filters":protected] => array(0) {
          }
          ["_uri":protected] => string(114) "<directory>(/<controller>(/<action>(/<param1>(/<param2>(/<param3>(/<param4>(/<param5>(/<param6>(/<param7>)))))))))"
          ["_regex":protected] => array(1) {
            ["directory"] => string(19) "[a-zA-Z]+/[a-zA-Z]+"
          }
          ["_defaults":protected] => array(2) {
            ["action"] => string(5) "index"
            ["host"] => bool(false)
          }
          ["_route_regex":protected] => string(314) "#^(?P<directory>[a-zA-Z]+/[a-zA-Z]+)(?:/(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<param1>[^/.,;?\n]++)(?:/(?P<param2>[^/.,;?\n]++)(?:/(?P<param3>[^/.,;?\n]++)(?:/(?P<param4>[^/.,;?\n]++)(?:/(?P<param5>[^/.,;?\n]++)(?:/(?P<param6>[^/.,;?\n]++)(?:/(?P<param7>[^/.,;?\n]++))?)?)?)?)?)?)?)?)?$#uD"
        }
        ["_routes":protected] => array(0) {
        }
        ["_header":protected] => object(HTTP_Header)#46 (5) {
          ["_accept_content":protected] => NULL
          ["_accept_charset":protected] => NULL
          ["_accept_encoding":protected] => NULL
          ["_accept_language":protected] => NULL
          ["storage":"ArrayObject":private] => array(0) {
          }
        }
        ["_body":protected] => NULL
        ["_directory":protected] => string(15) "Frontend/Global"
        ["_controller":protected] => string(3) "Ads"
        ["_action":protected] => string(5) "index"
        ["_uri":protected] => string(36) "Frontend/Global/ads/index/homecenter"
        ["_external":protected] => bool(false)
        ["_params":protected] => array(2) {
          ["param1"] => string(10) "homecenter"
          ["host"] => bool(false)
        }
        ["_get":protected] => array(0) {
        }
        ["_post":protected] => array(0) {
        }
        ["_cookies":protected] => array(0) {
        }
        ["_client":protected] => object(Request_Client_Internal)#48 (9) {
          ["_previous_environment":protected] => NULL
          ["_cache":protected] => NULL
          ["_follow":protected] => bool(false)
          ["_follow_headers":protected] => array(1) {
            [0] => string(13) "Authorization"
          }
          ["_strict_redirect":protected] => bool(true)
          ["_header_callbacks":protected] => array(1) {
            ["Location"] => string(34) "Request_Client::on_header_location"
          }
          ["_max_callback_depth":protected] => int(5)
          ["_callback_depth":protected] => int(1)
          ["_callback_params":protected] => array(0) {
          }
        }
      }
      ["response"] => object(Response)#44 (5) {
        ["_status":protected] => int(200)
        ["_header":protected] => object(HTTP_Header)#49 (5) {
          ["_accept_content":protected] => NULL
          ["_accept_charset":protected] => NULL
          ["_accept_encoding":protected] => NULL
          ["_accept_language":protected] => NULL
          ["storage":"ArrayObject":private] => array(0) {
          }
        }
        ["_body":protected] => string(0) ""
        ["_cookies":protected] => array(0) {
        }
        ["_protocol":protected] => 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');103  
  12. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request ( arguments )

    0
    object(Request)#57 (19) {
      ["_requested_with":protected] => NULL
      ["_method":protected] => string(3) "GET"
      ["_protocol":protected] => NULL
      ["_secure":protected] => bool(false)
      ["_referrer":protected] => NULL
      ["_route":protected] => object(Route)#15 (5) {
        ["_filters":protected] => array(0) {
        }
        ["_uri":protected] => string(114) "<directory>(/<controller>(/<action>(/<param1>(/<param2>(/<param3>(/<param4>(/<param5>(/<param6>(/<param7>)))))))))"
        ["_regex":protected] => array(1) {
          ["directory"] => string(19) "[a-zA-Z]+/[a-zA-Z]+"
        }
        ["_defaults":protected] => array(2) {
          ["action"] => string(5) "index"
          ["host"] => bool(false)
        }
        ["_route_regex":protected] => string(314) "#^(?P<directory>[a-zA-Z]+/[a-zA-Z]+)(?:/(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<param1>[^/.,;?\n]++)(?:/(?P<param2>[^/.,;?\n]++)(?:/(?P<param3>[^/.,;?\n]++)(?:/(?P<param4>[^/.,;?\n]++)(?:/(?P<param5>[^/.,;?\n]++)(?:/(?P<param6>[^/.,;?\n]++)(?:/(?P<param7>[^/.,;?\n]++))?)?)?)?)?)?)?)?)?$#uD"
      }
      ["_routes":protected] => array(0) {
      }
      ["_header":protected] => object(HTTP_Header)#46 (5) {
        ["_accept_content":protected] => NULL
        ["_accept_charset":protected] => NULL
        ["_accept_encoding":protected] => NULL
        ["_accept_language":protected] => NULL
        ["storage":"ArrayObject":private] => array(0) {
        }
      }
      ["_body":protected] => NULL
      ["_directory":protected] => string(15) "Frontend/Global"
      ["_controller":protected] => string(3) "Ads"
      ["_action":protected] => string(5) "index"
      ["_uri":protected] => string(36) "Frontend/Global/ads/index/homecenter"
      ["_external":protected] => bool(false)
      ["_params":protected] => array(2) {
        ["param1"] => string(10) "homecenter"
        ["host"] => bool(false)
      }
      ["_get":protected] => array(0) {
      }
      ["_post":protected] => array(0) {
      }
      ["_cookies":protected] => array(0) {
      }
      ["_client":protected] => object(Request_Client_Internal)#48 (9) {
        ["_previous_environment":protected] => NULL
        ["_cache":protected] => NULL
        ["_follow":protected] => bool(false)
        ["_follow_headers":protected] => array(1) {
          [0] => string(13) "Authorization"
        }
        ["_strict_redirect":protected] => bool(true)
        ["_header_callbacks":protected] => array(1) {
          ["Location"] => string(34) "Request_Client::on_header_location"
        }
        ["_max_callback_depth":protected] => int(5)
        ["_callback_depth":protected] => int(1)
        ["_callback_params":protected] => array(0) {
        }
      }
    }
    
    1
    object(Response)#44 (5) {
      ["_status":protected] => int(200)
      ["_header":protected] => object(HTTP_Header)#49 (5) {
        ["_accept_content":protected] => NULL
        ["_accept_charset":protected] => NULL
        ["_accept_encoding":protected] => NULL
        ["_accept_language":protected] => NULL
        ["storage":"ArrayObject":private] => array(0) {
        }
      }
      ["_body":protected] => string(0) ""
      ["_cookies":protected] => array(0) {
      }
      ["_protocol":protected] => 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 callbacks117 		foreach ($this->header_callbacks() as $header => $callback)118 		{119 			if ($response->headers($header))120  
  13. SYSPATH/classes/Kohana/Request.php [ 990 ] » Kohana_Request_Client->execute ( arguments )

    0
    object(Request)#57 (19) {
      ["_requested_with":protected] => NULL
      ["_method":protected] => string(3) "GET"
      ["_protocol":protected] => NULL
      ["_secure":protected] => bool(false)
      ["_referrer":protected] => NULL
      ["_route":protected] => object(Route)#15 (5) {
        ["_filters":protected] => array(0) {
        }
        ["_uri":protected] => string(114) "<directory>(/<controller>(/<action>(/<param1>(/<param2>(/<param3>(/<param4>(/<param5>(/<param6>(/<param7>)))))))))"
        ["_regex":protected] => array(1) {
          ["directory"] => string(19) "[a-zA-Z]+/[a-zA-Z]+"
        }
        ["_defaults":protected] => array(2) {
          ["action"] => string(5) "index"
          ["host"] => bool(false)
        }
        ["_route_regex":protected] => string(314) "#^(?P<directory>[a-zA-Z]+/[a-zA-Z]+)(?:/(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<param1>[^/.,;?\n]++)(?:/(?P<param2>[^/.,;?\n]++)(?:/(?P<param3>[^/.,;?\n]++)(?:/(?P<param4>[^/.,;?\n]++)(?:/(?P<param5>[^/.,;?\n]++)(?:/(?P<param6>[^/.,;?\n]++)(?:/(?P<param7>[^/.,;?\n]++))?)?)?)?)?)?)?)?)?$#uD"
      }
      ["_routes":protected] => array(0) {
      }
      ["_header":protected] => object(HTTP_Header)#46 (5) {
        ["_accept_content":protected] => NULL
        ["_accept_charset":protected] => NULL
        ["_accept_encoding":protected] => NULL
        ["_accept_language":protected] => NULL
        ["storage":"ArrayObject":private] => array(0) {
        }
      }
      ["_body":protected] => NULL
      ["_directory":protected] => string(15) "Frontend/Global"
      ["_controller":protected] => string(3) "Ads"
      ["_action":protected] => string(5) "index"
      ["_uri":protected] => string(36) "Frontend/Global/ads/index/homecenter"
      ["_external":protected] => bool(false)
      ["_params":protected] => array(2) {
        ["param1"] => string(10) "homecenter"
        ["host"] => bool(false)
      }
      ["_get":protected] => array(0) {
      }
      ["_post":protected] => array(0) {
      }
      ["_cookies":protected] => array(0) {
      }
      ["_client":protected] => object(Request_Client_Internal)#48 (9) {
        ["_previous_environment":protected] => NULL
        ["_cache":protected] => NULL
        ["_follow":protected] => bool(false)
        ["_follow_headers":protected] => array(1) {
          [0] => string(13) "Authorization"
        }
        ["_strict_redirect":protected] => bool(true)
        ["_header_callbacks":protected] => array(1) {
          ["Location"] => string(34) "Request_Client::on_header_location"
        }
        ["_max_callback_depth":protected] => int(5)
        ["_callback_depth":protected] => int(1)
        ["_callback_params":protected] => 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.996 
  14. APPPATH/views/frontend/default/contents/global/home.php [ 4 ] » Kohana_Request->execute ( )

    -1 <?php echo Request::factory('Frontend/Global/header/index')->execute(); ?> 0 <?php echo Request::factory('Frontend/Global/ads/index/slider/')->execute(); ?>1 <?php echo Request::factory('Frontend/News/focus/home')->execute(); ?>2 <?php echo Request::factory('Frontend/Global/ads/index/homecenter/')->execute(); ?>3     <div class="box-news clearfix">4 <?php echo Request::factory('Frontend/News/List/withcat/8')->execute(); ?>5 <?php echo Request::factory('Frontend/News/List/tabcat')->execute(); ?>6     </div>7     <div class="clear"></div>8  
  15. SYSPATH/classes/Kohana/View.php [ 61 ] » include ( arguments )

    0 /data/wcode/ttnn2013/application/views/frontend/default/contents/global/home.php
    56 		ob_start();57  58 		try59 		{60 			// Load the view within the current scope61 			include $kohana_view_filename;62 		}63 		catch (Exception $e)64 		{65 			// Delete the output buffer66 			ob_end_clean();67  
  16. SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture ( arguments )

    0 /data/wcode/ttnn2013/application/views/frontend/default/contents/global/home.php
    1
    array(0) {
    }
    
    343 		{344 			throw new View_Exception('You must set the file to use within your view before rendering');345 		}346  347 		// Combine local and global data and capture the output348 		return View::capture($this->_file, $this->_data);349 	}350  351 } // End View352  
  17. SYSPATH/classes/Kohana/View.php [ 228 ] » Kohana_View->render ( )

    223 	 */224 	public function __toString()225 	{226 		try227 		{228 			return $this->render();229 		}230 		catch (Exception $e)231 		{232 			/**233 			 * Display the exception message.234 
  18. SYSPATH/classes/Kohana/Response.php [ 160 ] » Kohana_View->__toString ( )

    155 	public function body($content = NULL)156 	{157 		if ($content === NULL)158 			return $this->_body;159  160 		$this->_body = (string) $content;161 		return $this;162 	}163  164 	/**165 	 * Gets or sets the HTTP protocol. The standard protocol to use166 
  19. APPPATH/classes/Controller/Frontend/Global/Home.php [ 24 ] » Kohana_Response->body ( arguments )

    0
    object(View)#40 (2) {
      ["_file":protected] => string(80) "/data/wcode/ttnn2013/application/views/frontend/default/contents/global/home.php"
      ["_data":protected] => array(0) {
      }
    }
    
    19         if ($_REQUEST['lang']) {20             $_SESSION['language'] = $_REQUEST['lang'];21             $selectedLanguage = $_REQUEST['lang'];22         }23  24         $this->response->body(View::factory('frontend/default/contents/' . $this->module_name . '/' . $this->default_action . ''));25     }26  27 }
  20. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Frontend_Global_Home->action_index ( )

    79 				array(':uri' => $this->request->uri())80 			)->request($this->request);81 		}82  83 		// Execute the action itself84 		$this->{$action}();85  86 		// Execute the "after action" method87 		$this->after();88  89 		// Return the response90  
  21. {PHP internal call} » Kohana_Controller->execute ( )

  22. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke ( arguments )

    0
    object(Controller_Frontend_Global_Home)#38 (5) {
      ["module_name":"Controller_Frontend_Global_Home":private] => string(6) "global"
      ["object_name":"Controller_Frontend_Global_Home":private] => string(4) "home"
      ["default_action":"Controller_Frontend_Global_Home":private] => string(4) "home"
      ["request"] => object(Request)#32 (19) {
        ["_requested_with":protected] => NULL
        ["_method":protected] => string(3) "GET"
        ["_protocol":protected] => string(8) "HTTP/1.1"
        ["_secure":protected] => bool(false)
        ["_referrer":protected] => NULL
        ["_route":protected] => object(Route)#11 (5) {
          ["_filters":protected] => array(0) {
          }
          ["_uri":protected] => string(0) ""
          ["_regex":protected] => array(0) {
          }
          ["_defaults":protected] => array(3) {
            ["directory"] => string(15) "Frontend/Global"
            ["controller"] => string(4) "home"
            ["action"] => string(5) "index"
          }
          ["_route_regex":protected] => string(6) "#^$#uD"
        }
        ["_routes":protected] => array(0) {
        }
        ["_header":protected] => object(HTTP_Header)#33 (5) {
          ["_accept_content":protected] => NULL
          ["_accept_charset":protected] => NULL
          ["_accept_encoding":protected] => NULL
          ["_accept_language":protected] => NULL
          ["storage":"ArrayObject":private] => array(0) {
          }
        }
        ["_body":protected] => NULL
        ["_directory":protected] => string(15) "Frontend/Global"
        ["_controller":protected] => string(4) "Home"
        ["_action":protected] => string(5) "index"
        ["_uri":protected] => string(0) ""
        ["_external":protected] => bool(false)
        ["_params":protected] => array(0) {
        }
        ["_get":protected] => array(0) {
        }
        ["_post":protected] => array(0) {
        }
        ["_cookies":protected] => array(0) {
        }
        ["_client":protected] => object(Request_Client_Internal)#34 (9) {
          ["_previous_environment":protected] => NULL
          ["_cache":protected] => NULL
          ["_follow":protected] => bool(false)
          ["_follow_headers":protected] => array(1) {
            [0] => string(13) "Authorization"
          }
          ["_strict_redirect":protected] => bool(true)
          ["_header_callbacks":protected] => array(1) {
            ["Location"] => string(34) "Request_Client::on_header_location"
          }
          ["_max_callback_depth":protected] => int(5)
          ["_callback_depth":protected] => int(1)
          ["_callback_params":protected] => array(0) {
          }
        }
      }
      ["response"] => object(Response)#35 (5) {
        ["_status":protected] => int(200)
        ["_header":protected] => object(HTTP_Header)#36 (5) {
          ["_accept_content":protected] => NULL
          ["_accept_charset":protected] => NULL
          ["_accept_encoding":protected] => NULL
          ["_accept_language":protected] => NULL
          ["storage":"ArrayObject":private] => array(0) {
          }
        }
        ["_body":protected] => string(0) ""
        ["_cookies":protected] => array(0) {
        }
        ["_protocol":protected] => 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');103  
  23. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request ( arguments )

    0
    object(Request)#32 (19) {
      ["_requested_with":protected] => NULL
      ["_method":protected] => string(3) "GET"
      ["_protocol":protected] => string(8) "HTTP/1.1"
      ["_secure":protected] => bool(false)
      ["_referrer":protected] => NULL
      ["_route":protected] => object(Route)#11 (5) {
        ["_filters":protected] => array(0) {
        }
        ["_uri":protected] => string(0) ""
        ["_regex":protected] => array(0) {
        }
        ["_defaults":protected] => array(3) {
          ["directory"] => string(15) "Frontend/Global"
          ["controller"] => string(4) "home"
          ["action"] => string(5) "index"
        }
        ["_route_regex":protected] => string(6) "#^$#uD"
      }
      ["_routes":protected] => array(0) {
      }
      ["_header":protected] => object(HTTP_Header)#33 (5) {
        ["_accept_content":protected] => NULL
        ["_accept_charset":protected] => NULL
        ["_accept_encoding":protected] => NULL
        ["_accept_language":protected] => NULL
        ["storage":"ArrayObject":private] => array(0) {
        }
      }
      ["_body":protected] => NULL
      ["_directory":protected] => string(15) "Frontend/Global"
      ["_controller":protected] => string(4) "Home"
      ["_action":protected] => string(5) "index"
      ["_uri":protected] => string(0) ""
      ["_external":protected] => bool(false)
      ["_params":protected] => array(0) {
      }
      ["_get":protected] => array(0) {
      }
      ["_post":protected] => array(0) {
      }
      ["_cookies":protected] => array(0) {
      }
      ["_client":protected] => object(Request_Client_Internal)#34 (9) {
        ["_previous_environment":protected] => NULL
        ["_cache":protected] => NULL
        ["_follow":protected] => bool(false)
        ["_follow_headers":protected] => array(1) {
          [0] => string(13) "Authorization"
        }
        ["_strict_redirect":protected] => bool(true)
        ["_header_callbacks":protected] => array(1) {
          ["Location"] => string(34) "Request_Client::on_header_location"
        }
        ["_max_callback_depth":protected] => int(5)
        ["_callback_depth":protected] => int(1)
        ["_callback_params":protected] => array(0) {
        }
      }
    }
    
    1
    object(Response)#35 (5) {
      ["_status":protected] => int(200)
      ["_header":protected] => object(HTTP_Header)#36 (5) {
        ["_accept_content":protected] => NULL
        ["_accept_charset":protected] => NULL
        ["_accept_encoding":protected] => NULL
        ["_accept_language":protected] => NULL
        ["storage":"ArrayObject":private] => array(0) {
        }
      }
      ["_body":protected] => string(0) ""
      ["_cookies":protected] => array(0) {
      }
      ["_protocol":protected] => 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 callbacks117 		foreach ($this->header_callbacks() as $header => $callback)118 		{119 			if ($response->headers($header))120  
  24. SYSPATH/classes/Kohana/Request.php [ 990 ] » Kohana_Request_Client->execute ( arguments )

    0
    object(Request)#32 (19) {
      ["_requested_with":protected] => NULL
      ["_method":protected] => string(3) "GET"
      ["_protocol":protected] => string(8) "HTTP/1.1"
      ["_secure":protected] => bool(false)
      ["_referrer":protected] => NULL
      ["_route":protected] => object(Route)#11 (5) {
        ["_filters":protected] => array(0) {
        }
        ["_uri":protected] => string(0) ""
        ["_regex":protected] => array(0) {
        }
        ["_defaults":protected] => array(3) {
          ["directory"] => string(15) "Frontend/Global"
          ["controller"] => string(4) "home"
          ["action"] => string(5) "index"
        }
        ["_route_regex":protected] => string(6) "#^$#uD"
      }
      ["_routes":protected] => array(0) {
      }
      ["_header":protected] => object(HTTP_Header)#33 (5) {
        ["_accept_content":protected] => NULL
        ["_accept_charset":protected] => NULL
        ["_accept_encoding":protected] => NULL
        ["_accept_language":protected] => NULL
        ["storage":"ArrayObject":private] => array(0) {
        }
      }
      ["_body":protected] => NULL
      ["_directory":protected] => string(15) "Frontend/Global"
      ["_controller":protected] => string(4) "Home"
      ["_action":protected] => string(5) "index"
      ["_uri":protected] => string(0) ""
      ["_external":protected] => bool(false)
      ["_params":protected] => array(0) {
      }
      ["_get":protected] => array(0) {
      }
      ["_post":protected] => array(0) {
      }
      ["_cookies":protected] => array(0) {
      }
      ["_client":protected] => object(Request_Client_Internal)#34 (9) {
        ["_previous_environment":protected] => NULL
        ["_cache":protected] => NULL
        ["_follow":protected] => bool(false)
        ["_follow_headers":protected] => array(1) {
          [0] => string(13) "Authorization"
        }
        ["_strict_redirect":protected] => bool(true)
        ["_header_callbacks":protected] => array(1) {
          ["Location"] => string(34) "Request_Client::on_header_location"
        }
        ["_max_callback_depth":protected] => int(5)
        ["_callback_depth":protected] => int(1)
        ["_callback_params":protected] => 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.996 
  25. 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 }122  
Database_Exception [ ]
 

MODPATH/profilertoolbar/classes/Kohana/Database/MySQL.php [ 108 ]

103 	protected function _select_db($database)104 	{105 		if ( ! mysql_select_db($database, $this->_connection))106 		{107 			// Unable to select database108 			throw new Database_Exception(':error',109 				array(':error' => mysql_error($this->_connection)),110 				mysql_errno($this->_connection));111 		}112  113 		Database_MySQL::$_current_databases[$this->_connection_id] = $database;114  
  1. MODPATH/profilertoolbar/classes/Kohana/Database/MySQL.php [ 75 ] » Kohana_Database_MySQL->_select_db ( arguments )

    0 ttnn2013new
    70 		}71  72 		// \xFF is a better delimiter, but the PHP driver uses underscore73 		$this->_connection_id = sha1($hostname.'_'.$username.'_'.$password);74  75 		$this->_select_db($database);76  77 		if ( ! empty($this->_config['charset']))78 		{79 			// Set the character set80 			$this->set_charset($this->_config['charset']);81  
  2. MODPATH/profilertoolbar/classes/Kohana/Database/MySQL.php [ 439 ] » Kohana_Database_MySQL->connect ( )

    434 	}435  436 	public function escape($value)437 	{438 		// Make sure the database is connected439 		$this->_connection or $this->connect();440  441 		if (($value = mysql_real_escape_string( (string) $value, $this->_connection)) === FALSE)442 		{443 			throw new Database_Exception(':error',444 				array(':error' => mysql_error($this->_connection)),445  
  3. MODPATH/database/classes/Kohana/Database.php [ 478 ] » Kohana_Database_MySQL->escape ( arguments )

    0 8
    473 		{474 			// Convert to non-locale aware float to prevent possible commas475 			return sprintf('%F', $value);476 		}477  478 		return $this->escape($value);479 	}480  481 	/**482 	 * Quote a database column name and add the table prefix if needed.483 	 *484 
  4. MODPATH/database/classes/Kohana/Database/Query/Builder.php [ 116 ] » Kohana_Database->quote ( arguments )

    0 8
    111 						$value = $min.' AND '.$max;112 					}113 					elseif ((is_string($value) AND array_key_exists($value, $this->_parameters)) === FALSE)114 					{115 						// Quote the value, it is not a parameter116 						$value = $db->quote($value);117 					}118  119 					if ($column)120 					{121 						if (is_array($column))122  
  5. MODPATH/database/classes/Kohana/Database/Query/Builder/Select.php [ 372 ] » Kohana_Database_Query_Builder->_compile_conditions ( arguments )

    0
    object(Database_MySQL)#56 (6) {
      ["_connection_id":protected] => string(40) "515f69d89e788c3a432a9536e33c4cd1885e69b7"
      ["_identifier":protected] => string(1) "`"
      ["last_query"] => NULL
      ["_instance":protected] => string(7) "default"
      ["_connection":protected] => bool(false)
      ["_config":protected] => array(5) {
        ["type"] => string(5) "MySQL"
        ["connection"] => array(3) {
          ["hostname"] => string(11) "10.33.21.11"
          ["database"] => string(11) "ttnn2013new"
          ["persistent"] => bool(false)
        }
        ["table_prefix"] => string(0) ""
        ["charset"] => string(4) "utf8"
        ["caching"] => bool(false)
      }
    }
    
    1
    array(6) {
      [0] => array(1) {
        ["AND"] => array(3) {
          [0] => string(12) "artl.lang_id"
          [1] => string(1) "="
          [2] => int(1)
        }
      }
      [1] => array(1) {
        ["AND"] => string(1) "("
      }
      [2] => array(1) {
        ["AND"] => array(3) {
          [0] => string(10) "art.cat_id"
          [1] => string(1) "="
          [2] => string(1) "8"
        }
      }
      [3] => array(1) {
        ["OR"] => array(3) {
          [0] => string(12) "art.cat_list"
          [1] => string(4) "LIKE"
          [2] => string(5) "%-8-%"
        }
      }
      [4] => array(1) {
        ["AND"] => string(1) ")"
      }
      [5] => array(1) {
        ["AND"] => array(3) {
          [0] => string(18) "art.article_active"
          [1] => string(1) "="
          [2] => int(1)
        }
      }
    }
    
    367 		}368  369 		if ( ! empty($this->_where))370 		{371 			// Add selection conditions372 			$query .= ' WHERE '.$this->_compile_conditions($db, $this->_where);373 		}374  375 		if ( ! empty($this->_group_by))376 		{377 			// Add grouping378  
  6. MODPATH/database/classes/Kohana/Database/Query.php [ 234 ] » Kohana_Database_Query_Builder_Select->compile ( arguments )

    0
    object(Database_MySQL)#56 (6) {
      ["_connection_id":protected] => string(40) "515f69d89e788c3a432a9536e33c4cd1885e69b7"
      ["_identifier":protected] => string(1) "`"
      ["last_query"] => NULL
      ["_instance":protected] => string(7) "default"
      ["_connection":protected] => bool(false)
      ["_config":protected] => array(5) {
        ["type"] => string(5) "MySQL"
        ["connection"] => array(3) {
          ["hostname"] => string(11) "10.33.21.11"
          ["database"] => string(11) "ttnn2013new"
          ["persistent"] => bool(false)
        }
        ["table_prefix"] => string(0) ""
        ["charset"] => string(4) "utf8"
        ["caching"] => bool(false)
      }
    }
    
    229 		{230 			$object_params = $this->_object_params;231 		}232  233 		// Compile the SQL query234 		$sql = $this->compile($db);235  236 		if ($this->_lifetime !== NULL AND $this->_type === Database::SELECT)237 		{238 			// Set the cache key based on the database instance name and SQL239 			$cache_key = 'Database::query("'.$db.'", "'.$sql.'")';240  
  7. APPPATH/classes/Model/Articlenews.php [ 424 ] » Kohana_Database_Query->execute ( )

    419             $query = Debug::vars((string) $result);420  421             if($return)422                 $result = $result->execute()->as_array();423             else{424                 $result = $result->execute();425             }426  427         }        428  429 //        echo Database::instance()->last_query.'<br>';430  
  8. APPPATH/classes/Controller/Frontend/News/List.php [ 96 ] » Model_Articlenews->getList ( arguments )

    0 1
    1
    array(2) {
      ["cat_id"] => string(1) "8"
      ["article_active"] => int(1)
    }
    
    2
    array(3) {
      ["article_created"] => string(4) "DESC"
      ["article_order"] => string(3) "ASC"
      ["article_id"] => string(4) "DESC"
    }
    
    3 5
     91         $where['article_active'] = 1; 92         $order_by['article_created'] = 'DESC'; 93         $order_by['article_order'] = 'ASC'; 94         $order_by[$assign['object_key']] = 'DESC'; 95         $limit = 5; 96         $assign['list'] = $model->getList(1,$where, $order_by, $limit)->as_array(); 97         $assign['list'] = $model->synchronization($assign['list']);        98   99         $this->response->body(View::factory('frontend/default/contents/' . $this->module_name . '/' . $this->default_action . '_withcat')->set('assign', $assign));        100  101     }    102  
  9. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Frontend_News_List->action_withcat ( )

    79 				array(':uri' => $this->request->uri())80 			)->request($this->request);81 		}82  83 		// Execute the action itself84 		$this->{$action}();85  86 		// Execute the "after action" method87 		$this->after();88  89 		// Return the response90  
  10. {PHP internal call} » Kohana_Controller->execute ( )

  11. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke ( arguments )

    0
    object(Controller_Frontend_News_List)#49 (5) {
      ["module_name":"Controller_Frontend_News_List":private] => string(4) "news"
      ["object_name":"Controller_Frontend_News_List":private] => string(7) "article"
      ["default_action":"Controller_Frontend_News_List":private] => string(4) "list"
      ["request"] => object(Request)#50 (19) {
        ["_requested_with":protected] => NULL
        ["_method":protected] => string(3) "GET"
        ["_protocol":protected] => NULL
        ["_secure":protected] => bool(false)
        ["_referrer":protected] => NULL
        ["_route":protected] => object(Route)#15 (5) {
          ["_filters":protected] => array(0) {
          }
          ["_uri":protected] => string(114) "<directory>(/<controller>(/<action>(/<param1>(/<param2>(/<param3>(/<param4>(/<param5>(/<param6>(/<param7>)))))))))"
          ["_regex":protected] => array(1) {
            ["directory"] => string(19) "[a-zA-Z]+/[a-zA-Z]+"
          }
          ["_defaults":protected] => array(2) {
            ["action"] => string(5) "index"
            ["host"] => bool(false)
          }
          ["_route_regex":protected] => string(314) "#^(?P<directory>[a-zA-Z]+/[a-zA-Z]+)(?:/(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<param1>[^/.,;?\n]++)(?:/(?P<param2>[^/.,;?\n]++)(?:/(?P<param3>[^/.,;?\n]++)(?:/(?P<param4>[^/.,;?\n]++)(?:/(?P<param5>[^/.,;?\n]++)(?:/(?P<param6>[^/.,;?\n]++)(?:/(?P<param7>[^/.,;?\n]++))?)?)?)?)?)?)?)?)?$#uD"
        }
        ["_routes":protected] => array(0) {
        }
        ["_header":protected] => object(HTTP_Header)#42 (5) {
          ["_accept_content":protected] => NULL
          ["_accept_charset":protected] => NULL
          ["_accept_encoding":protected] => NULL
          ["_accept_language":protected] => NULL
          ["storage":"ArrayObject":private] => array(0) {
          }
        }
        ["_body":protected] => NULL
        ["_directory":protected] => string(13) "Frontend/News"
        ["_controller":protected] => string(4) "List"
        ["_action":protected] => string(7) "withcat"
        ["_uri":protected] => string(28) "Frontend/News/List/withcat/8"
        ["_external":protected] => bool(false)
        ["_params":protected] => array(2) {
          ["param1"] => string(1) "8"
          ["host"] => bool(false)
        }
        ["_get":protected] => array(0) {
        }
        ["_post":protected] => array(0) {
        }
        ["_cookies":protected] => array(0) {
        }
        ["_client":protected] => object(Request_Client_Internal)#57 (9) {
          ["_previous_environment":protected] => NULL
          ["_cache":protected] => NULL
          ["_follow":protected] => bool(false)
          ["_follow_headers":protected] => array(1) {
            [0] => string(13) "Authorization"
          }
          ["_strict_redirect":protected] => bool(true)
          ["_header_callbacks":protected] => array(1) {
            ["Location"] => string(34) "Request_Client::on_header_location"
          }
          ["_max_callback_depth":protected] => int(5)
          ["_callback_depth":protected] => int(1)
          ["_callback_params":protected] => array(0) {
          }
        }
      }
      ["response"] => object(Response)#48 (5) {
        ["_status":protected] => int(200)
        ["_header":protected] => object(HTTP_Header)#46 (5) {
          ["_accept_content":protected] => NULL
          ["_accept_charset":protected] => NULL
          ["_accept_encoding":protected] => NULL
          ["_accept_language":protected] => NULL
          ["storage":"ArrayObject":private] => array(0) {
          }
        }
        ["_body":protected] => string(0) ""
        ["_cookies":protected] => array(0) {
        }
        ["_protocol":protected] => 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');103  
  12. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request ( arguments )

    0
    object(Request)#50 (19) {
      ["_requested_with":protected] => NULL
      ["_method":protected] => string(3) "GET"
      ["_protocol":protected] => NULL
      ["_secure":protected] => bool(false)
      ["_referrer":protected] => NULL
      ["_route":protected] => object(Route)#15 (5) {
        ["_filters":protected] => array(0) {
        }
        ["_uri":protected] => string(114) "<directory>(/<controller>(/<action>(/<param1>(/<param2>(/<param3>(/<param4>(/<param5>(/<param6>(/<param7>)))))))))"
        ["_regex":protected] => array(1) {
          ["directory"] => string(19) "[a-zA-Z]+/[a-zA-Z]+"
        }
        ["_defaults":protected] => array(2) {
          ["action"] => string(5) "index"
          ["host"] => bool(false)
        }
        ["_route_regex":protected] => string(314) "#^(?P<directory>[a-zA-Z]+/[a-zA-Z]+)(?:/(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<param1>[^/.,;?\n]++)(?:/(?P<param2>[^/.,;?\n]++)(?:/(?P<param3>[^/.,;?\n]++)(?:/(?P<param4>[^/.,;?\n]++)(?:/(?P<param5>[^/.,;?\n]++)(?:/(?P<param6>[^/.,;?\n]++)(?:/(?P<param7>[^/.,;?\n]++))?)?)?)?)?)?)?)?)?$#uD"
      }
      ["_routes":protected] => array(0) {
      }
      ["_header":protected] => object(HTTP_Header)#42 (5) {
        ["_accept_content":protected] => NULL
        ["_accept_charset":protected] => NULL
        ["_accept_encoding":protected] => NULL
        ["_accept_language":protected] => NULL
        ["storage":"ArrayObject":private] => array(0) {
        }
      }
      ["_body":protected] => NULL
      ["_directory":protected] => string(13) "Frontend/News"
      ["_controller":protected] => string(4) "List"
      ["_action":protected] => string(7) "withcat"
      ["_uri":protected] => string(28) "Frontend/News/List/withcat/8"
      ["_external":protected] => bool(false)
      ["_params":protected] => array(2) {
        ["param1"] => string(1) "8"
        ["host"] => bool(false)
      }
      ["_get":protected] => array(0) {
      }
      ["_post":protected] => array(0) {
      }
      ["_cookies":protected] => array(0) {
      }
      ["_client":protected] => object(Request_Client_Internal)#57 (9) {
        ["_previous_environment":protected] => NULL
        ["_cache":protected] => NULL
        ["_follow":protected] => bool(false)
        ["_follow_headers":protected] => array(1) {
          [0] => string(13) "Authorization"
        }
        ["_strict_redirect":protected] => bool(true)
        ["_header_callbacks":protected] => array(1) {
          ["Location"] => string(34) "Request_Client::on_header_location"
        }
        ["_max_callback_depth":protected] => int(5)
        ["_callback_depth":protected] => int(1)
        ["_callback_params":protected] => array(0) {
        }
      }
    }
    
    1
    object(Response)#48 (5) {
      ["_status":protected] => int(200)
      ["_header":protected] => object(HTTP_Header)#46 (5) {
        ["_accept_content":protected] => NULL
        ["_accept_charset":protected] => NULL
        ["_accept_encoding":protected] => NULL
        ["_accept_language":protected] => NULL
        ["storage":"ArrayObject":private] => array(0) {
        }
      }
      ["_body":protected] => string(0) ""
      ["_cookies":protected] => array(0) {
      }
      ["_protocol":protected] => 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 callbacks117 		foreach ($this->header_callbacks() as $header => $callback)118 		{119 			if ($response->headers($header))120  
  13. SYSPATH/classes/Kohana/Request.php [ 990 ] » Kohana_Request_Client->execute ( arguments )

    0
    object(Request)#50 (19) {
      ["_requested_with":protected] => NULL
      ["_method":protected] => string(3) "GET"
      ["_protocol":protected] => NULL
      ["_secure":protected] => bool(false)
      ["_referrer":protected] => NULL
      ["_route":protected] => object(Route)#15 (5) {
        ["_filters":protected] => array(0) {
        }
        ["_uri":protected] => string(114) "<directory>(/<controller>(/<action>(/<param1>(/<param2>(/<param3>(/<param4>(/<param5>(/<param6>(/<param7>)))))))))"
        ["_regex":protected] => array(1) {
          ["directory"] => string(19) "[a-zA-Z]+/[a-zA-Z]+"
        }
        ["_defaults":protected] => array(2) {
          ["action"] => string(5) "index"
          ["host"] => bool(false)
        }
        ["_route_regex":protected] => string(314) "#^(?P<directory>[a-zA-Z]+/[a-zA-Z]+)(?:/(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<param1>[^/.,;?\n]++)(?:/(?P<param2>[^/.,;?\n]++)(?:/(?P<param3>[^/.,;?\n]++)(?:/(?P<param4>[^/.,;?\n]++)(?:/(?P<param5>[^/.,;?\n]++)(?:/(?P<param6>[^/.,;?\n]++)(?:/(?P<param7>[^/.,;?\n]++))?)?)?)?)?)?)?)?)?$#uD"
      }
      ["_routes":protected] => array(0) {
      }
      ["_header":protected] => object(HTTP_Header)#42 (5) {
        ["_accept_content":protected] => NULL
        ["_accept_charset":protected] => NULL
        ["_accept_encoding":protected] => NULL
        ["_accept_language":protected] => NULL
        ["storage":"ArrayObject":private] => array(0) {
        }
      }
      ["_body":protected] => NULL
      ["_directory":protected] => string(13) "Frontend/News"
      ["_controller":protected] => string(4) "List"
      ["_action":protected] => string(7) "withcat"
      ["_uri":protected] => string(28) "Frontend/News/List/withcat/8"
      ["_external":protected] => bool(false)
      ["_params":protected] => array(2) {
        ["param1"] => string(1) "8"
        ["host"] => bool(false)
      }
      ["_get":protected] => array(0) {
      }
      ["_post":protected] => array(0) {
      }
      ["_cookies":protected] => array(0) {
      }
      ["_client":protected] => object(Request_Client_Internal)#57 (9) {
        ["_previous_environment":protected] => NULL
        ["_cache":protected] => NULL
        ["_follow":protected] => bool(false)
        ["_follow_headers":protected] => array(1) {
          [0] => string(13) "Authorization"
        }
        ["_strict_redirect":protected] => bool(true)
        ["_header_callbacks":protected] => array(1) {
          ["Location"] => string(34) "Request_Client::on_header_location"
        }
        ["_max_callback_depth":protected] => int(5)
        ["_callback_depth":protected] => int(1)
        ["_callback_params":protected] => 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.996 
  14. APPPATH/views/frontend/default/contents/global/home.php [ 6 ] » Kohana_Request->execute ( )

     1 <?php echo Request::factory('Frontend/Global/header/index')->execute(); ?>  2 <?php echo Request::factory('Frontend/Global/ads/index/slider/')->execute(); ?> 3 <?php echo Request::factory('Frontend/News/focus/home')->execute(); ?> 4 <?php echo Request::factory('Frontend/Global/ads/index/homecenter/')->execute(); ?> 5     <div class="box-news clearfix"> 6 <?php echo Request::factory('Frontend/News/List/withcat/8')->execute(); ?> 7 <?php echo Request::factory('Frontend/News/List/tabcat')->execute(); ?> 8     </div> 9     <div class="clear"></div>10 <?php echo Request::factory('Frontend/Global/ads/index/homefooter/')->execute(); ?>11     <div class="line-bot"></div>    12  
  15. SYSPATH/classes/Kohana/View.php [ 61 ] » include ( arguments )

    0 /data/wcode/ttnn2013/application/views/frontend/default/contents/global/home.php
    56 		ob_start();57  58 		try59 		{60 			// Load the view within the current scope61 			include $kohana_view_filename;62 		}63 		catch (Exception $e)64 		{65 			// Delete the output buffer66 			ob_end_clean();67  
  16. SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture ( arguments )

    0 /data/wcode/ttnn2013/application/views/frontend/default/contents/global/home.php
    1
    array(0) {
    }
    
    343 		{344 			throw new View_Exception('You must set the file to use within your view before rendering');345 		}346  347 		// Combine local and global data and capture the output348 		return View::capture($this->_file, $this->_data);349 	}350  351 } // End View352  
  17. SYSPATH/classes/Kohana/View.php [ 228 ] » Kohana_View->render ( )

    223 	 */224 	public function __toString()225 	{226 		try227 		{228 			return $this->render();229 		}230 		catch (Exception $e)231 		{232 			/**233 			 * Display the exception message.234 
  18. SYSPATH/classes/Kohana/Response.php [ 160 ] » Kohana_View->__toString ( )

    155 	public function body($content = NULL)156 	{157 		if ($content === NULL)158 			return $this->_body;159  160 		$this->_body = (string) $content;161 		return $this;162 	}163  164 	/**165 	 * Gets or sets the HTTP protocol. The standard protocol to use166 
  19. APPPATH/classes/Controller/Frontend/Global/Home.php [ 24 ] » Kohana_Response->body ( arguments )

    0
    object(View)#40 (2) {
      ["_file":protected] => string(80) "/data/wcode/ttnn2013/application/views/frontend/default/contents/global/home.php"
      ["_data":protected] => array(0) {
      }
    }
    
    19         if ($_REQUEST['lang']) {20             $_SESSION['language'] = $_REQUEST['lang'];21             $selectedLanguage = $_REQUEST['lang'];22         }23  24         $this->response->body(View::factory('frontend/default/contents/' . $this->module_name . '/' . $this->default_action . ''));25     }26  27 }
  20. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Frontend_Global_Home->action_index ( )

    79 				array(':uri' => $this->request->uri())80 			)->request($this->request);81 		}82  83 		// Execute the action itself84 		$this->{$action}();85  86 		// Execute the "after action" method87 		$this->after();88  89 		// Return the response90  
  21. {PHP internal call} » Kohana_Controller->execute ( )

  22. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke ( arguments )

    0
    object(Controller_Frontend_Global_Home)#38 (5) {
      ["module_name":"Controller_Frontend_Global_Home":private] => string(6) "global"
      ["object_name":"Controller_Frontend_Global_Home":private] => string(4) "home"
      ["default_action":"Controller_Frontend_Global_Home":private] => string(4) "home"
      ["request"] => object(Request)#32 (19) {
        ["_requested_with":protected] => NULL
        ["_method":protected] => string(3) "GET"
        ["_protocol":protected] => string(8) "HTTP/1.1"
        ["_secure":protected] => bool(false)
        ["_referrer":protected] => NULL
        ["_route":protected] => object(Route)#11 (5) {
          ["_filters":protected] => array(0) {
          }
          ["_uri":protected] => string(0) ""
          ["_regex":protected] => array(0) {
          }
          ["_defaults":protected] => array(3) {
            ["directory"] => string(15) "Frontend/Global"
            ["controller"] => string(4) "home"
            ["action"] => string(5) "index"
          }
          ["_route_regex":protected] => string(6) "#^$#uD"
        }
        ["_routes":protected] => array(0) {
        }
        ["_header":protected] => object(HTTP_Header)#33 (5) {
          ["_accept_content":protected] => NULL
          ["_accept_charset":protected] => NULL
          ["_accept_encoding":protected] => NULL
          ["_accept_language":protected] => NULL
          ["storage":"ArrayObject":private] => array(0) {
          }
        }
        ["_body":protected] => NULL
        ["_directory":protected] => string(15) "Frontend/Global"
        ["_controller":protected] => string(4) "Home"
        ["_action":protected] => string(5) "index"
        ["_uri":protected] => string(0) ""
        ["_external":protected] => bool(false)
        ["_params":protected] => array(0) {
        }
        ["_get":protected] => array(0) {
        }
        ["_post":protected] => array(0) {
        }
        ["_cookies":protected] => array(0) {
        }
        ["_client":protected] => object(Request_Client_Internal)#34 (9) {
          ["_previous_environment":protected] => NULL
          ["_cache":protected] => NULL
          ["_follow":protected] => bool(false)
          ["_follow_headers":protected] => array(1) {
            [0] => string(13) "Authorization"
          }
          ["_strict_redirect":protected] => bool(true)
          ["_header_callbacks":protected] => array(1) {
            ["Location"] => string(34) "Request_Client::on_header_location"
          }
          ["_max_callback_depth":protected] => int(5)
          ["_callback_depth":protected] => int(1)
          ["_callback_params":protected] => array(0) {
          }
        }
      }
      ["response"] => object(Response)#35 (5) {
        ["_status":protected] => int(200)
        ["_header":protected] => object(HTTP_Header)#36 (5) {
          ["_accept_content":protected] => NULL
          ["_accept_charset":protected] => NULL
          ["_accept_encoding":protected] => NULL
          ["_accept_language":protected] => NULL
          ["storage":"ArrayObject":private] => array(0) {
          }
        }
        ["_body":protected] => string(0) ""
        ["_cookies":protected] => array(0) {
        }
        ["_protocol":protected] => 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');103  
  23. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request ( arguments )

    0
    object(Request)#32 (19) {
      ["_requested_with":protected] => NULL
      ["_method":protected] => string(3) "GET"
      ["_protocol":protected] => string(8) "HTTP/1.1"
      ["_secure":protected] => bool(false)
      ["_referrer":protected] => NULL
      ["_route":protected] => object(Route)#11 (5) {
        ["_filters":protected] => array(0) {
        }
        ["_uri":protected] => string(0) ""
        ["_regex":protected] => array(0) {
        }
        ["_defaults":protected] => array(3) {
          ["directory"] => string(15) "Frontend/Global"
          ["controller"] => string(4) "home"
          ["action"] => string(5) "index"
        }
        ["_route_regex":protected] => string(6) "#^$#uD"
      }
      ["_routes":protected] => array(0) {
      }
      ["_header":protected] => object(HTTP_Header)#33 (5) {
        ["_accept_content":protected] => NULL
        ["_accept_charset":protected] => NULL
        ["_accept_encoding":protected] => NULL
        ["_accept_language":protected] => NULL
        ["storage":"ArrayObject":private] => array(0) {
        }
      }
      ["_body":protected] => NULL
      ["_directory":protected] => string(15) "Frontend/Global"
      ["_controller":protected] => string(4) "Home"
      ["_action":protected] => string(5) "index"
      ["_uri":protected] => string(0) ""
      ["_external":protected] => bool(false)
      ["_params":protected] => array(0) {
      }
      ["_get":protected] => array(0) {
      }
      ["_post":protected] => array(0) {
      }
      ["_cookies":protected] => array(0) {
      }
      ["_client":protected] => object(Request_Client_Internal)#34 (9) {
        ["_previous_environment":protected] => NULL
        ["_cache":protected] => NULL
        ["_follow":protected] => bool(false)
        ["_follow_headers":protected] => array(1) {
          [0] => string(13) "Authorization"
        }
        ["_strict_redirect":protected] => bool(true)
        ["_header_callbacks":protected] => array(1) {
          ["Location"] => string(34) "Request_Client::on_header_location"
        }
        ["_max_callback_depth":protected] => int(5)
        ["_callback_depth":protected] => int(1)
        ["_callback_params":protected] => array(0) {
        }
      }
    }
    
    1
    object(Response)#35 (5) {
      ["_status":protected] => int(200)
      ["_header":protected] => object(HTTP_Header)#36 (5) {
        ["_accept_content":protected] => NULL
        ["_accept_charset":protected] => NULL
        ["_accept_encoding":protected] => NULL
        ["_accept_language":protected] => NULL
        ["storage":"ArrayObject":private] => array(0) {
        }
      }
      ["_body":protected] => string(0) ""
      ["_cookies":protected] => array(0) {
      }
      ["_protocol":protected] => 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 callbacks117 		foreach ($this->header_callbacks() as $header => $callback)118 		{119 			if ($response->headers($header))120  
  24. SYSPATH/classes/Kohana/Request.php [ 990 ] » Kohana_Request_Client->execute ( arguments )

    0
    object(Request)#32 (19) {
      ["_requested_with":protected] => NULL
      ["_method":protected] => string(3) "GET"
      ["_protocol":protected] => string(8) "HTTP/1.1"
      ["_secure":protected] => bool(false)
      ["_referrer":protected] => NULL
      ["_route":protected] => object(Route)#11 (5) {
        ["_filters":protected] => array(0) {
        }
        ["_uri":protected] => string(0) ""
        ["_regex":protected] => array(0) {
        }
        ["_defaults":protected] => array(3) {
          ["directory"] => string(15) "Frontend/Global"
          ["controller"] => string(4) "home"
          ["action"] => string(5) "index"
        }
        ["_route_regex":protected] => string(6) "#^$#uD"
      }
      ["_routes":protected] => array(0) {
      }
      ["_header":protected] => object(HTTP_Header)#33 (5) {
        ["_accept_content":protected] => NULL
        ["_accept_charset":protected] => NULL
        ["_accept_encoding":protected] => NULL
        ["_accept_language":protected] => NULL
        ["storage":"ArrayObject":private] => array(0) {
        }
      }
      ["_body":protected] => NULL
      ["_directory":protected] => string(15) "Frontend/Global"
      ["_controller":protected] => string(4) "Home"
      ["_action":protected] => string(5) "index"
      ["_uri":protected] => string(0) ""
      ["_external":protected] => bool(false)
      ["_params":protected] => array(0) {
      }
      ["_get":protected] => array(0) {
      }
      ["_post":protected] => array(0) {
      }
      ["_cookies":protected] => array(0) {
      }
      ["_client":protected] => object(Request_Client_Internal)#34 (9) {
        ["_previous_environment":protected] => NULL
        ["_cache":protected] => NULL
        ["_follow":protected] => bool(false)
        ["_follow_headers":protected] => array(1) {
          [0] => string(13) "Authorization"
        }
        ["_strict_redirect":protected] => bool(true)
        ["_header_callbacks":protected] => array(1) {
          ["Location"] => string(34) "Request_Client::on_header_location"
        }
        ["_max_callback_depth":protected] => int(5)
        ["_callback_depth":protected] => int(1)
        ["_callback_params":protected] => 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.996 
  25. 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 }122  
Database_Exception [ ]
 

MODPATH/profilertoolbar/classes/Kohana/Database/MySQL.php [ 108 ]

103 	protected function _select_db($database)104 	{105 		if ( ! mysql_select_db($database, $this->_connection))106 		{107 			// Unable to select database108 			throw new Database_Exception(':error',109 				array(':error' => mysql_error($this->_connection)),110 				mysql_errno($this->_connection));111 		}112  113 		Database_MySQL::$_current_databases[$this->_connection_id] = $database;114  
  1. MODPATH/profilertoolbar/classes/Kohana/Database/MySQL.php [ 75 ] » Kohana_Database_MySQL->_select_db ( arguments )

    0 ttnn2013new
    70 		}71  72 		// \xFF is a better delimiter, but the PHP driver uses underscore73 		$this->_connection_id = sha1($hostname.'_'.$username.'_'.$password);74  75 		$this->_select_db($database);76  77 		if ( ! empty($this->_config['charset']))78 		{79 			// Set the character set80 			$this->set_charset($this->_config['charset']);81  
  2. MODPATH/profilertoolbar/classes/Kohana/Database/MySQL.php [ 171 ] » Kohana_Database_MySQL->connect ( )

    166 	}167  168 	public function query($type, $sql, $as_object = FALSE, array $params = NULL)169 	{170 		// Make sure the database is connected171 		$this->_connection or $this->connect();172  173 		if (Kohana::$profiling && stripos($sql,'explain') !== 0)174 		{175 			// Benchmark this query for the current instance176 			$benchmark = Profiler::start("Database ({$this->_instance})", $sql);177  
  3. MODPATH/database/classes/Kohana/Database/Query.php [ 251 ] » Kohana_Database_MySQL->query ( arguments )

    0 1
    1 SELECT * FROM `category` AS `tb` LEFT JOIN `category_lang` AS `tbl` ON (`tb`.`cat_id` = `tbl`.`cat_id`) LEFT JOIN `category_group` AS `cg` ON (`tb`.`group_id` = `cg`.`group_id`) WHERE `tbl`.`lang_id` = 1 AND `tb`.`cat_id` IN (10, 11, 9, 12)
    2 false
    3
    array(0) {
    }
    
    246 				return new Database_Result_Cached($result, $sql, $as_object, $object_params);247 			}248 		}249  250 		// Execute the query251 		$result = $db->query($this->_type, $sql, $as_object, $object_params);252  253 		if (isset($cache_key) AND $this->_lifetime > 0)254 		{255 			// Cache the result array256 			Kohana::cache($cache_key, $result->as_array(), $this->_lifetime);257  
  4. APPPATH/classes/Model/Category.php [ 141 ] » Kohana_Database_Query->execute ( )

    136             foreach ($order as $k => $v)137                 $result = $result->order_by('tb.' . $k, $v);138         if ($limit != 0)139             $result = $result->limit($limit);140  141         $result = $result->execute()->as_array();142         //echo Database::instance()->last_query;143  144         return $result;145     }146  147  
  5. APPPATH/classes/Controller/Frontend/News/List.php [ 113 ] » Model_Category->getList ( arguments )

    0 1
    1
    array(1) {
      ["in"] => array(1) {
        ["cat_id"] => array(4) {
          [0] => int(10)
          [1] => int(11)
          [2] => int(9)
          [3] => int(12)
        }
      }
    }
    
    108         $model_cat = new Model_Category();109  110         $id_lang = Class_Tools::langDefault();111  112         $list_cat = array(10, 11, 9, 12);113         $assign['cat'] = $model_cat->getList($id_lang, array('in' => array('cat_id' => $list_cat)));114         $assign['cat'] = $model_cat->synchronization($assign['cat']);115  116         $sql = '';117         foreach ($assign['cat'] as $k => $v) {118             $sql .= '('. DB::select()->from(array($assign['object_table'], 'art'))119  
  6. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Frontend_News_List->action_tabcat ( )

    79 				array(':uri' => $this->request->uri())80 			)->request($this->request);81 		}82  83 		// Execute the action itself84 		$this->{$action}();85  86 		// Execute the "after action" method87 		$this->after();88  89 		// Return the response90  
  7. {PHP internal call} » Kohana_Controller->execute ( )

  8. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke ( arguments )

    0
    object(Controller_Frontend_News_List)#46 (5) {
      ["module_name":"Controller_Frontend_News_List":private] => string(4) "news"
      ["object_name":"Controller_Frontend_News_List":private] => string(7) "article"
      ["default_action":"Controller_Frontend_News_List":private] => string(4) "list"
      ["request"] => object(Request)#58 (19) {
        ["_requested_with":protected] => NULL
        ["_method":protected] => string(3) "GET"
        ["_protocol":protected] => NULL
        ["_secure":protected] => bool(false)
        ["_referrer":protected] => NULL
        ["_route":protected] => object(Route)#15 (5) {
          ["_filters":protected] => array(0) {
          }
          ["_uri":protected] => string(114) "<directory>(/<controller>(/<action>(/<param1>(/<param2>(/<param3>(/<param4>(/<param5>(/<param6>(/<param7>)))))))))"
          ["_regex":protected] => array(1) {
            ["directory"] => string(19) "[a-zA-Z]+/[a-zA-Z]+"
          }
          ["_defaults":protected] => array(2) {
            ["action"] => string(5) "index"
            ["host"] => bool(false)
          }
          ["_route_regex":protected] => string(314) "#^(?P<directory>[a-zA-Z]+/[a-zA-Z]+)(?:/(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<param1>[^/.,;?\n]++)(?:/(?P<param2>[^/.,;?\n]++)(?:/(?P<param3>[^/.,;?\n]++)(?:/(?P<param4>[^/.,;?\n]++)(?:/(?P<param5>[^/.,;?\n]++)(?:/(?P<param6>[^/.,;?\n]++)(?:/(?P<param7>[^/.,;?\n]++))?)?)?)?)?)?)?)?)?$#uD"
        }
        ["_routes":protected] => array(0) {
        }
        ["_header":protected] => object(HTTP_Header)#41 (5) {
          ["_accept_content":protected] => NULL
          ["_accept_charset":protected] => NULL
          ["_accept_encoding":protected] => NULL
          ["_accept_language":protected] => NULL
          ["storage":"ArrayObject":private] => array(0) {
          }
        }
        ["_body":protected] => NULL
        ["_directory":protected] => string(13) "Frontend/News"
        ["_controller":protected] => string(4) "List"
        ["_action":protected] => string(6) "tabcat"
        ["_uri":protected] => string(25) "Frontend/News/List/tabcat"
        ["_external":protected] => bool(false)
        ["_params":protected] => array(1) {
          ["host"] => bool(false)
        }
        ["_get":protected] => array(0) {
        }
        ["_post":protected] => array(0) {
        }
        ["_cookies":protected] => array(0) {
        }
        ["_client":protected] => object(Request_Client_Internal)#50 (9) {
          ["_previous_environment":protected] => NULL
          ["_cache":protected] => NULL
          ["_follow":protected] => bool(false)
          ["_follow_headers":protected] => array(1) {
            [0] => string(13) "Authorization"
          }
          ["_strict_redirect":protected] => bool(true)
          ["_header_callbacks":protected] => array(1) {
            ["Location"] => string(34) "Request_Client::on_header_location"
          }
          ["_max_callback_depth":protected] => int(5)
          ["_callback_depth":protected] => int(1)
          ["_callback_params":protected] => array(0) {
          }
        }
      }
      ["response"] => object(Response)#57 (5) {
        ["_status":protected] => int(200)
        ["_header":protected] => object(HTTP_Header)#42 (5) {
          ["_accept_content":protected] => NULL
          ["_accept_charset":protected] => NULL
          ["_accept_encoding":protected] => NULL
          ["_accept_language":protected] => NULL
          ["storage":"ArrayObject":private] => array(0) {
          }
        }
        ["_body":protected] => string(0) ""
        ["_cookies":protected] => array(0) {
        }
        ["_protocol":protected] => 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');103  
  9. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request ( arguments )

    0
    object(Request)#58 (19) {
      ["_requested_with":protected] => NULL
      ["_method":protected] => string(3) "GET"
      ["_protocol":protected] => NULL
      ["_secure":protected] => bool(false)
      ["_referrer":protected] => NULL
      ["_route":protected] => object(Route)#15 (5) {
        ["_filters":protected] => array(0) {
        }
        ["_uri":protected] => string(114) "<directory>(/<controller>(/<action>(/<param1>(/<param2>(/<param3>(/<param4>(/<param5>(/<param6>(/<param7>)))))))))"
        ["_regex":protected] => array(1) {
          ["directory"] => string(19) "[a-zA-Z]+/[a-zA-Z]+"
        }
        ["_defaults":protected] => array(2) {
          ["action"] => string(5) "index"
          ["host"] => bool(false)
        }
        ["_route_regex":protected] => string(314) "#^(?P<directory>[a-zA-Z]+/[a-zA-Z]+)(?:/(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<param1>[^/.,;?\n]++)(?:/(?P<param2>[^/.,;?\n]++)(?:/(?P<param3>[^/.,;?\n]++)(?:/(?P<param4>[^/.,;?\n]++)(?:/(?P<param5>[^/.,;?\n]++)(?:/(?P<param6>[^/.,;?\n]++)(?:/(?P<param7>[^/.,;?\n]++))?)?)?)?)?)?)?)?)?$#uD"
      }
      ["_routes":protected] => array(0) {
      }
      ["_header":protected] => object(HTTP_Header)#41 (5) {
        ["_accept_content":protected] => NULL
        ["_accept_charset":protected] => NULL
        ["_accept_encoding":protected] => NULL
        ["_accept_language":protected] => NULL
        ["storage":"ArrayObject":private] => array(0) {
        }
      }
      ["_body":protected] => NULL
      ["_directory":protected] => string(13) "Frontend/News"
      ["_controller":protected] => string(4) "List"
      ["_action":protected] => string(6) "tabcat"
      ["_uri":protected] => string(25) "Frontend/News/List/tabcat"
      ["_external":protected] => bool(false)
      ["_params":protected] => array(1) {
        ["host"] => bool(false)
      }
      ["_get":protected] => array(0) {
      }
      ["_post":protected] => array(0) {
      }
      ["_cookies":protected] => array(0) {
      }
      ["_client":protected] => object(Request_Client_Internal)#50 (9) {
        ["_previous_environment":protected] => NULL
        ["_cache":protected] => NULL
        ["_follow":protected] => bool(false)
        ["_follow_headers":protected] => array(1) {
          [0] => string(13) "Authorization"
        }
        ["_strict_redirect":protected] => bool(true)
        ["_header_callbacks":protected] => array(1) {
          ["Location"] => string(34) "Request_Client::on_header_location"
        }
        ["_max_callback_depth":protected] => int(5)
        ["_callback_depth":protected] => int(1)
        ["_callback_params":protected] => array(0) {
        }
      }
    }
    
    1
    object(Response)#57 (5) {
      ["_status":protected] => int(200)
      ["_header":protected] => object(HTTP_Header)#42 (5) {
        ["_accept_content":protected] => NULL
        ["_accept_charset":protected] => NULL
        ["_accept_encoding":protected] => NULL
        ["_accept_language":protected] => NULL
        ["storage":"ArrayObject":private] => array(0) {
        }
      }
      ["_body":protected] => string(0) ""
      ["_cookies":protected] => array(0) {
      }
      ["_protocol":protected] => 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 callbacks117 		foreach ($this->header_callbacks() as $header => $callback)118 		{119 			if ($response->headers($header))120  
  10. SYSPATH/classes/Kohana/Request.php [ 990 ] » Kohana_Request_Client->execute ( arguments )

    0
    object(Request)#58 (19) {
      ["_requested_with":protected] => NULL
      ["_method":protected] => string(3) "GET"
      ["_protocol":protected] => NULL
      ["_secure":protected] => bool(false)
      ["_referrer":protected] => NULL
      ["_route":protected] => object(Route)#15 (5) {
        ["_filters":protected] => array(0) {
        }
        ["_uri":protected] => string(114) "<directory>(/<controller>(/<action>(/<param1>(/<param2>(/<param3>(/<param4>(/<param5>(/<param6>(/<param7>)))))))))"
        ["_regex":protected] => array(1) {
          ["directory"] => string(19) "[a-zA-Z]+/[a-zA-Z]+"
        }
        ["_defaults":protected] => array(2) {
          ["action"] => string(5) "index"
          ["host"] => bool(false)
        }
        ["_route_regex":protected] => string(314) "#^(?P<directory>[a-zA-Z]+/[a-zA-Z]+)(?:/(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<param1>[^/.,;?\n]++)(?:/(?P<param2>[^/.,;?\n]++)(?:/(?P<param3>[^/.,;?\n]++)(?:/(?P<param4>[^/.,;?\n]++)(?:/(?P<param5>[^/.,;?\n]++)(?:/(?P<param6>[^/.,;?\n]++)(?:/(?P<param7>[^/.,;?\n]++))?)?)?)?)?)?)?)?)?$#uD"
      }
      ["_routes":protected] => array(0) {
      }
      ["_header":protected] => object(HTTP_Header)#41 (5) {
        ["_accept_content":protected] => NULL
        ["_accept_charset":protected] => NULL
        ["_accept_encoding":protected] => NULL
        ["_accept_language":protected] => NULL
        ["storage":"ArrayObject":private] => array(0) {
        }
      }
      ["_body":protected] => NULL
      ["_directory":protected] => string(13) "Frontend/News"
      ["_controller":protected] => string(4) "List"
      ["_action":protected] => string(6) "tabcat"
      ["_uri":protected] => string(25) "Frontend/News/List/tabcat"
      ["_external":protected] => bool(false)
      ["_params":protected] => array(1) {
        ["host"] => bool(false)
      }
      ["_get":protected] => array(0) {
      }
      ["_post":protected] => array(0) {
      }
      ["_cookies":protected] => array(0) {
      }
      ["_client":protected] => object(Request_Client_Internal)#50 (9) {
        ["_previous_environment":protected] => NULL
        ["_cache":protected] => NULL
        ["_follow":protected] => bool(false)
        ["_follow_headers":protected] => array(1) {
          [0] => string(13) "Authorization"
        }
        ["_strict_redirect":protected] => bool(true)
        ["_header_callbacks":protected] => array(1) {
          ["Location"] => string(34) "Request_Client::on_header_location"
        }
        ["_max_callback_depth":protected] => int(5)
        ["_callback_depth":protected] => int(1)
        ["_callback_params":protected] => 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.996 
  11. APPPATH/views/frontend/default/contents/global/home.php [ 7 ] » Kohana_Request->execute ( )

     2 <?php echo Request::factory('Frontend/Global/ads/index/slider/')->execute(); ?> 3 <?php echo Request::factory('Frontend/News/focus/home')->execute(); ?> 4 <?php echo Request::factory('Frontend/Global/ads/index/homecenter/')->execute(); ?> 5     <div class="box-news clearfix"> 6 <?php echo Request::factory('Frontend/News/List/withcat/8')->execute(); ?> 7 <?php echo Request::factory('Frontend/News/List/tabcat')->execute(); ?> 8     </div> 9     <div class="clear"></div>10 <?php echo Request::factory('Frontend/Global/ads/index/homefooter/')->execute(); ?>11     <div class="line-bot"></div>    12  <?php echo Request::factory('Frontend/Global/footer/index')->execute(); ?>
  12. SYSPATH/classes/Kohana/View.php [ 61 ] » include ( arguments )

    0 /data/wcode/ttnn2013/application/views/frontend/default/contents/global/home.php
    56 		ob_start();57  58 		try59 		{60 			// Load the view within the current scope61 			include $kohana_view_filename;62 		}63 		catch (Exception $e)64 		{65 			// Delete the output buffer66 			ob_end_clean();67  
  13. SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture ( arguments )

    0 /data/wcode/ttnn2013/application/views/frontend/default/contents/global/home.php
    1
    array(0) {
    }
    
    343 		{344 			throw new View_Exception('You must set the file to use within your view before rendering');345 		}346  347 		// Combine local and global data and capture the output348 		return View::capture($this->_file, $this->_data);349 	}350  351 } // End View352  
  14. SYSPATH/classes/Kohana/View.php [ 228 ] » Kohana_View->render ( )

    223 	 */224 	public function __toString()225 	{226 		try227 		{228 			return $this->render();229 		}230 		catch (Exception $e)231 		{232 			/**233 			 * Display the exception message.234 
  15. SYSPATH/classes/Kohana/Response.php [ 160 ] » Kohana_View->__toString ( )

    155 	public function body($content = NULL)156 	{157 		if ($content === NULL)158 			return $this->_body;159  160 		$this->_body = (string) $content;161 		return $this;162 	}163  164 	/**165 	 * Gets or sets the HTTP protocol. The standard protocol to use166 
  16. APPPATH/classes/Controller/Frontend/Global/Home.php [ 24 ] » Kohana_Response->body ( arguments )

    0
    object(View)#40 (2) {
      ["_file":protected] => string(80) "/data/wcode/ttnn2013/application/views/frontend/default/contents/global/home.php"
      ["_data":protected] => array(0) {
      }
    }
    
    19         if ($_REQUEST['lang']) {20             $_SESSION['language'] = $_REQUEST['lang'];21             $selectedLanguage = $_REQUEST['lang'];22         }23  24         $this->response->body(View::factory('frontend/default/contents/' . $this->module_name . '/' . $this->default_action . ''));25     }26  27 }
  17. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Frontend_Global_Home->action_index ( )

    79 				array(':uri' => $this->request->uri())80 			)->request($this->request);81 		}82  83 		// Execute the action itself84 		$this->{$action}();85  86 		// Execute the "after action" method87 		$this->after();88  89 		// Return the response90  
  18. {PHP internal call} » Kohana_Controller->execute ( )

  19. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke ( arguments )

    0
    object(Controller_Frontend_Global_Home)#38 (5) {
      ["module_name":"Controller_Frontend_Global_Home":private] => string(6) "global"
      ["object_name":"Controller_Frontend_Global_Home":private] => string(4) "home"
      ["default_action":"Controller_Frontend_Global_Home":private] => string(4) "home"
      ["request"] => object(Request)#32 (19) {
        ["_requested_with":protected] => NULL
        ["_method":protected] => string(3) "GET"
        ["_protocol":protected] => string(8) "HTTP/1.1"
        ["_secure":protected] => bool(false)
        ["_referrer":protected] => NULL
        ["_route":protected] => object(Route)#11 (5) {
          ["_filters":protected] => array(0) {
          }
          ["_uri":protected] => string(0) ""
          ["_regex":protected] => array(0) {
          }
          ["_defaults":protected] => array(3) {
            ["directory"] => string(15) "Frontend/Global"
            ["controller"] => string(4) "home"
            ["action"] => string(5) "index"
          }
          ["_route_regex":protected] => string(6) "#^$#uD"
        }
        ["_routes":protected] => array(0) {
        }
        ["_header":protected] => object(HTTP_Header)#33 (5) {
          ["_accept_content":protected] => NULL
          ["_accept_charset":protected] => NULL
          ["_accept_encoding":protected] => NULL
          ["_accept_language":protected] => NULL
          ["storage":"ArrayObject":private] => array(0) {
          }
        }
        ["_body":protected] => NULL
        ["_directory":protected] => string(15) "Frontend/Global"
        ["_controller":protected] => string(4) "Home"
        ["_action":protected] => string(5) "index"
        ["_uri":protected] => string(0) ""
        ["_external":protected] => bool(false)
        ["_params":protected] => array(0) {
        }
        ["_get":protected] => array(0) {
        }
        ["_post":protected] => array(0) {
        }
        ["_cookies":protected] => array(0) {
        }
        ["_client":protected] => object(Request_Client_Internal)#34 (9) {
          ["_previous_environment":protected] => NULL
          ["_cache":protected] => NULL
          ["_follow":protected] => bool(false)
          ["_follow_headers":protected] => array(1) {
            [0] => string(13) "Authorization"
          }
          ["_strict_redirect":protected] => bool(true)
          ["_header_callbacks":protected] => array(1) {
            ["Location"] => string(34) "Request_Client::on_header_location"
          }
          ["_max_callback_depth":protected] => int(5)
          ["_callback_depth":protected] => int(1)
          ["_callback_params":protected] => array(0) {
          }
        }
      }
      ["response"] => object(Response)#35 (5) {
        ["_status":protected] => int(200)
        ["_header":protected] => object(HTTP_Header)#36 (5) {
          ["_accept_content":protected] => NULL
          ["_accept_charset":protected] => NULL
          ["_accept_encoding":protected] => NULL
          ["_accept_language":protected] => NULL
          ["storage":"ArrayObject":private] => array(0) {
          }
        }
        ["_body":protected] => string(0) ""
        ["_cookies":protected] => array(0) {
        }
        ["_protocol":protected] => 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');103  
  20. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request ( arguments )

    0
    object(Request)#32 (19) {
      ["_requested_with":protected] => NULL
      ["_method":protected] => string(3) "GET"
      ["_protocol":protected] => string(8) "HTTP/1.1"
      ["_secure":protected] => bool(false)
      ["_referrer":protected] => NULL
      ["_route":protected] => object(Route)#11 (5) {
        ["_filters":protected] => array(0) {
        }
        ["_uri":protected] => string(0) ""
        ["_regex":protected] => array(0) {
        }
        ["_defaults":protected] => array(3) {
          ["directory"] => string(15) "Frontend/Global"
          ["controller"] => string(4) "home"
          ["action"] => string(5) "index"
        }
        ["_route_regex":protected] => string(6) "#^$#uD"
      }
      ["_routes":protected] => array(0) {
      }
      ["_header":protected] => object(HTTP_Header)#33 (5) {
        ["_acc