extending the framework

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
nick.stilwell
Posts: 6
Joined: Fri Jun 01, 2012 12:03 pm

extending the framework

Post by nick.stilwell »

Hi all,

Just started using this, and am loving it so far. I am wondering if there is a recommended way to add functional code to this which will still allow me to update when new releases come out. A bit like with an MVC framework, you have core/system files and then site/application files .

I am hoping on adding a few bits and bobs for my own specifics for the site I am making and i would hate to be in a position where an update would break all my added code.

or should i just do something as simple as a file include at the top level?

Thanks in advance

Nick
Thorsten
Posts: 15803
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: extending the framework

Post by Thorsten »

Hi,

currently where is no specific way and we're still on the way to "a clean framework". What you could do is forking the main Git repository at Github and use it as base for your modifications. You can use the main repo as upstream source.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
nick.stilwell
Posts: 6
Joined: Fri Jun 01, 2012 12:03 pm

Re: extending the framework

Post by nick.stilwell »

Hi there

Thanks for the answer, I dont really know anything about forks and Gits.

I will try to just keep my code seperate then.
Thorsten
Posts: 15803
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: extending the framework

Post by Thorsten »

Hi,

that would be a bad decision because you'll lost the upgrade path and it's quite common to give back something to open source projects.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
nick.stilwell
Posts: 6
Joined: Fri Jun 01, 2012 12:03 pm

Re: extending the framework

Post by nick.stilwell »

I am not doing it to not give back, i have no idea what forks and git is, sorry for my ignorance.
I thought by keeping it separate, i can still upgrade without it affecting my code, which is what I am trying to do.
Post Reply