Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Example of a model using Model_Crud
  • I'm really new to oop, and for whatever reason figured I might as well start learning with FuelPHP (I like the idea of the HMVC). My issue is I'm not exactly sure of what to include in a single model as of yet. I was hoping there might be a tutorial (or even just an example) of a complete model with crud functionality that I could learn from. Since there's already a lot of built in functionality with the model_crud class it'd be great to see an example with that. I looked through the documentation; however, it seems to be missing a lot of context that I either don't know yet, or am just not comprehending what it's saying. Anyone have an example they could share? I tried using the search thing, but the color scheme of the website makes it difficult for me to read everything. Thanks!
  • The quickest way to get something is to generate it using oil. The process is documented here: http://docs.fuelphp.com/packages/oil/generate.html. Oil can also generate an admin section for you, so you'll have a complete crud environment on the users table. That page also gives you some examples that you could use as a start. You can also check out nettuts.com, there are some nice screencasts available, including the infamous "how to build a blog in 20 minutes"... And check out this post: http://fuelphp.com/forums/topics/view/3228

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion