Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/286.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
安装后codeigniter篝火php错误_Php_Linux_Codeigniter_Netbeans_Bonfire - Fatal编程技术网

安装后codeigniter篝火php错误

安装后codeigniter篝火php错误,php,linux,codeigniter,netbeans,bonfire,Php,Linux,Codeigniter,Netbeans,Bonfire,我正在尝试安装codeigniter篝火。单击“创建用户名”屏幕上的“安装”按钮后,需要一些时间,然后加载此页面。我看了一些关于如何安装篝火的教程,所以我知道这不是我应该看到的 不管怎样,我将RewriteBase更新为/bonfire/,正如它所说的那样..现在我在尝试转到localhost/bonfire/index.php时遇到了这个错误 分析错误:语法错误,意外的“yield”(T_yield),应为 中的标识符(T_字符串) /opt/lampp/htdocs/bonfire/bonf

我正在尝试安装codeigniter篝火。单击“创建用户名”屏幕上的“安装”按钮后,需要一些时间,然后加载此页面。我看了一些关于如何安装篝火的教程,所以我知道这不是我应该看到的

不管怎样,我将RewriteBase更新为/bonfire/,正如它所说的那样..现在我在尝试转到localhost/bonfire/index.php时遇到了这个错误

分析错误:语法错误,意外的“yield”(T_yield),应为 中的标识符(T_字符串) /opt/lampp/htdocs/bonfire/bonfire/application/libraries/template.php 在线305

这是305行的代码

public static function yield()
{
    $output = '';

    if (self::$debug) { echo 'Current View = '. self::$current_view; }

    self::load_view(self::$current_view, NULL, self::$ci->router->class .'/'. self::$ci->router->method, FALSE, $output);

    Events::trigger('after_page_render', $output);

    return $output;

}//end yield()
我在篝火论坛上找到了解释错误的链接。

它说使用PHP5.4,这就是我正在使用的。我的操作系统是LinuxZorin,我使用的是LAMP,所以我不确定这是否是权限问题。


请提前发送thx,如果您需要更多信息,请告诉我。

我认为在LAMP中,PHP的版本是5.5+什么的。在PHP5.5中有一个函数名为yield,因此您必须将LAMP PHP版本降级为5.4或在Bonfire文件系统中进行修改

对于篝火的改变,你可以通过这个链接,你的问题已经解决了


您也可以晚一点查看此链接,但希望能有所帮助

您可以在cibonfire中更改静态函数yield的名称,如下所示:

public static function yield()
致:

这对我来说非常有效

public static function yield_content()