Frage

Hi guys i am new to both here and Yii i am creating an web app using api for that i am using curl

i have done steps as per tutorial given in yii.

but it still shows this error

Property "CWebApplication.curl" is not defined

help me with your ideas..

War es hilfreich?

Lösung

most likely you have not configured Yii's Curl extension. Open the main.php in the protected/config.

find your "components" value and add the curl value like below

'components'=>array(
    'curl' => array(
         'class' => 'ext.curl.Curl',
         //'options' => array(/.. additional curl options ../)
    ),
)

this assumes that you are using the extension from http://www.yiiframework.com/extension/yii-curl/

if this is not your extension the solution is most likely the same just modify the "ext.curl.Curl" to point to the folder with your curl extension.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top