售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Magento PHP Developer's Guide Second Edition
Table of Contents
Magento PHP Developer's Guide Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Magento Fundamentals for Developers
Zend Framework – the base of Magento
The Magento folder structure
Modular architecture
Autoloader
Code pools
Routing and request flow
The Magento version of MVC
Models
Views
Dissecting a layout file
Controllers
Websites and store scopes
Factory names and functions
Events and observers
Event dispatch
Observer bindings
Summary
2. ORM and Data Collections
Magento Model anatomy
It's magic – methods
The EAV model
What is EAV?
Retrieving the data
Working with Magento collections
Get product collections only from a specific category
Get new products added since X date
Get bestseller products
Filter the product collection by visibility
Filter products without images
Add multiple sort orders
Using Direct SQL
Reading
Writing
Summary
3. Frontend Development
Extending Magento
Scenario
Features
Further improvements
Hello Magento!
The XML module configuration
Models and saving data
Creating the models
Setup resources
Defining a setup resource
Creating the upgrade script
What we have learned
Setting up our routes
IndexController
SearchController
ViewController
Blocks and layouts
IndexController blocks and views
SearchController blocks and views
ViewController blocks and views
Adding products to the registry
Summary
4. Backend Development
Extending Adminhtml
Back to the configuration
The grid widget
Managing the registries
Permissions and ACL
Updating in bulk with mass actions
The form widget
Loading the data
Saving the data
Summary
5. The Magento API
The Core API
XML-RPC
SOAP
The RESTful API
Using the API
Setting up the API credentials for XML-RPC/SOAP
Setting up the REST API credentials
Loading and reading data
Updating data
Deleting a product
Extending the API
Extending the REST API
Securing the API
Summary
6. Testing and Quality Assurance
Testing Magento
Unit testing
Regression testing
Functional testing
Test-driven development
Tools and testing frameworks
Unit testing with PHPUnit
Installing Ecomdev_PHPUnit
Setting up the configuration for our extension
The anatomy of a test case
Creating a unit test
Functional testing with Mink
Magento Mink installation and setup
Creating our first test
Summary
7. Deployment and Distribution
The road toward zero-downtime deployment
Making it right from scratch
Ensure that what you see is what you get
Magento naming conventions
Ready means ready
Version control systems
Subversion
Git
Distribution
Packing our extension
Package Info
Release Info
Authors
Dependencies
Contents
Load Local Package
Publishing our extension
Summary
A. Hello Magento
The configuration
The controller
Testing the route
B. Understanding and Setting Up Our Development Environment
LAMP from scratch
Getting VirtualBox
Booting our virtual machine
Installing Apache2
Installing PHP
Installing MySQL
Putting everything together
Up and running with Vagrant
Installing Vagrant
Choosing an IDE
Working with a version control system
Summary
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜