Wednesday, September 27, 2023

Game of Thrones

Lord Snow (s1, Ep3)Benjen Stark: You know, my brother once told me that nothing someone says before the word "but" really counts. A Golden Crown (s1, Ep6)Syrio Florel: There is only one god and his name…

Full text searching in CakePHP

public function search(){    $query = $this->request->data['Articles']['search'];    $escapedQuery = $this->Article->getDataSource()->value($query);    $data = $this->Paginator->paginate('Article',        array("MATCH (Article.title) AGAINST ($escapedQuery)")                    );                    $this->set('articles', $data);    }