Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

configure extension include files for compilation
 
mdruger
Jr. Member
 
Total Posts:  1
Joined:  2013-10-04
 

What is the best way to configure the files of our extension so that when in compilation mode, the required dependencies
can be located in the /Include/src directory?  We place our files in the default/app/code/local directory, and when in compilation mode, the files are renamed and placed into the default/include/src directory as this Original_file_location_fileName.php

An example, we have PHP files that call Require_once like this:

require_once(dirname(__FILE__) . “/RequiredFileName.php");

When our extension is run in compilation mode, the dependencies cannot be found. it is looking for the old file name and not the renamed filename in the local directory (include/src).

Can anyone help with a solution to this problem?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top