This is a test
- 260 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
eBook - ePub
Magento PHP Developer's Guide - Second Edition
Book details
Book preview
Table of contents
Citations
About This Book
About This Book
- Learn one of the most up-to-date JavaScript platforms, with easy to follow, step-by-step instructions
- Familiarize yourself with Meteor's new and improved features
- Create dynamic, multi-user applications in JavaScript
Who This Book Is For
This book is for developers or students who have a working knowledge of JavaScript and HTML, and want to learn how to quickly develop full-stack web applications using pure JavaScript.
Frequently asked questions
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Both plans give you full access to the library and all of Perlegoâs features. The only differences are the price and subscription period: With the annual plan youâll save around 30% compared to 12 months on the monthly plan.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, weâve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes, you can access Magento PHP Developer's Guide - Second Edition by Allan MacGregor in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming in PHP. We have over one million books available in our catalogue for you to explore.
Information
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
Magento PHP Developer's Guide Second Edition
Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: April 2013
Second edition: July 2015
Production reference: 1270715
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78355-419-5
www.packtpub.com
Credits
Author
Allan MacGregor
Reviewers
Bartosz GĂłrski
Amr Shahin
Commissioning Editor
Edward Gordon
Acquisition Editors
Tushar Gupta
Owen Roberts
Content Development Editor
Arun Nadar
Technical Editors
Edwin Moses
Gaurav Suri
Copy Editors
Shambhavi Pai
Stuti Srivastava
Project Coordinator
Nikhil Nair
Proofreader
Safis Editing
Indexer
Hemangini Bari
Graphics
Sheetal Aute
Production Coordinator
Shantanu N. Zagade
Cover Work
Shantanu N. Zagade
About the Author
Allan MacGregor is a Magento Certified Developer Plus with 4 years of Magento experience. He also has a certification in Linux System Administration from IBM. He started working with Magento as a freelancer, looking for a better framework to build e-commerce solutions with, and he is now the Magento lead developer at Demac Media (http://www.demacmedia.com). At Demac Media, he has participated in building core solutions for a wide range of clients; this has given him the experience and knowledge to solve many Magento challenges. As part of an internal project at Demac Media, he worked on Triplecheck.io (http://triplecheck.io/), a unique service to monitor and audit the code health of a Magento store. He's very passionate about software development in general. He is constantly working with new technologies and frameworks. You can also follow him on Twitter at http://www.twitter.com/allanmacgregor.
About the Reviewers
Bartosz GĂłrski is a Magento developer with four Magento certifications (Developer, Developer Plus, Front End Developer, and Solution Specialist). He's b...
Table of contents
- Magento PHP Developer's Guide Second Edition