We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

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!