Intermediary trading http://www.aliyun.com/zixun/aggregation/6858.html"> SEO diagnostic Taobao customer hosting technology hall
magento separate payment plugin
Last time to others to do station payment, after the end of the file is not backed up, the other brother to modify this plug-in, in fact, is looking for documents, write down here, let buddies familiar with magento
Take Tpay as an example:
File distribution, starting from the site's root directory:
/app/code/local/Company/Tpay/app/design/frontend/default/default/template/Tpay/app/design/frontend/default/OSG/layout/Tpay.xml/app/etc/modules/Company_Tpay.xml
Related files and directories download down on the corresponding directory, even finishing
When needed, directly cover the root directory of the website;
Style files are not independent, so need to adjust the staff to look;
Generate a folder corresponding to the directory, I believe Baidu search a lot, but used unhappy, I wrote directly in php one, usually directly used in the editor to execute it:
PHP CREATE DIR PATH
/ ** * @author ado * @copyright 2012 * Create directory * / $ path = '/ app / etc / modules /'; $ root = 'F: \ Desktop \ magento_Tpay Payment Plugin'; $ path = str_replace (array $ Path = trim ($ path, DIRECTORY_SEPARATOR); $ _ parhArr = explode (DIRECTORY_SEPARATOR, $ path); $ root = rtrim ($ root, DIRECTORY_SEPARATOR); $ foreach ($ _ parhArr as $ _path) {$ root. = $ _ path.DIRECTORY_SEPARATOR; if (! is_dir ($ root)) {mkdir ($ root, 0777);}}
Use is very simple, as long as the change path, the operation will create the corresponding folder in the root directory