문제

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..

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top