Re: sending parameters to a controller function

2008-12-08 Thread deepesh
if you have an image which you are using as button you can use following : link($html->image("add_bttn.gif"),array ('controller'=>'bond_transactions', 'action' => 'add/'.$bond ['BondTransaction']['id']), array('escape' => false));?> passing controller name action name (function name + parameter

Re: sending parameters to a controller function

2008-12-08 Thread brian
Do you mean, how to set the route? Router::connect('/showmonth/:year/:month', array('controller' => 'expenses', 'action' => 'showMonth'), array( 'year' => '[0-9]{4}', 'month' => '[0-9]{2}' ) ); You can also do the regexp like so: array(

sending parameters to a controller function

2008-12-08 Thread Tanay
i have a class type "expenses" the index() function of controller lists all expenses' then i have a function show(month,year) which lists all expenses of that particular month,year in expenses home page i want to have a form with two select buttons such that i select month and year with values,