Friday, March 12, 2010

Re: access global inputfields in multiple controller

Hi Baeckeriehrling,

You could store the values in the Cake session?

I'm guessing you've got your menu bar as an element? I'm not entirely
sure if this is the 'cake' way of doing things but you could
initialise the session component in cake by doing:

App:init('Session'); in your element

Then using:

$Session->write('dateValue',$date);

and to read:

$date = $Session->read('dateValue');

Probably not the best way of doing so and not entirely sure that my
codes 100% there but hopefully will give you a couple of ideas :-)

Regards,
Bailey


On Mar 12, 4:38 pm, Baeckerlehrling <my.xing....@gmail.com> wrote:
> hello!
>
> 1) I'm brand new to cakePHP, this group and web-application
> development
> 2) my english isn't good, so ask me to specify details, if you think
> my question is useless
>
> what I want?
>
> I'd like to have two date-input fields in my application-global-
> navigation bar (as far as I know this will be realizied as
> a cakephp-element in the default page template) - and regardless of
> which controller and action, I'd like to access these input values,
> beside the url/action-parameter in every controller of my application.
> is there a solution to post the values of the inputfields  along with
> any action and without a submit-button?
>
> thank you for useful hints

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate