Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

Initializing PHP classes in the Web server/browser context

I asked this question with very vague language a few days ago. I myself had a hard time understanding what the problem was, so it ended up like a wall of text with very little value. I am sorry for the waste of time caused.

I have now edited the question with further details, and I also solved my problem which I'd like to write as an answer. What can I do to further improve my question and have it re-opened?

Here's a summary of the solution I intend to post, once reopened:

I have now understood how to use Composer's autoloader to my benefit, and I am using Composer for getting everything I need into the app's directory. I am also using the same autoloader to get to my own classes in bootstrap.php, by following the PSR-0 convention.

index.php now has a single call to bootstrap.php for getting everything in place, then I directly start using my core class ExportExcel's functions through Symfony's service container and finish the export.

share|improve this question

closed as too localized by Yannis, hims056, Toon Krijthe, Manishearth, Martijn Pieters Dec 16 '12 at 11:56

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 3 down vote accepted

"Best practices", "common approach"

These parts of your question scare me a bit. It's not something that can be answered concretely, despite that you use a lot of concrete technology. It's also the case that you haven't shown what you've tried, or where you're stuck - you're looking for the "best" way to go about the problem.

That's a bit tricky to answer in its current form. I wouldn't be giving a reopen vote to this until it got to be more concrete.

share|improve this answer
Thank you for reading. I did not claim to be using 'best practices', I just would like to point out why I am doing what I am trying. I actually do have a concrete answer now, too, especially taking off on the answers I already got. When I posted that question I couldn't even start scripting because the problem was nebulous to me, now it is not. – Aditya M P Dec 16 '12 at 5:31
So as a demonstration of improvement, perhaps you should also share where each component lives to further demonstrate your point? – Makoto Dec 16 '12 at 5:32
Thanks, I have added this information to this question... – Aditya M P Dec 16 '12 at 5:45
Thanks for your help in reopening. I could post my answer to the question. Good day! – Aditya M P Dec 16 '12 at 6:11

Not the answer you're looking for? Browse other questions tagged .