1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Devs - Will The Zend framework Stay In The xenForo Build?

Discussion in 'XenForo Pre-Sales Questions' started by Brandon_R, Aug 29, 2010.

  1. Brandon_R

    Brandon_R Guest

    Hello devs, i have a question regarding the zend framework and it's residence in the xenforo framework? I understand you guys use some components from the zend framework, if so my question is do you guys plan to it write off the framework in due time or leave in in there for modders to take advantage of?

    Thank you for your time.
    Darkimmortal likes this.
  2. Kier

    Kier XenForo Developer Staff Member

    If we find a compelling reason to write our own versions of the Zend components that we use then you could see XenForo becoming independent of the Zend Framework. Right now however, there is no compelling reason to spend that effort. We have already replaced the Zend components in XenForo that were not performing to our requirements of performance or flexibility, what is left is perfectly adequate for our needs.
  3. Brandon_R

    Brandon_R Guest

    Ok Thank You, one more question, even though the components of the zend framework can function with only the dependent classes of those components, will xenForo have the full zend framework in the download?
  4. Kier

    Kier XenForo Developer Staff Member

    XenForo does not include the full distribution of the Zend Framework, no.
    ForestForTrees likes this.
  5. Dean

    Dean Well-Known Member

    Does using Zend affect hosting requirements? i.e. does Zend need to be installed on a hosting account?

    (sorry if this is silly question)
  6. Kier

    Kier XenForo Developer Staff Member

    No, the Zend Framework is just a set of PHP files. If you meet our minimum requirements for XenForo installation, you can run ZF too.
    ForestForTrees, Luke F and Dean like this.
  7. Brandon_R

    Brandon_R Guest

    But it does keep the original structure right?, so a dev could just upload the rest of the framework right over the files without changing anything and have it work.
  8. Erik

    Erik Well-Known Member

    I think what we are asking (at least what I want to know), is are the Zend components you do use included within the download, or would be also have to download a copy of the Zend framework for XF to function properly?

    And slightly offtopic, why did you go with Zend instead of the other various PHP frameworks out there? :)
  9. Kier

    Kier XenForo Developer Staff Member

    We include everything you need.
  10. Kier

    Kier XenForo Developer Staff Member

    And we went with Zend for various reasons, but primarily because it's more of a loosely-coupled library than a framework, allowing us to pick and choose the bits we want while ignoring the rest.
    ForestForTrees and Erik like this.
  11. dmnkhhn

    dmnkhhn Active Member

    I'd like to have this answered, too. :)
  12. Mike

    Mike XenForo Developer Staff Member

    It did until recently. We had to make a change to fix an issue in ZF that was preventing people from installing.
  13. Kier

    Kier XenForo Developer Staff Member

    Removing our reliance upon the Zend Framework is nowhere near a top priority.
  14. Sniper

    Sniper Active Member

    I think you guys should make it clear whether add-on developers should make use Zend or not, otherwise users could endup with broken add-ons.
  15. Kier

    Kier XenForo Developer Staff Member

    If we find that add-on developers are making extended use of the Zend Framework, it would make little sense for us to remove it completely.
    simbolo likes this.
  16. Paul M

    Paul M Well-Known Member

    If you only use the parts of Zend that XF uses then surely it wont be an issue ?

    Either way, developers can make their own choice, future versions of software often break older add-ons anyway - thats to be expected.
  17. Mike

    Mike XenForo Developer Staff Member

    If we were to remove parts, they surely wouldn't be in a 1.0.x level release. It would at least be at a transition from 1.0 to 1.1, though more likely a 1 to 2 transition.

    There are certainly advantages to some of the components, but conversely they can get in the way of doing things in other scenarios.
  18. Sniper

    Sniper Active Member

    I see your point Paul but considering Zend is part of XF why should developers not use its components? I'd have no issue if they weren't there to start with! I guess that is my choice, like you said let developers make their own choices!

    I'd be more than happy to use whatever XF has in place but love Zend for certain tasks as I find it better to work with in comparison to XF e.g database methods, zend table.

    Essentially what your saying is developers shouldn't use the tools provided by XF package...:rolleyes: I completely understand future versions often require changes but in this case we've been given tools which XF doesnt use! thats the issue here I guess (the initial inclusion).

    Anyway I was looking for clear answer rather than it depends! Its all a matter of opinion in the end...:)
    ragtek likes this.
  19. rjordan

    rjordan Member

    I, myself, am excited to get to use this software and possibly do some of my own (very amateur) mods, however if there is the slightest chance that the Zend would be removed, then I think I would want to stay away from utilizing it. While it sounds like it solves (or helps) a lot of issues, modifications that rely on the base code sounds like the way to go for me.

    (Then again, this is also a statement by someone that has not done a lot of coding in the past!)

Share This Page