Advertisement
vLight

SearchController.php

Dec 13th, 2012
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.48 KB | None | 0 0
  1. class Controller_Search extends Controller_Hybrid
  2. {
  3.     public function action_index() {
  4.  
  5.         $this->template->title = 'Results for » '.Input::get('q');
  6.         $this->template->content = View::forge('search/index.twig');
  7.     }
  8.  
  9.     public function action_advanced()
  10.     {
  11.         $this->template->title = 'Search » Advanced Search';
  12.         $this->template->content = View::forge('search/index.twig', array(
  13.             'advancedForm' => true
  14.         ));
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement