Jump to content

front-end CRUD


pankaspe
 Share

Recommended Posts

Hello everyone, I need to rewrite entire application and I want to choose PW for speed reason and logic. I love the roles/permissions system and relationships in db, but now the question..


My app is based on users roles, foreach user role I need to write a big form (around 30fields)->store in database->edit and show the form. Simple crud system in frontend.
I can not find a guide to do this, I would use as much as possible the PW's API can you give me some advice?

edit: this module works fine! http://modules.processwire.com/modules/form-template-processor/
@ryan with the upload fields the page say "The page must be saved"
my code in my template is:
 

$form = $modules->get('FormTemplateProcessor');
$form->template = $templates->get('my_template'); 
$form->requiredFields = array('field1', 'field2', 'field3'); 
$form->parent = $page; 

echo $form->render(); 



Thank you all guys!

Link to comment
Share on other sites

Hi,

I do not think Ryan will have time to support the module (and this is not the right topic for that anyway), however you can take a look at the code to learn form it. I can also recommend the following as staring points to implement forms based on the PW form API:

 

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...