We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

Path with "http" in action form

How can I set the form's action to the full path? When I write {{form ("https://site.com")}}, I get <form action="/https://site.com">



368

Unfortunately you cannot do that, But why you just dont write html in volt its valid <form action="https://site.com"> don't use volt form for that



9.2k

It is clear that I can write all the without helpers and volt, but they are also there trying to deal with them.

You must understand, that when you set router 'baseUri' option - it always prepend links that came to Phalcon. By default it's '/'. You can use any, but you need to consider this when will use url() function (or other from Phalcon) next time.