Monday, January 12, 2015

Adding Products to Your eBay Store with the Trading API

In this third and final part of our eBay Trading API series, we’ll be building the product adding functionality into our application.



Creating new Products


Now that we’re done with the store settings, we can begin with writing the code for the controller that would handle the creation of products. Under the controllers directory, create a new file and name it Product.php.



<?php
class Product extends \SlimController\SlimController{

}


Next, create the newAction method. This will render the new.twig file under the templates/product directory. This is the view that renders the form for creating new products.


Continue reading %Adding Products to Your eBay Store with the Trading API%




by Wern Ancheta via SitePoint

No comments:

Post a Comment