hi,
usually you trigger elements like this and it works:
in views/elements you create a ctp file
---------------------------
echo $message
---------------------------
in your view, where you want to show the element
echo $this->element(
'too_many_attachments',
array(
'message' => 'Du kannst
nur maximal 5 Dateien hochladen'
)
);
now i get this. but this element is shown everytime the site is
opened. but i want to be in control, when to show the element. i wanna
do this in my controller:
like:
if $count > 5
{
SHOW THE element
}
can u help me? thx :)
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 [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