1. <tfoot id='CBroA'></tfoot>

    1. <i id='CBroA'><tr id='CBroA'><dt id='CBroA'><q id='CBroA'><span id='CBroA'><b id='CBroA'><form id='CBroA'><ins id='CBroA'></ins><ul id='CBroA'></ul><sub id='CBroA'></sub></form><legend id='CBroA'></legend><bdo id='CBroA'><pre id='CBroA'><center id='CBroA'></center></pre></bdo></b><th id='CBroA'></th></span></q></dt></tr></i><div id='CBroA'><tfoot id='CBroA'></tfoot><dl id='CBroA'><fieldset id='CBroA'></fieldset></dl></div>
    2. <legend id='CBroA'><style id='CBroA'><dir id='CBroA'><q id='CBroA'></q></dir></style></legend>

        <bdo id='CBroA'></bdo><ul id='CBroA'></ul>

      <small id='CBroA'></small><noframes id='CBroA'>

    3. 如何为 Joomla 1.6 创建自定义错误页面 (404)?

      How do I create a custom error page (404) for Joomla 1.6?(如何为 Joomla 1.6 创建自定义错误页面 (404)?)
      <legend id='Vxr1G'><style id='Vxr1G'><dir id='Vxr1G'><q id='Vxr1G'></q></dir></style></legend>
            <bdo id='Vxr1G'></bdo><ul id='Vxr1G'></ul>
            <tfoot id='Vxr1G'></tfoot>

            <small id='Vxr1G'></small><noframes id='Vxr1G'>

              • <i id='Vxr1G'><tr id='Vxr1G'><dt id='Vxr1G'><q id='Vxr1G'><span id='Vxr1G'><b id='Vxr1G'><form id='Vxr1G'><ins id='Vxr1G'></ins><ul id='Vxr1G'></ul><sub id='Vxr1G'></sub></form><legend id='Vxr1G'></legend><bdo id='Vxr1G'><pre id='Vxr1G'><center id='Vxr1G'></center></pre></bdo></b><th id='Vxr1G'></th></span></q></dt></tr></i><div id='Vxr1G'><tfoot id='Vxr1G'></tfoot><dl id='Vxr1G'><fieldset id='Vxr1G'></fieldset></dl></div>
                  <tbody id='Vxr1G'></tbody>

              • 本文介绍了如何为 Joomla 1.6 创建自定义错误页面 (404)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                如何为 Joomla 1.6 创建自定义错误页面 (404)?

                How do I create a custom error page (404) for Joomla 1.6?

                我尝试了一个教程 (http://docs.joomla.org/Tutorial:Create_a_Custom_404_Error_Page),但它适用于 1.5,但它不起作用.

                I've tried a tutorial (http://docs.joomla.org/Tutorial:Create_a_Custom_404_Error_Page) but it's for 1.5 and it's not working.

                谢谢.

                推荐答案

                ->code 的调用是对受保护属性的调用,也就是不再可能.您必须使用 getCode().1.6 的固定代码:

                The call to ->code is a call to a protected property, aka not possible any more. You have to use getCode(). The fixed code for 1.6 :

                  if ($this->error->getCode() == '404') {
                          header('Location: /index.php?option=com_content&view=article&id=214');
                          exit;
                  } ;
                

                这现在适用于 Yoomla 1.6.(作为对 http://docs.joomla.org/Creating_a_Custom_404_Error_Page 上的 1.5 示例的修复 - 其余的此页面上是准确的)

                This works for Yoomla 1.6 now. ( as a fix for the 1.5 example on http://docs.joomla.org/Creating_a_Custom_404_Error_Page - the rest on this page is accurate)

                这篇关于如何为 Joomla 1.6 创建自定义错误页面 (404)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Is Joomla 2.5 much faster than Joomla 1.5 Querywise(Joomla 2.5 比 Joomla 1.5 Querywise 快得多吗)
                How to share Joomla login session from one joomla website to one ASP.Net MVC website(如何将 Joomla 登录会话从一个 joomla 网站共享到一个 ASP.Net MVC 网站)
                htaccess redirect root to subdirectory but allow index.php in root AND query strings to function(htaccess 将根重定向到子目录,但允许根和查询字符串中的 index.php 起作用)
                Joomla include database functions(Joomla 包含数据库功能)
                nl2br() not working when displaying SQL results(显示 SQL 结果时 nl2br() 不起作用)
                Joomla 2.5 JFactory::getSession(); seems to be caching in firefox(Joomla 2.5 JFactory::getSession();似乎在 Firefox 中缓存)
                  <tbody id='qht9d'></tbody>

                  <small id='qht9d'></small><noframes id='qht9d'>

                      <tfoot id='qht9d'></tfoot>
                        <bdo id='qht9d'></bdo><ul id='qht9d'></ul>
                        1. <legend id='qht9d'><style id='qht9d'><dir id='qht9d'><q id='qht9d'></q></dir></style></legend>

                          <i id='qht9d'><tr id='qht9d'><dt id='qht9d'><q id='qht9d'><span id='qht9d'><b id='qht9d'><form id='qht9d'><ins id='qht9d'></ins><ul id='qht9d'></ul><sub id='qht9d'></sub></form><legend id='qht9d'></legend><bdo id='qht9d'><pre id='qht9d'><center id='qht9d'></center></pre></bdo></b><th id='qht9d'></th></span></q></dt></tr></i><div id='qht9d'><tfoot id='qht9d'></tfoot><dl id='qht9d'><fieldset id='qht9d'></fieldset></dl></div>