Welcome Guest, Not a member yet? Register   Sign In
Abstract Models?
#1

[eluser]Unknown[/eluser]
We're trying to integrate a blog using the tumblr API.
Blog posts can be of type link, video, regular, conversation. They have different fields but all share the fields id, date, and type.

My initial idea was to implement an abstract News model, that had id, date, and type fields w/ getters and setters and have the link, video, and regular classes extend the abstract News class.

I'm new to the codeigniter framework -- is this feasible/does it make sense to do it? If so, how can I extend custom Models?

Thanks. :coolsmile:




Theme © iAndrew 2016 - Forum software by © MyBB