Changeset 750 for trunk/app/controllers
- Timestamp:
- 09/02/08 21:40:55 (3 months ago)
- Files:
-
- 1 modified
-
trunk/app/controllers/entries_controller.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/controllers/entries_controller.php
r738 r750 106 106 $this->layout = 'portal'; 107 107 108 $this->pageTitle = 'Search Results:: Karamelo E-learning on Web 2.0';108 $this->pageTitle = __('Search Results',true). ' :: Karamelo E-learning on Web 2.0'; 109 109 110 110 $this->Portal->statics(); // Charge Portal components aka Sidebars … … 112 112 $this->Sanitize = new Sanitize; 113 113 114 $this->Sanitize->paranoid($this->data["Entry"]["terms"]); 115 116 $this->set('data', $this->Search->getRows($this->data["Entry"]["terms"])); 114 $this->Sanitize->paranoid($this->data['Entry']['terms']); 115 $q = 'SELECT id, title FROM entries WHERE '; 116 $q .= ' to_tsvector(title || body) @@ to_tsquery(\''.$this->data['Entry']['terms'].'\') '; 117 $q .= ' ORDER BY created DESC LIMIT 10'; 118 119 $this->set('data', $this->Search->getRows($this->data['Entry']['terms'])); 117 120 } 118 121
