hi
to access the vars in your elements, you have to pass them like this:
echo $this->renderElement("whatever",array("foo"=>$bar));
then in your "whatever" element, the content of $bar (which is set in
your view) would be in a var named $foo
in your case, it will be :
echo $this->renderElement("login",array("error"=>$error));
++++++++
clemos
On 1/19/07, jyrgen <[EMAIL PROTECTED]> wrote:
this is how it's currently configured and working,
but the more common question remains: which
system vars can be accessed in /pages and /pages/elements ?
the other issue is more url cosmetics, first i see "/" in the
browser adress bar, but after unsuccessful login we have
"/index.php/users/login".
of course i could try to redirect to "/" and pass the $error to
home.thtml... i'll let you know.
thanks for thoughts
jyrgen
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---