为什么我得到一个
Class 'Search_Controller' not found
这样做时:
class Snippets_Controller extends Search_Controller {
public $restful = true;
public function get_index()
{
$snippets = Snippet::all();
$categories = Categorie::all();
return View::make('snippet.index')->with(array(
'snippets' => $snippets,
'categories' => $categories,
'active_categorie' => Session::get('active_categorie_id')
)
);
}
搜索控制器:
class Search_Controller extends Base_Controller {
protected static function build_html_for_search_results($search_results)
{
...