Answer the question
In order to leave comments, you need to log in
Strange job include?
I have created a Yii console application. In the config, I specified import as needed.
'import' => array(<br>
'application.models.*',<br>
'application.forms.*',<br>
'application.components.*',<br>
'application.validators.*',<br>
),<br>
public function actionDequeue()<br>
{<br>
$smsTask = SmsTasks::getReadyTask();<br>
Fatal error: Class 'SmsTasks' not found in D:\xampp\htdocs\local\newlk\protected\commands\SmsCommand.php on line 15<br>
.;D:\xampp\htdocs\local\newlk\protected\validators;<br>
D:\xampp\htdocs\local\newlk\protected\components;<br>
D:\xampp\htdocs\local\newlk\protected\forms;<br>
D:\xampp\htdocs\local\newlk\protected\models;<br>
\xampp\php\PEAR<br>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question