Fuel\Core\Database_Exception [ Error ]: No MySQLi Connection
133 catch (\ErrorException $e) 134 { 135 // No connection exists 136 $this->_connection = null; 137 138 throw new \Database_Exception('No MySQLi Connection', 0); 139 } 140 141 // \xFF is a better delimiter, but the PHP driver uses underscore 142 $this->_connection_id = sha1($hostname.'_'.$username.'_'.$password); 143
214 throw new \Database_Exception($this->_connection->error.' [ '.$sql.' ]', $this->_connection->errno); 215 } 216 } 217 else 218 { 219 $this->connect(); 220 } 221 222 if ( ! empty($this->_config['profiling'])) 223 { 224 // Get the paths defined in config
251 catch (CacheNotFoundException $e) {} 252 } 253 254 // Execute the query 255 \DB::$query_count++; 256 $result = $db->query($this->_type, $sql, $this->_as_object); 257 258 // Cache the result if needed 259 if (isset($cache) and ($this->_cache_all or $result->count())) 260 { 261 $cache->set_expiration($this->_lifetime)->set_contents($result->as_array())->set();
49 FROM {$table} a 50 LEFT JOIN m_regions r ON a.regions_id = r.id 51 WHERE a.f_del = 0 52 {$str_order} 53OUTPUT; 54 $results = \DB::query($query)->execute(); 55 return $results->as_array(); 56 } 57} 58?>
8 // フロント画面フィルター 9 //************************************************************************ 10 public function before(){ 11 parent::before(); 12 13 $this->template->m_areas = Model_M_Area::get_list(); //modelで取得したデータ全てを格納 14 $this->template->m_genres = Model_M_Genre::get_list(); //modelで取得したデータ全てを格納 15 16 //サイドバー用おすすめ 17 $this->template->tb_shops_recommend = Model_Tb_Shop::get_list(array('limit' => 8, 'rnd' => true, 'f_pic1' => true)); //modelで取得したデータ全てを格納 18
421 } 422 423 // fire any controller started events 424 \Event::instance()->has_events('controller_started') and \Event::instance()->trigger('controller_started', '', 'none'); 425 426 $class->hasMethod('before') and $class->getMethod('before')->invoke($this->controller_instance); 427 428 $response = $action->invokeArgs($this->controller_instance, $this->method_params); 429 430 $class->hasMethod('after') and $response = $class->getMethod('after')->invoke($this->controller_instance, $response); 431
44require APPPATH.'bootstrap.php'; 45 46// Generate the request, execute it and send the output. 47try 48{ 49 $response = Request::forge()->execute()->response(); 50} 51catch (HttpNotFoundException $e) 52{ 53 $route = array_key_exists('_404_', Router::$routes) ? Router::$routes['_404_']->translation : Config::get('routes._404_'); 54