[php/js] added index controller, restrul cart controller