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 5957221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:22:12+00:00 2026-05-22T18:22:12+00:00

I have created an extension in magento; The extension is basically one php file.

  • 0

I have created an extension in magento; The extension is basically one php file. this is how it is supposed to work: It includes the mage.php file and gets contents of a store and writes an xml file. Now this XML file needs to be accessed and read by another script through the web. The problem is that the installed magento extensions folder is not web accessible.

/app/code/community/[CompanyName]/[PackageName]

But I know that when my file is located at the root folder of a magento installation, it works.
1. How can i create the extension to make it be installed in the root folder or any folder which is web accessible?

Thanks.

  • 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-05-22T18:22:13+00:00Added an answer on May 22, 2026 at 6:22 pm

    You can put your files anywhere you like if they don’t have to be available to the rest of Magento. It sounds like you are not writing a module so does not need to be in the app/code/ folder. When packaging your extension remember to use the content target “Other web accessible file” which is relative to the root folder.

    A more conventional way is to write a module with a controller. It will be the controller that responds to requests with XML content. The URL can then be anything by leveraging Magento’s URL rewrites. This way the XML can be generated on demand so it is always accurate. Some servers won’t necessarily have full write access to the root folder for security reasons.

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

Sidebar

Related Questions

I need to associate a file extension I have created .rulog with notepad.exe as
In this situation, I have created a zip file containing search result files, and
Possible Duplicate: Magento Packaging an Extension Hi, I have created a wireframe theme for
I have created a chrome extension for the company I work for, and want
i have installed SharePoint 2007 and VS2008 extension on my computer.i have created a
I have created a PHP-script to update a web server that is live inside
I have created a C# class file by using a XSD-file as an input.
I have make a little Extension for Magento 1.6.2. I managed to write code
I have created a Chrome extension that uses the hotkeys [Alt]+[0...9] only to discover
This is a generalized example of what I am up against. I have created

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.