Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
配置文件以生成Yii翻译消息文件_Yii_Yiic - Fatal编程技术网

配置文件以生成Yii翻译消息文件

配置文件以生成Yii翻译消息文件,yii,yiic,Yii,Yiic,我使用YIC消息生成交易时出错: Error:the configuration file is not specified 我有一个配置文件/protected/messages/config.php <?php /** * This is the configuration for generating message translations * for the Yii framework. It is used by the 'yiic message' command.

我使用YIC消息生成交易时出错:

Error:the configuration file is not specified
我有一个配置文件/protected/messages/config.php

<?php
/**
 * This is the configuration for generating message translations
 * for the Yii framework. It is used by the 'yiic message' command.
 */
return array(
        'sourcePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'../..',
        'messagePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'messages',
        'languages'=>array('de','it','fr'),
        'fileTypes'=>array('php'),
        'overwrite'=>true,
        'exclude'=>array(
                '.svn',
                'yiilite.php',
                'yiit.php',
                '/i18n/data',
                '/blog',
                '/web/js',
                '/protected/gii',
                '/protected/yii',
                '/protected/messages',
                '/protected/extensions/giix-core',
                '/images',
                '/media',
                '/assets',
                '/protected/assets',
                '/protected/vendors',
        ),
);

我必须编写yiic message/config.php来集成显而易见的配置。。。对不起,我不习惯cmd

通过右键单击受保护的文件夹打开控制台

和类型:

yiic message message/config.php

请确保您必须将配置文件保留为protected/config/console.php,如果未在protected/yiic.phpHow上配置配置文件,那么您是否执行了此操作?它应该是yiic message path/to/config/file?
yiic message message/config.php