Have you seen our video tutorials? Check 'em out!

Creating a simple form

idlethumbs - 2 months ago

How do I create a simple form in Pyrocms?

I'd like to create forms to go on my site, that send emails on submission. Looking at the documentation in the UI section for forms I'm a little overwhelmed and not sure where the code demonstrated should go.

eigotec - 2 months ago

Hey,

Not sure if you bought Pyro or not, but there are the Streams module and the Forms module that can do what you want. These are paid for modules though.

ryanthompson - 2 months ago

@idlethumbs you can start but making a stream / form builder. Then bind it like this: https://github.com/anomalylabs/users-module/blob/master/src/UsersModuleServiceProvider.php#L110

After that just display it using the forms function like this: https://github.com/anomalylabs/users-module/blob/master/resources/views/login.twig

Streams Plugin -> Form: http://pyrocms.com/documentation/pyrocms/v3.1/the-basics/plugin#forms