mistake is in the way I took to go on..
1. I have created an index.ctp containing the fields to be selected
for analysis
2. I have created a controller to get the index.ctp filled with from
data from db
3. I have a submit button in the index view sending the form-content
as $this->data back to controllers index.action
I do not know how to call an other controller action from index view
with passing all the formdata to the action, too.
- the submit button will always call the controller action reffering
to the current view
- if I try to add a set of hyperlinks to call controller actions I
fail to send the form data as I do not know how to do so.
i.e.
<?php echo $this->Html->link(__('View', true), array('action' =>
'view', $timeReport['TimeReport']['id'])); ?>
will call TimeReportController from index-view calling the view-action
having shown the view.ctp with the data about $timeReport['TimeReport']
['id']
I do not know if/how I can do this with multiple actions, views and
all the formdata to be passed.
<?php echo $this->Html->link(__('View', true), array('action' =>
'CutomerMonth', formdata-customer, formdata-month)); ?>
<?php echo $this->Html->link(__('View', true), array('action' =>
'StaffMonthProject', formdata-staff_id,formdata-month,formdata-
project_id)); ?>
<?php echo $this->Html->link(__('View', true), array('action' =>
'ProjectsMonth', formdata-project_id,formdata-month)); ?>
I fail sending multiple form data this way. I know something is wrong
the way I do. But I just do not know hot to practise it.
Help please! Thanks in advance.
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment