C57 models

Permalink
Hi guys,

What would be the best example or best implementation for a custom model in a package? I've looked at some models in the core, but they seem pretty basic to me. I'm not a fan of writing endless queries for insert and update methodes to describe the column names. In c56 we used adodb to make this easier. What would be the proper c57 way?

Thanks in advance! Adri

A3020
 
A3020 replied on at Permalink Reply
A3020
EC_JOE from IRC directed me to the PageTemplate model, which was really helpful:https://github.com/concrete5/concrete5-5.7.0/blob/35b607591c4a1adf1c...

Good to know: Doctrine caches stuff, so you need to clear your /application/cache directory every now and then.