-
download CURL Class or paste below path.
-
/protected/extensions/curl/Curl.php
-
/protected/config/main.php
-
paste below code in main.php
<—to create your command in yii—>
-
database connection, in /protected/config/console.php
-
for connection establish /protected/config/main.php File open select All or paste in console.php file
-
then /protected/commands/SiteCommand.php
-
below code paste in SiteCommand.php File
-
then open cmd.
-
\path\protected>yiic then press Enter Key.
-
then cmd show your commend name.
-
\path\protected>yiic site then press Enter Key.
-
show your output.
-
But Most Imp Think(enable curl in php)
-
wamp\bin\php\php5.3.5\php(Configuration Setting) open file then
-
search this extension ";extension=php_curl.dll"
-
and remove ( ; ) semi-colon. "extension=php_curl.dll" . then save file
-
this semi-colon show disable curl ";extension=php_curl.dll" and enable curl "extension=php_curl.dll"