cakephp passedArgs empty -


i have simple form in a view , trying access $this=>passedargs coming empty.

i actualy trying use cakedc search plugin uses $this=>passedargs. must simple have not done results form submit.

find view

<?php echo $this->form->create('member', array(     'url' => array_merge(array('action' => 'find'), $this->params['pass']) )); echo $this->form->input('name', array('div' => false)); echo $this->form->submit(__('search'), array('div' => false)); echo $this->form->end(); ?> 

controller

public function find() {     debug($this->passedargs);     exit; } 

i have tried $this->request->params

array(  'plugin' => null,  'controller' => 'members',  'action' => 'find',  'named' => array(),  'pass' => array(),  'isajax' => false ) 

i have add method form. question has been asked before solution of having lower cases in public $uses = array('order', 'product'); when should public $uses = array('order', 'product'); did not work.

cakephp version 2.3.5

thanks help

update:

i have set form method , url:

http://localhost/loyalty/members/find?name=searchtext 

i have removed plugin , still not $this->passedargs, data $this->request->data['name']. once put public $components = array('search.prg'); noting again $this->request->data['name'].

i have tried again $this->prg->parsedparams() search plugin , array()

the documentation pretty clear on that. cannot debug has not been set yet. including plugin (and component) not enough.

from readme/documenation:

public function find() {     $this->prg->commonprocess();     $this->paginate['conditions'] = $this->modelname->parsecriteria($this->passedargs);     $this->set('...', $this->paginate()); } 

note commonprocess() call makes passedargs contain need.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -