CakePHP3: ErrorController, beforeRender and view variables

2014-12-06 Thread Oli
Hi all, giving CakePHP3 a spin and loving it, but there's something that's stumped me In CakePHP2, as far as I can tell, the ErrorController extended AppController and executed the beforeRender method of the AppController, ensuring any view variables needed for the layout were se

Re: Automatically Serialize All View Variables

2013-10-28 Thread euromark
the > back-end as a RESTful API. I could write a handful of posts in here about > some of the problems I ran into, but right now, I just want to share a > trick I developed with serializing view variables. > > I use jQuery AJAX functions to get json from CakePHP. I got tired of &

Automatically Serialize All View Variables

2013-10-28 Thread Matt Bowden
f posts in here about some of the problems I ran into, but right now, I just want to share a trick I developed with serializing view variables. I use jQuery AJAX functions to get json from CakePHP. I got tired of writing this all over my controllers: $this->set('_serialize', array(&#

Re: view variables

2008-11-15 Thread thatsgreat2345
Either use forms that are POST, or use GET, which Post you don't see and would be access by $this->data in your controller, or Get variables are passed in the url such www.example.com/tests/index/var1/var2 On Nov 14, 10:41 pm, nikunj <[EMAIL PROTECTED]> wrote: > hi, >

view variables

2008-11-14 Thread nikunj
hi, I want to use view variables in controller can i use? --~--~-~--~~~---~--~~ 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

Re: Setting view variables from pages_controller??

2007-03-16 Thread rtconner
as far as I know... you've got it right. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to

Setting view variables from pages_controller??

2007-03-16 Thread [EMAIL PROTECTED]
Hi all, I have setup a pages_controller.php with the following function to call the static homepage (home.thtml): function home() { $this->set('searchElement', $this->requestAction('/docs/ search', array('return'))); $this->display(); } However on home.thtml, it says the the

Re: lost view variables?

2007-02-07 Thread Károly Kiripolszky
found the bug, sorry for spamming! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAI

lost view variables?

2007-02-07 Thread Károly Kiripolszky
Helo bakers! I'm doing a multilingual site for which I'm utilising AD7six's Locale component (snippets) and it's really great. My way of redirecting to specific language pages is the following: In the AppController: --- function beforeFilter() { // default langua