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
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
&
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(
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,
>
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
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
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
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
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