Magento - a Zend Framework Application

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    3 Favorites

    Magento - a Zend Framework Application - Presentation Transcript

    1. ZendCon 2009 Nov 4, 2009 | | Magento – a Zend Framework application By Dmitriy Soroka System Architect at Varien
    2. Magento Nov 4, 2009 | |
    3. Magento today
      • 1,000,000+ downloads
      • ~70 core modules in Community Edition
      • and ~20 in Enterprise Edition
      • Magento Core Team
      • Magento community
      • Magento connect
      Nov 4, 2009 | |
    4. Magento under the hood
      • PHP 5
      • OOP (MVC)
      • Zend Framework
      • Modular Architecture
      Nov 4, 2009 | |
    5. Nov 4, 2009 | | Select Magento Platform Frameworks CMS/CMF Systems E-Commerce
      • Zend Framework
      • CakePHP
      • CodeIgniter
      • Symfony
      • etc.
      • Joomla
      • Drupal
      • EZ Publisher
      • Mambo
      • etc.
      • osCommerce
      • VirtueMart
      • Zen-Cart
      • xCart
      • etc.
      • MVC architecture
      • Good documentation
      • Robust functionality
      • Comunity
      • Zend - the PHP company
      • Fast growth
      • PHP applications standard
      • ZF based application provides clear understanding for PHP developers
      • Clear development process and ability to contribute custom components
      Nov 4, 2009 | | Going with the Zend Framework
      • Application Level Components
      • Zend_Controller, Zend_View, Zend_Layout, Zend_Form etc.
      • Localization/Internationalization Level Components
      • Zend_Locale, Zend_Date, Zend_Currency, Zend_ Measure, Zend_Translate
      • Data Level Components
      • Zend_Db, Zend_Dom, Zend_Feed, Zend_Search etc.
      • Services
      • Zend_Gdata, Zend_Services, Zend_Soap etc.
      Nov 4, 2009 | | Zend Framework Functionality
      • Zend_Controller
      • Zend_View
      • Zend_Config
      • Zend_Application (since 1.8.0!)
      Nov 4, 2009 | | ZF components currently not used in Magento
      • Support multiple module routing
      • Internal URL rewrite logic
      • http://domain.com/product.html => catalog/product/view/id/1
      • Additional entry points
      • Magento events
      Nov 4, 2009 | | Magento Controller
    6. Nov 4, 2009 | | View level: Page Layout
    7. Nov 4, 2009 | | View level: Blocks page structure
    8. Nov 4, 2009 | | View level: Multiple themes support
      • About 15 ZF components are currently used
      • We plan to use ~10 more components
      • Goal – to use as many native ZF components as possible
      Nov 4, 2009 | | ZF components used in Magento
    9. Nov 4, 2009 | | Zend_Acl
      • Files
      • APC (shared memory)
      • Memcached
      • eAccelerator
      • Xcache
      • ZendPlatform
      • ZendServer
      Nov 4, 2009 | | Zend_Cache: backend models
    10. Nov 4, 2009 | | Zend_Cache: single server installation
    11. Nov 4, 2009 | | Zend_Cache: multiple frontends
      • Zend_Db_Adapter
      • Allows for integrating with different DB storage
      • Simplifies data managing operations
      • Zend_Db_Select
      Nov 4, 2009 | | Zend_Db
    12. Nov 4, 2009 | | Zend_Locale, Zend_Date, Zend_Currency
    13. Nov 4, 2009 | | Multiple locales support
      • Zend_Pdf
      • Zend_Feed
      • Zend_Mail
      • Zend_Validate
      • Zend_Filter
      Nov 4, 2009 | | Other ZF components in Magento
    14. Nov 4, 2009 | | Coming Soon
      • Zend_Application
      • Zend_Crypt
      • Zend_Form
      • Zend_Layout
      • Zend_Measure
      • Zend_Navigation
      • Zend_Paginator
      • Zend_Tag
    15. Nov 4, 2009 | | Zend_Form
      • Customer attributes as form fields
      • Form validation and filtering is easy
      • Integration with display logic
    16. Nov 4, 2009 | | ZF application and Magento Application ZF Application Magento Application application/         configs/         controllers/         layouts/         models/         modules/         services/         views/         Bootstrap.php data/         locales/         uploads/ library/ public/         css/         images/         js/         .htaccess         index.php scripts/         jobs/         build/ temp/ tests/ app/ code/ community/ core/ Mage/ .. modules local/ design/ adminhtml/ frontend/ install/ etc/ locale/ js/ lib/ Varien/ Zend/ media/ skin/ adminhtml/ frontend/ install/ var /
    17. Nov 4, 2009 | | ZF Module and Magento module structure ZF Module Magento Module <modulename>     configs/     controllers/     forms/     layouts/         filters/         helpers/         scripts/     models/     services/     views/         filters/         helpers/         scripts/     Bootstrap.php <modulename> Block/ controllers/ etc/ Helper/ Model/ Sql/
    18. Nov 4, 2009 | | Module Dependency
      • Dependency is specified in module declaration (app/etc/modules/*.xml)
      • Dependency determines the order in which the database is built/updated
      • Example:
      • <config>     <modules>         <Mage_Bundle>             <active>true</active>             <codePool>core</codePool>             <depends>                 <Mage_Catalog />             </depends>         </Mage_Bundle>     </modules> </config>
      Nov 4, 2009 | | Module Dependency
    19. Nov 4, 2009 | | Module Installation and Upgrade
      • Code Pools
      • /app/code/
      • core/
      • community/
      • local/
      • Configuration
      • models, blocks, helpers
      Nov 4, 2009 | | Overwriting Magento
      • Class overwriting (Model Example)
      • Create new module
        • (Ex: local/MyProject/MyModule)
      • Create class for your model customization
        • (Ex: MyProject_MyModule_Model_Customer extends Mage_Customer_Model_Customer)
      • Add overwriting instructions to config.xml
      • <config>             <global>                 <models>                     <customer>                          <rewrite>                             <customer>MyProject_MyModule_Model_Customer</customer>                         </rewrite>
      • Overwrite needed methods in your class
      • Now Mage::getModel('customer/customer')   =>
      • new MyProject_MyModule_Model_Customer
      Nov 4, 2009 | | Overwriting Core Model
    20. Nov 4, 2009 | | http://www.magentocommerce.com [email_address]

    + ZendConZendCon, 3 weeks ago

    custom

    543 views, 3 favs, 0 embeds more stats

    Talk by Dmitriy Soroka at ZendCon 2009

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 543
      • 543 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 3
    • Downloads 48
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories