-
Install this plugin for your CakePHP app.
AssumingAPP
is the directory where your CakePHP app resides, it's usuallyapp/
from the base of CakePHP.cd APP/Plugin git clone git://github.com/LubosRemplik/CakePHP-Magento-API-Plugin.git Magento
-
Set up datasource, example is in Magento/Config/database.php.default (you need to get api user and key in magento admin panel).
-
Include needed model in your controller or anywhere you want to
$uses = array('Magento.CategoryProduct'); ... $data = $this->CategoryProduct->listWithInfo(); debug ($data);
$data = ClassRegistry::init('Magento.CategoryProduct')->listWithInfo(); debug ($data);