Category: yii
-
Intergrate Twillio and the Yii Framework
For anyone that wants to integrate the Twillio api with the Yii Framework, here’s a rough guide. Overview: Download the Twilio php api Place the Services folder into your components folder Update your controller Those should be all the steps you need, although I’m looking for a solution to get the code out of the…
-
XML Output with the Yii Framework
My quick solution for getting the Yii Framework to display XML data. I’m just going to give the code from a project that I’m working, so substitute in your own names where necessary. OverviewFiles to create: protected/views/[your_class]/[your_action].php protected/views/layouts/[your_xml_layout].php Files to modify: protected/controllers/[your_controller].php In general, the approach is as follows. Create a layout that wraps our…