Agora logo
Welcome to Agora!
 → 

REforum Templating



«  [1]  »
Matt
I know, first post, and I'm already talking about updates XD

REforum could use a basic templating system for ease of adding/removing elements on pages, or the like.
I have a basic template system I could roll into REforum for you, if you'd like.
Pecon
Administrator
Hia, feel free to make a fork and pull request. I'm actually just in the process of pushing new code that makes the page output more structured which should make templating much easier, along with a bunch of new sitewide settings.
Matt
Already forked and working on updates.

You can find my fork here: https://github.com/avsoft/REforum

Question though... Why are you using an abstraction layer on top of MySQLi? Wouldn't it just be easier to use an Objected Oriented approach, or are you planning on adding support for other databases?
Pecon
Administrator

Quote from: Matt

Question though... Why are you using an abstraction layer on top of MySQLi? Wouldn't it just be easier to use an Objected Oriented approach, or are you planning on adding support for other databases?

Honestly? I started this project almost three years ago (I didn't start using github until about a year ago), it was my first experience using mysql. If I were to rewrite from scratch right now I'd almost certainly have an object oriented structure for it, but since I wrote so much of this when I was a novice it's been hard to bring the code up to my current standards. Adding the mysql interface was the best I could do without having to rewrite a huge amount of code from scratch.

On a side note, I actually committed like three whole days of work just an hour ago. You should probably merge that before going too far into any changes...
«  [1]  »