extending the framework

In this board you can talk about general questions about phpMyFAQ

Moderators: jason102178, Florian, Thorsten, JochenS

extending the framework

Postby nick.stilwell » Fri Jun 01, 2012 12:19 pm

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
nick.stilwell
 
Posts: 6
Joined: Fri Jun 01, 2012 12:03 pm

Re: extending the framework

Postby Thorsten » Sat Jun 02, 2012 9:58 am

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
Thorsten
 
Posts: 12144
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq

Re: extending the framework

Postby nick.stilwell » Wed Jun 06, 2012 10:37 am

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.
nick.stilwell
 
Posts: 6
Joined: Fri Jun 01, 2012 12:03 pm

Re: extending the framework

Postby Thorsten » Wed Jun 06, 2012 10:51 am

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
Thorsten
 
Posts: 12144
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq

Re: extending the framework

Postby nick.stilwell » Wed Jun 06, 2012 11:08 am

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.
nick.stilwell
 
Posts: 6
Joined: Fri Jun 01, 2012 12:03 pm


Return to General discussions

Who is online

Users browsing this forum: No registered users and 2 guests