Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8014435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:56:03+00:00 2026-06-04T19:56:03+00:00

i am trying to figure out how to achieve something like a plugin architecture

  • 0

i am trying to figure out how to achieve something like a plugin architecture for my zend framework application.

Let’s say i have a upload formular for some documents. If there is no “plugin” i want to have some default uploads to my webserver. However if i do insert my “specific-upload-plugin” i want the files to be uploaded to sharepoint (just as an example).

But i really want to achieve this without changing much code at all. I would be fine with changing some config file but i shouldnt need to change any controller code at all.

Can someone point me out some tutorials or methods on how i will be able to achieve that? Or just some best practices on that kind of task?

Thank you in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T19:56:04+00:00Added an answer on June 4, 2026 at 7:56 pm

    My first thought is to extend Zend_File_Transfer_Adapter_Http which is the adapter that is used for handling a standard File upload element in Zend Framework.

    All you may need to do is overload the receive() method to receive the file but instead of moving the file to a permanent location on the server, you could have your adapter upload to sharepoint, or take care of moving the file to the final destination wherever it may be.

    Your constructor could set adapter specific options such as sharepoint IP address and credentials and any other options you need.

    This way, no changes need to be made to the controller, you would simply modify your Zend_Form object to use a File element but give it your custom transfer adapter. All validation and error handling is done by Zend_Form, and your adapter takes care of the details of putting the file where it needs to go and any errors encountered there can be passed back to the form. Therefore, there is no need to change any controller code; all that logic lives in your transfer adapter and form.

    Hope that helps point you in the right direction.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to figure out how I can do this properly. The print_r looks like
trying to figure out why this is happening - I have an input text
So I'm trying to achieve something seemingly very basic in jQuery. I have a
Im trying to figure out how to achieve this: http://t-webdesign.co.uk/projects/geusa/industry_jobs.html Evenutually there will be
I am trying to achieve something like this: while (ifstream has not been entirely
Trying to achieve something like this using recursion: if (m > n) return; Foo
I'm trying to figure out the best way to achieve this: I need to
Something like this is what Im trying to achieve: public Attribute<?> getAttribute(Class<? extends Attribute>
I've been trying to figure out how to achieve some simple maths using the
I'm trying to figure out why this is happening. I'll have the user be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.