Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

form helper adding public to action uri

Hi everyone,

I am new to phalcon and just tried to set up a form. The form works but when I use php \Phalcon\Tag::Form() It seems to affix 'public' to it. It works but does not give me as pretty of a url. as I have .htaccess enabled so I could do with out public affixed to it. Any ideas on what's causing it to be like that?

Here's the source

<?php echo Tag::form("beta/signUp");?>
    <p>
        <label for="name">Name</label>
        <?php echo Tag::textField("name") ?>

        <label for="email">Email</label>
        <?php echo Tag::emailField("email") ?>
    </p>

    <p>
        <input type="submit" value="Sign me Up!" class="btn btn-large" />
    </p>
</form>


404
Accepted
answer

You need to change baseUri to "/" in app/config/config.php

Yup! I figured it just after I posted this. Thanks for the help!