我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

在核心类子类中使用辅助类

I am planning to use anchor() inside my class which is a subclass of Ci's exception class. I've overridden the show_error() method to contain my custom definitions. I am planning to add a link to my home page for every error page, but it seems that I can't get an instance of CI because it will always error out:

Fatal error: Class 'CI_Controller' not found

I can't load the url helpers and other stuff.

Does anyone know how to get the instance of CI or a way to use anchor() on a custom subclass of core classes?

近期文章

  • php代码从/ images中检索图像
  • 在PHP中从数据库生成链接的问题
  • 在yii框架中定义include_path的位置是什么?
  • 如何将Mobile_Detect.php用于Web表单? [关闭]
  • PHP inpreter不在特定的虚拟主机中工作
  • 从组合框中选择项目后保持定位
  • 评论magento联系我们表格
  • 将csv与数组进行比较
  • ZipArchive类的对象无法转换为字符串
  • 如何在my-sql中完成这项工作?
  • 下载的文件有错误的mime-type
  • PHP,MySQL:如何将更改html内容插入/更新到MySQL中? [关闭]
  • 正则表达式如何从文本中删除所有LONG短划线/连字符和正常破折号?
  • Wordpress .htaccess阻止子文件夹重写自己的URL
  • 多维阵列打印
  • 用户xmlrpc使用PHP调用API
  • Yiistrap表格提交
  • 在Android Webview中使用PHP
  • 在php中将多个文件上传到服务器(页面上有多个数组)
  • PHP:从目录创建动态zip文件并从href链接下载

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华