私はCodeigniterを新しくしています、私を助けてください。Codeigniterのカテゴリからすべてのデータを取得するには
マイCodeIgniterのURLがある - http://localhost/framework/CodeIgniter/index.php/restaurant/patna/
私はすべてのデータを取得したいです。
は私がルートを設定 -$route['restaurant(:any)'] = "Restaurant/getRestaurantByCity/$1";
とコントローラの私の機能は、ここで
私はそのカテゴリのすべてのデータを取得するために、以下の機能でCAT_IDを渡すカテゴリIDをしたいです
public function getRestaurantByCity()
{
$rst_list = $this->Restaurant_model->get_restaurant_by_city();
}