Magento 1 mvc template workflow
This presentation is the property of its rightful owner.
Sponsored Links
1 / 19

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


  • 52 Views
  • Uploaded on
  • Presentation posted in: General

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

Download Presentation

Magento #1 - MVC - Template - WorkFlow

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


Magento 1 mvc template workflow

VIDA

Magento #1- MVC- Template- WorkFlow


Magento 1 mvc template workflow

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

    • <Namespace>_<Module-name>_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


Magento 1 mvc template workflow

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”


Block types

Block - Types


Block how to call

Block – How to call


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.


Theme fallback

Theme fallback


Theme development

Theme development


Theme development1

Theme development


Workflow theme development

Workflow – Theme development


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


Workflow requirement

Workflow Requirement


  • Login