Help with moving simple module forms into my own custom theme, rather than the Fuel Admin interface

edited August 2011 in Modules
This may or may not be a simple operation, but I'll go ahead and ask. What is the recommended way to take simple modules, which in this case for me consists of a few model files that directly connect to their corresponding database tables and allow the forms and the list views for these records display outside the Fuel Admin area?

I would like to have URLs setup as well that route to the specific DB tables, like:

http://example.com/bikes > routes to the list view of all bikes from bikes_model.php
http://example.com/stations > routes to the list view of all bikes from stations_model.php
http://example.com/bikes/add > routes to the create form to insert a new bike
http://example.com/stations/add > routes to the create form to insert a new station

These URLs will also use the custom website theme, rather than the Fuel admin theme. What is the recommended approach to this?

Thanks,
Erik

Comments

  • edited 8:48PM
    I'd recommend using a normal controller to handle the page rendering. You could grab the fields from your model using the form_fields() method and then leverage Form_builder to render the form (just like in the fuel/modules/fuel/controllers/module.php file).
Sign In or Register to comment.