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

java - How to pass parameters between Request-Scoped Controllers? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -

ms access - C# - Using OleDbParameter on table name -