can I use other function to show messages error or successful ?



On Fri, Mar 25, 2011 at 5:15 PM, Steve Ringwood <nevets@tds.net> wrote:
As far as I know $show_messages and  $messages only exists in page.tpl.php


On 3/25/2011 4:55 PM, Damian Adriel Perez Valdes wrote:
hi:

i have a problem. I have a theme for my form, but I can't show the message error. What can I do ?

thanks.


form.tpl.php
<?php if ($show_messages && $messages): print $messages; endif; ?>

<?php echo drupal_render($form["nombres"]); ?>
<?php echo drupal_render($form["submit"]); ?>