Hi there,

I'm trying to validate form data using ajax in cakephp. The form looks
something like this :

---
<!-- File : register.thtml -->

<div id="register_student">
<form onSubmit="return false;">
        <p>
        First name:<br />
        <?php echo $html->input('Student/first_name', array('size' =>
'40'))?>
        <div class="error">
        <?php echo $html->tagErrorMsg('Student/fn_empty', 'First name
is required.') ?>
        <?php echo $html->tagErrorMsg('Student/fn_len', 'First name must be
at least two charcters long.') ?>
        </div>
        </p>
        <p>
        <?php print $ajax->submit('Register', array('url' =>
'register', 'update'=>'register_student')); ?>
        </p>
</form>
</div>
---

I can see the form when I request 
http://www/mydomain.com/version2/students/register
(mod_rewrite seems to work just fine) but when I submit the form, I
get an error message:

"The requested URL /home/xxx/www/version2/app/webroot/students/
register was not found on this server".

The documentRoot of my server is set to /home/xxx/www, cake is
installed in the "version2" subfolder. As you can imagine I don't want
cake to look in the webroot folder but look for the register action of
my students controller (http://www.mydomain.com/version8/students/
register).

Any idea on how to fix that?


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to