Php Laravel lang错误,无任何解释
我的项目中的lang文件有问题。事实证明,我为不同的视图创建了lang文件,但其中一个视图出现了错误,并且没有显示对错误的任何解释 : 1 Symfony\Component\Debug\Exception\FatalErrorException …/app/lang/en/opportunities.php:6 0照明\异常\处理程序手柄关闭:0 Symfony\Component\Debug\Exception\FatalErrorException(E_未知) :Php Laravel lang错误,无任何解释,php,laravel,laravel-4.2,Php,Laravel,Laravel 4.2,我的项目中的lang文件有问题。事实证明,我为不同的视图创建了lang文件,但其中一个视图出现了错误,并且没有显示对错误的任何解释 : 1 Symfony\Component\Debug\Exception\FatalErrorException …/app/lang/en/opportunities.php:6 0照明\异常\处理程序手柄关闭:0 Symfony\Component\Debug\Exception\FatalErrorException(E_未知) : 返回数组( “机遇”=>
返回数组(
“机遇”=>“机遇”,
“产品和服务”=>“产品和服务”,
“应用机会”=>“应用机会”,
“控制面板”=>“控制面板”,
“过滤器”=>“过滤器”,
“Opportunity”=>“Opportunity type”、//“Select”,
“收音机”=>“收音机”,
“节日”=>“节日”,
“地点”=>“地点”,
'国家'=>'国家',
“选择国家”=>“选择国家”,
“城市”=>“城市”,
“选择城市”=>“选择城市”,
“音乐流派”=>“音乐流派”,
“日期”=>“日期”,
“过滤器”=>“过滤器”,
“应用程序已发送消息”=>“您的应用程序已发送!如果要查看,请转到您的应用程序列表。”,
“未完成的配置文件消息”=>“请记住完成您的乐队配置文件。这在审核过程中非常重要。”,
“查看配置文件”=>“查看配置文件”,
'关于机会'=>'关于机会',//您在最后一行用}
关闭数组,应该是)
;) 我已插入链接图像,但代码应显示为文本。您能提供此错误的日志吗?在刀片文件中如何称呼Lang?谢谢你们的评论,伙计们,我的阵列关闭有错误:)谢谢@mickmackusa!我下次再做;)标记为主题外->打字错误。这个问题对未来的读者没有价值。
return array(
'opportunities_' => 'Opportunities',
'products-and-services' => 'Products and Services',
'applied-opportunities' => 'Applied Opportunities',
'control-panel' => 'Control Panel',
'filters' => 'Filters',
'oppportunity' => 'Opportunity type', // <-- key has 3 p's in OP's screenshot
'select' => 'Select',
'radio' => 'Radio',
'festival' => 'Festival',
'venue' => 'Venue',
'country' => 'Country',
'select-country' => 'Select country',
'city' => 'City',
'select-city' => 'Select a city',
'music-genre' => 'Music Genre',
'date' => 'Date',
'filter' => 'Filter',
'application-sent-message' => 'Your application has been sent! If you want to see it, go to your list of applications.',
'uncompleted-profile-message' => 'Remember to complete your band profile. It will be important in the reviewing process.',
'see-profile' => 'See Profile',
'about-the-oppotunity' => 'About the Opportunity', // <-- key missing r in OP's screenshot
'download-the-bases' => 'Download the bases',
'deadline' => 'Deadline',
'apply' => 'Apply',
'more-information' => 'More Information',
'download-file' => 'Download File',
'gallery' => 'Gallery',
'get-coupon-code' => 'Get coupon code',
'exchange-code' => 'Exchange Code',
}; // <!-- erroneous curly bracket to close the array in OP's screenshot