定制 steffenmaechtel/exception_handling_for_typo3_db 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

steffenmaechtel/exception_handling_for_typo3_db

Composer 安装命令:

composer require steffenmaechtel/exception_handling_for_typo3_db

包简介

TYPO3 CMS extension: Throw exception in case of error instead of show error with DebugUtility::debug

关键字:

README 文档

README

Throw exception in case of error instead of show error with DebugUtility::debug

Current handling in TYPO3 8.x with the old $GLOBALS['TYPO3_DB']

Execution of a wrong sql query only shows a debug message and dont throw an exception

$GLOBALS['TYPO3_DB']->sql_query('SELECT not_existing_field FROM pages');

In case of using a redirect after this query ($this->redirect()) the error is not shown at all

What does this extension do

Overload the class behind $GLOBALS['TYPO3_DB'] and throw exception in case of sql error

Notice

Avoid using $GLOBALS['TYPO3_DB']. Its deprecated since TYPO3 8.5.

Use the new \TYPO3\CMS\Core\Database\ConnectionPool.

This extension might help in case you cant rewrite old stuff using $GLOBALS['TYPO3_DB'].

@see https://docs.typo3.org/typo3cms/extensions/core/Changelog/8.1/Feature-75454-DoctrineDBALForDatabaseConnections.html

@see https://docs.typo3.org/typo3cms/extensions/core/Changelog/8.5/Deprecation-78244-DeprecateTYPO3_DBAndPreparedStatementClass.html

统计信息

  • 总下载量: 9
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 9
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2018-11-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固