You are on page 1of 9

TI LIU HNG DN NG GI MODULE MAGENTO 1.

7 Ti liu k thut 07/2012

Lch s chnh sa
Ngy thng 07/2012 Version 1.7 M t Ngi vit Nguyn Vn Linh

Trang 2 /9

Ti c module bloghome c cu trc nh sau:

Nhng files v folders ca module:


File app/design/adminhtml/default/default/layout/bloghome_blog.xml : layout giao din admin Folder app/design/adminhtml/default/default/template/bloghome : cha ton b template admin ca module. File app/design/frontend/base/default/layout/bloghome_blog.xml: layout frontend ca module. Folder app/design/frontend/base/default/template/bloghome: ton b templates frontend ca module. File app/etc/modules/Bloghome_Blog.xml: activation file. File app/locale/en_US/Bloghome_Blog.csv v de_DE/Bloghome_Blog.csv : l hai file ngn ng ca module

Tin hnh ng gi
Vo admin => Configuration => Magento Connect > Package Extensions. Ti y c mt s tab ng gi ( Create Extension Package page):

Package Info Release Info Authors Dependencies Contents

1. Package Info

Name: tn gi, t tn theo gi module Channel : community. Supported releases: nu chn Pre-1.5.0.0 th gi s c ng gi vo: var/pear/folder. Chn 1.5.0.0 & later" gi s c to trong var/connect/. Bn c th chn c hai loi. Summary and Description: m t

Trang 3 /9

License: Thng tin bn quyn, c mt s loi bn quyn sau o * GNU General Public License (GPL) o * GNU Lesser General Public License (LGPL) o * Open Software License (OSL) o * Mozilla Public License (MPL) o * BSD License o * Apache Software License o * MIT License o * Academic Free License (AFL) o * Bn quyn ca bn (commercial) License URI : v d: http://opensource.org/licenses/osl-3.0.php

2. Release Info Thng tin v phin bn

Trang 4 /9

3. Authors Thng tin ti khon user

Trang 5 /9

4. Dependencies Thng tin v php v cc th vin m rng c bit km theo.

Trang 6 /9

5. Contents - khai bo thng tin module m bn mun ng gi, ng dn tng ng nh sau:


Magento Local module file - ./app/code/local Magento Community module file - ./app/code/community Magento Core team module file - ./app/code/core Magento User Interface (layouts, templates) - ./app/design Magento Global Configuration - ./app/etc Magento PHP Library file - ./lib Magento Locale language file - ./app/locale Magento Media library - ./media Magento Theme Skin (Images, CSS, JS) - ./skin Magento Other web accessible file - ./ Magento PHPUnit test - ./tests Magento other - ./ l source ti th mc gc cu site

y cho php bn chn kiu l file hoc ton b forder (Recursive Dir )

Trang 7 /9

Sau khi chn xong source module ca bn th bn chn nt: Saving Data and Creating Package Khi ton b module ca bn c to thnh mt file nn (.tgz) v file .xml trong th mc tng ng vi phin bn bn chn. Trong file .xml s cha m key bn upload ln http://magentocommerce.com. Cn nu bn ci t t file nn th khng cn quan tm ti file .xml ny.

Tham kho thm: http://www.magentocommerce.com/wiki/7__magento_connect/creating_magento_connect_extension_package http://www.magentocommerce.com/wiki/7_-_magento_connect/packaging_a_magento_extension

Trang 8 /9

CHC THNH CNG!

THNG TIN LIN H H TR

DVMS (08) 360 289 37 info@dvms.vn www.DVMS.vn

Trang 9 /9

You might also like