Cakephp Plugin Search cakeDC Usage

I’m using the 2.0 version of cakephp search plugins by cakeDC (with cakephp 2.x) here . I’m need search in many models but thats models aren’t related. So I created a new model (search) and a controller (searches) . I got this error

“Notice (8): Indirect modification of overloaded property SearchesController::$paginate has no effect [APP/Controller/SearchesController.php, line 17]”

Model:

App::uses('AppModel', 'Model');
 class Search extends AppModel {
 public $actsAs = array('Search.Searchable');
 public $useTable = false;
 public $filterArgs = array( 'terminada' =>
 array( 'type' =>
 'like', 'field' =>
 array( 'Sludge.terminada', 'SurfacesWater.terminada', 'ResidualWater.termianda', 'UndergroundWater.terminada', 'PotableWater.terminada', 'SpecifiedsResidualsWater.terminada' ) ), 'revisada' =>
 array( 'type' =>
 'like', 'field' =>
 array( 'Sludge.revisada', 'SurfacesWater.revisada', 'ResidualWater.revisada', 'UndergroundWater.revisada', 'PotableWater.revisada', 'SpecifiedsResidualsWater.revisada' ) ), 'eliminada' =>
 array( 'type' =>
 'like', 'field' =>
 array( 'Sludge.eliminada', 'SurfacesWater.eliminada', 'ResidualWater.eliminada', 'UndergroundWater.eliminada', 'PotableWater.eliminada', 'SpecifiedsResidualsWater.eliminada' ) ), );
 public function orConditionsDates($data = array()) {
 $start = date('Y-m-d');
 $end = date('Y-m-d', strtotime('-1 month'));
 $cond = array( 'OR' =>
 array( $this->
alias . '.monitoreofecha LIKE <
=' =>
 $end, $this->
alias . '.monitoreofecha LIKE >
=' =>
 $start, ));
 return $cond;
 }
 }
 

Controller:

App::uses('AppController', 'Controller');
 class SearchesController extends AppController {
 public $components = array('Search.Prg');
 public $presetVars = true;
 // using the model configuration public function index() {
 $this->
Prg->
commonProcess();
 $this->
paginate['conditions'] = $this->
Search->
parseCriteria($this->
passedArgs);
 $this->
set('searches', $this->
paginate());
 }
 }
 

The view is the same of any index make with bake Any idea how what is my mistake? Thanks for all!!

 

Read More Post

STAY CONNECTED

Most Popular

Why Serviced Apartments Are the Perfect Choice for Long-Term Stays in Singapore – Everything You Need to Know
17 Dec

Why Serviced Apartments Are the Perfect Choice for Long-Term Stays in Singapore – Everything You Need to Know

If you’re heading to Singapore for a few weeks or many months, maybe for work or study or just to

Manifesting Your Dream Career: Finding Your Passion And Purpose
01 Aug

Manifesting Your Dream Career: Finding Your Passion And Purpose

Are you passionate about finding your dream career? Manifesting can help you align your career with your passions and purpose.

Revolutionizing Your Ride: Expert Auto Service At Carolina Auto Service
27 Feb

Revolutionizing Your Ride: Expert Auto Service At Carolina Auto Service

Finding a reliable auto service provider is paramount in the bustling world of vehicle maintenance and repair. That's where Carolina

Floratam: The Robust Grass Solution From Council Growers SOD
25 Jan

Floratam: The Robust Grass Solution From Council Growers SOD

Floratam grass, a popular St. Augustine variety, has become a go-to choice for homeowners and landscapers seeking a lush, durable

Carolina Mobile Autoservice: Your Go-To For Expert Brake Service Repair
25 Jan

Carolina Mobile Autoservice: Your Go-To For Expert Brake Service Repair

For vehicle owners, the braking system is among the most critical components for safety and performance. Carolina Mobile Autoservice, a

Safeguarding Your Property: Expert Water Damage Services By MBC Capital
24 Jan

Safeguarding Your Property: Expert Water Damage Services By MBC Capital

Water damage can significantly impact homes and businesses, often leaving a trail of destruction and disruption in its wake. Understanding