magento 1 mvc template workflow
Download
Skip this Video
Download Presentation
Magento #1 - MVC - Template - WorkFlow

Loading in 2 Seconds...

play fullscreen
1 / 19

Magento #1 - MVC - Template - WorkFlow - PowerPoint PPT Presentation


  • 78 Views
  • Uploaded on

VIDA. Magento #1 - MVC - Template - WorkFlow. MVC. Mage\_Model Mage\_Model\_Resource. Mage\_Controller\_Front Mage\_Events. Mage\_Block Mage\_Helper. Class naming conversion. Zend -style Format Mage\_Catalog\_Model <Namespace>\_<Module-name>\_Model\_ Notes: Case sensitive Camelcase

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Magento #1 - MVC - Template - WorkFlow' - willis


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
slide2
MVC
  • Mage_Model
  • Mage_Model_Resource
  • Mage_Controller_Front
  • Mage_Events
  • Mage_Block
  • Mage_Helper
class naming conversion
Class naming conversion
  • Zend-style
  • Format
    • Mage_Catalog_Model
    • __Model_
  • Notes:
    • Case sensitive
    • Camelcase
      • Likipe_Demo_Model_CustomerService
    • Subfolder for each “dash”
class naming conversion1
Class naming conversion
  • Naming conversion
controller
Controller
  • Routing
    • Front controller
    • URL Rewrite
    • HTACCESS
  • Verify routingMage::app()->getFrontController()->getRequest()->getRouteName()
model
Model
  • E.A.V (Entity–Attribute–Value)
  • Use
    • Mage::getModel()
    • Mage::getSingleton()
  • Resources
    • DB layer to work with MySQL
    • = table in MySQL
slide7
View
  • Blocks
  • Theme
block
Block
  • Template: “A Block is a box (or any other form) where your module is shown”
block1
Block
  • Develop: “A Block is a class that includes all functions which helps to display data in view”
template theme
Template - theme

skin

app

css

layout

Theme

Concept

images

template

js

locale

theme

template theme1
Template - theme
  • Layouts : XML files, define block structure(module layout) , in which you decide to put some box in some page as a module function.
  • Templates : phtml files, in which you do the coding with xhtml and PHP.
  • Locale: language translations in .csv file format.
  • Skins : css, images, javascript, where u do the beautifications.
workflow theme development1
Workflow – Theme development
  • Use local.xml
    • Remove/add blocks
    • Change template file
  • Copy xml files:
    • Layout change (modify on many blocks)
  • Copy phtml files
    • Keep the PHP codes (correct data)
    • HTML changes only
  • Translate via /locale/sv_SE/translate.csv
ad