Sunday, June 5, 2011

Re: accessing formdata in controller?

Dominik,

I know how to create a vire file .ctp with a formhelper and I also
know how to create a controller containing my functions to get the
data sorted.

My problem is just - I do not know how to call a controller action
from a view, offering several controller-actions (i.e. month-report,
year-report, client-report) in one index view having the controller to
get the form-selected items and calling a showReport view after
colllecting data from db.

On 5 Jun., 12:11, Dominik Gajewski <dominikgajews...@gmail.com> wrote:
> why don't you create a form which send you all selected data to your action??
>
> 2011/6/4 mivogtGermanyLU <miv...@mivogt.net>:
>
>
>
>
>
>
>
>
>
> > sorry today I stick a bit and need a helping hand as I just cant get a
> > solution myselfe.
>
> > For analysing data I created a controller with no own model using
> > other models data for the view
> > I added an index.ctp containing several fields.
> > i.e. clients, month, year
>
> > the clients field is auto populated by the formhelper from the clients
> > table in database
> > furthermore I have the month and year fields not linked to any special
> > models.
>
> > No I want to get the follwing:
> > selecting client, month, year in the index.ctp
> > passing the data to the controller action calccmy($client,$month,
> > $year)
> > having the controller collecting the data
> > calling a view showhcalccmy presenting the data collected
>
> > I stick on my first steps.
> > How do I get the button calling my selfmade controller-action
> > How do I access the form-data selected in the index.ctp view?
>
> > Thanks in advance!
>
> > Michael
>
> > --
> > Our newest site for the community: CakePHP Video Tutorialshttp://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd 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 athttp://groups.google.com/group/cake-php
>
> --
> Pozdrawiam
> Dominik Gajewski

--
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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate