php - CakePHP Send query with link -



php - CakePHP Send query with link -

i have created link on app allow users create appointments, need pass info across app knows client book appointment to. how this?

e.g. <li><?php echo $this->html->link('book appointment', array('admin' => true, 'controller' => 'appointments', 'action' => 'add')); ?></li>

so url like: /admin/appointments/add?clientid=2

note: if thinks bad way please comment alternate solutions etc. thanks

i found in documentation: http://book.cakephp.org/view/1442/link

you can following:

<li><?php echo $this->html->link('book appointment', array( 'admin' => true, 'controller' => 'appointments', 'action' => 'add', '?' => array('clientid' => $clientid)) ); ?></li>

the code untested since don't have cakephp installed , there long time since used it. i'm sure can illustration working looking @ documentation aswell.

php cakephp

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -