PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, February 23, 2022

[FIXED] FuelPHP Oil Scaffolding and MongoDB

 February 23, 2022     fuelphp, mongodb, php, scaffolding     No comments   

Issue

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:

  • http://g33kette.co.uk/blog/?p=152
  • http://g33kette.co.uk/blog/?p=168

Solution

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.



Answered By - Phil Sturgeon
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing