Fuel\Core\Database_Exception [ 1049 ]:
SQLSTATE[HY000] [1049] Unknown database 'xdb_suzukikiko_dev'
107 else 108 { 109 $error_code = 0; 110 } 111 } 112 throw new \Database_Exception(str_replace($this->_config['connection']['password'], str_repeat('*', 10), $e->getMessage()), $error_code, $e); 113 } 114 } 115 116 /** 117 * @return bool
169 * @throws \Database_Exception 170 */ 171 public function query($type, $sql, $as_object) 172 { 173 // Make sure the database is connected 174 $this->_connection or $this->connect(); 175 176 if ( ! empty($this->_config['profiling'])) 177 { 178 // Get the paths defined in config 179 $paths = \Config::get('profiling_paths');
309 catch (\CacheNotFoundException $e) {} 310 } 311 312 // Execute the query 313 \DB::$query_count++; 314 $result = $db->query($this->_type, $sql, $this->_as_object); 315 316 // Cache the result if needed 317 if (isset($cache) and ($this->_cache_all or $result->count())) 318 { 319 $cache->set_expiration($this->_lifetime)->set_contents($result->as_array())->set();
25 .'a1.ProductsCode = a2.ProductsCode and ' 26 .'a1.PartsGroupCode = a2.PartsGroupCode and ' 27 .'a1.PartsCode = a2.PartsCode ' 28 .'where ' 29 .'a1.PartsGroupCode = :groupcode'; 30 $result = DB::query($query)->bind('groupcode',$groupcode)->execute(); 31 return $result; 32 } 33} 34 35?>
13 14 public $template = 'mitsumori_template'; 15 16 public function action_index() 17 { 18 $data['group1'] = partsinfo::getgroup(1); 19 $data['group2'] = partsinfo::getgroup(2); 20 $data['group3'] = partsinfo::getgroup(3); 21 $data['group4'] = partsinfo::getgroup(4); 22 $data['group5'] = partsinfo::getgroup(5); 23 $data['group6'] = partsinfo::getgroup(6);
449 // fire any controller started events 450 \Event::instance()->has_events('controller_started') and \Event::instance()->trigger('controller_started', '', 'none'); 451 452 $class->hasMethod('before') and $class->getMethod('before')->invoke($this->controller_instance); 453 454 $response = $action->invokeArgs($this->controller_instance, $this->method_params); 455 456 $class->hasMethod('after') and $response = $class->getMethod('after')->invoke($this->controller_instance, $response); 457 458 // fire any controller finished events 459 \Event::instance()->has_events('controller_finished') and \Event::instance()->trigger('controller_finished', '', 'none');
66 $response = Response::forge($response); 67 } 68 } 69 elseif ($e === false) 70 { 71 $response = Request::forge()->execute()->response(); 72 } 73 elseif ($route) 74 { 75 $response = Request::forge($route, false)->execute(array($e))->response(); 76 }
87{ 88 // Boot the app... 89 require APPPATH.'bootstrap.php'; 90 91 // ... and execute the main request 92 $response = $routerequest(); 93} 94catch (HttpBadRequestException $e) 95{ 96 $response = $routerequest('_400_', $e); 97}