DGWebBrowser Extension ¶
DoubleGIS company presents Yii extensions. The DGApiClient is a wrapper of sfWebBrowserPlugin.
Requirements ¶
- Yii 1.1.*
- sfWebBrowserPlugin (already included into the package)
Installation ¶
- Unpack all files (including sfWebBrowser directory) under your project 'component' folder
- Include your new extension into your project main.php configuration file:
'components' => array(
...
'webBrowser' => array(
'class' => 'application.components.DGWebBrowser.DGWebBrowser',
'adapter' => 'curl' // curl | sockets | fopen
),
...
)
- Enjoy!
Usage: ¶
Yii::App()->webBrowser->get("http://api.2gis.ru");
echo Yii::App()->webBrowser->getResponseText();
For detailed description of methods and their parameters see documentation of the extension's base -- sfWebBrowserPlugin -- on http://www.symfony-project.org/plugins/sfWebBrowserPlugin/1_1_2
Support: curl, fopen and socket
Changelog: ¶
- 1.0 Initial release
User Contributed Notes 1
File missing
There are no sfConfig class specified in component, but used in code
Leave a comment
If you have any questions, please ask in the forum instead.
Join the conversation to share a note.