Questions tagged [yiic]

The term `yiic` stands for Yii Framework Console, which is a CLI to run Yii Console application commands.

Yii Console applications are mainly used to perform offline work needed by an online Web application, such as code generation, search index compiling, email sending, etc. Yii provides a framework for writing console applications in an object-oriented way. It allows a console application to access the resources (e.g. DB connections) that are used by an online Web application.

23 questions
0
votes
1 answer

Yii shell_exec yiic command run not working

I am trying to send large number of email notifications using Yiic and run CConsoleCommand. Command is okay. There are no PHP errors. I can't run linux command using shell_exec. Here is part of code if ($post->save()) { …
0
votes
1 answer

Resizing batch of images with with yiic cronjob

I have this problem, I want to execute a cronjob but when I run the cron manually for testing I get permission issues. I am using the Yii framework and I call the cronjob using Yiic. I want to create a directory structure where every directory…
PimD1988
  • 307
  • 5
  • 14
0
votes
1 answer

Yiic message translation failing

I'm trying to prep translation for a module. my config.php is just a copy from the framework, modified 'languages' for just 'fr'. Here's my config.php file return array( 'language'=>'en', …
TomCDona
  • 150
  • 2
  • 10
0
votes
0 answers

yiic shell does not launch on OS X

I'm a rails developer returning to do a bit of PHP after many years in the rubyland. I've landed a Yii based project that I'm trying to get grips of and have run into an issue of not being able to run the yiic shell. Please see…
0
votes
2 answers

yiic migration error, failed to open stream

I'm new facing an issue when trying to apply database migration using Yii. First I'm creating a new migration using this :: ./yiic migrate create tr This gives me the following output. Yii Migration Tool v1.0 (based on Yii v1.1.14) Create new…
Maxx
  • 592
  • 18
  • 42
0
votes
3 answers

How to run several yiic commands in one .bat file?

I have an ImportCommand class which reads a file and imports the data from that file to a database. The command itself works fine. However, I need to run the same command several times with different files. My .bat file: @echo off cd…
boliviandev
  • 11
  • 1
  • 3
0
votes
1 answer

Yii Command line - How to initialize my entire web app and call other controller actions via yiic?

Update - I was able to solve this by adding application.controllers.* to config/console.php like so: 'import'=>array( 'application.models.*', 'application.components.*', 'application.controllers.*', …
111
  • 1,788
  • 1
  • 23
  • 38
-1
votes
1 answer

Yii2.0 yiic command not working

Hi I am new to Yii framework development. Yiic webapp not working, even when you run yiic on the commandline I was following a tutorial on-line but I got stuck because the yiic command is not recognised and I also noticed that the framework folder…
Helper -Joe
  • 101
  • 6
1
2