Reputation: 2828
Is there any solution yet to make oil scaffolding (--crud) work with mongodb out of the box? It seems like it should be fairly easy...
Along with that question, I wonder if I can set mongodb as default connection under 'default' - seems like there is not much written about fuelphp and mongodb.
Update: This was recently posted as a little workaround:
Upvotes: 2
Views: 1236
Reputation: 30766
You will need to create a new oil template for that. You can copy the code in oil/views/scaffolding and there are two existing templates, orm and crud. Make a mongo one if you like and set the code up to work however you like.
Upvotes: 3