2. for connection establish /protected/config/main.php File open select All or paste in console.php file
3. then /protected/commands/SiteCommand.php
4. below code paste in SiteCommand.php File
<?php
class SiteCommand extends CConsoleCommand
{
public function run($args)
{
echo 'hello yii friends';
}
}
?>5. then open cmd
6. \path\protected>yiic then press Enter Key
7. then cmd show your commend name
8. \path\protected>yiic site then press Enter Key
9. show your output "hello yii friends".
Attached File(s)
-
cmd_curl.JPG (46.42K)
Number of downloads: 88

Help














