草庐IT

extension-modules

全部标签

php - 'php_sqlsrv_56_ts.dll'扩展文件存在但是php.ini中没有 'extension=php_sqlsrv_56_ts.dll'行

我正在尝试将sql-server与php一起使用。我从thisunofficialsite下载了64位php_pdo_sqlsrv_56_ts.dll和php_sqlsrv_56_ts.dll.我把dll文件解压到D:\wamp64\bin\php\php5.6.31\ext。在php.ini中,我添加了以下行并重新启动了WAMP:[PHP_SQLSRV]extension=php_sqlsrv_56_ts.dll[PHP_PDO_SQLSRV]extension=php_pdo_sqlsrv_56_ts.dll在WAMP>php>extensions中,它向我展示了这个:单击这些扩展

php - Magento 2 : How to get product attributes collection in custom module block file whose status is visible =>yes?

这是我调用产品属性集合的函数我已经获得了已启用产品的产品属性,但我在根据它们自己的可见性过滤它们时遇到问题,即我只想要那些状态设置为可见的产品属性集合来自管理员....classProductListextends\Magento\Framework\View\Element\Template{protected$_attributeFactory;publicfunction__construct(\Magento\Catalog\Model\ResourceModel\Eav\Attribute$attributeFactory){parent::__construct($cont

PHP mcrypt_module_open 导致 500 错误

我有这个用于解密文件的PHP函数(使用PHP5.3),它以前工作得很好,但现在我搬到了AmazonEC2(基于AmazonLinuxImage2012.3),似乎mcryptinstall是已损坏或根本不可用。初步测试表明,文件解密确实适用于较小的文件,但不适用于20MB以上的文件(这不是特别大的文件)。我将问题追踪到导致错误500的这一行(我没有得到mcrypt_module_openisundefined,只有500个服务器错误)$td=mcrypt_module_open('rijndael-128','','cbc','');奇怪的是,我检查了/etc/php.ini,我根本看

php - Composer 安装 : the json extension is missing

我在Linux终端中写道:curl-shttps://getcomposer.org/installer|php它说:#!/usr/bin/envphpSomesettingsonyourmachinemakeComposerunabletoworkproperly.Makesurethatyoufixtheissueslistedbelowandrunthisscriptagain:Thejsonextensionismissing.Installitorrecompilephpwithout--disable-json我这样做了:apt-getinstallphp5-json所以,

php - Yii 2 : Using module's image declared as asset

我在以下结构的模块中有一个图像:vendor/myvendorname/mymodulename/assets/img/delete-icon.png我需要添加一个通过JavaScript到页面,它可能有src指向那个delete-icon.png的属性.$("#delete").attr("src","?");如果图像将放在Yii创建的Assets目录中,我如何引用图像?这条路径的获取方式是什么? 最佳答案 一旦您注册了AssetBundle,就可以获取它的baseUrl。在View的其余部分,您可以使用它来获取图像:$asset

php - Prestashop : how to override a module class contained in a file that includes other classes?

prestashop覆盖系统通过使用文件命名方案与许多其他系统一样工作。所以基本上,我将在/overrides/classes中创建一个与/classes中另一个具有相同类和文件名的类,只是为了简化。好吧,我必须覆盖它(使用最新的prestashop版本可以覆盖模块,而以前我们不能):include_once(dirname(__FILE__).'/MailAlert.php');classMailAlertsextendsModule{[....]}我可以用这个覆盖它:classMailAlertsOverrideextendsMailAlerts{[....]}好吧,它有效,文件和

php - 如何在不使用 ZF2.. 中的任何 Controller 对象的情况下访问 module.php 中的 Controller 插件?

我想在module.php中添加错误处理以在flashmessenger中添加所有错误消息并重定向到特定页面(在我的要求中):publicfunctionhandleError(MvcEvent$e){$exception=$e->getParam('exception');$controller=$e->getTarget();//echo$exception->getMessage();exit;if(!$e->getApplication()->getServiceManager()->get('AuthService')->hasIdentity()){$controller-

phpMyAdmin - 错误 : (The mysqli extension is missing) after upgrading php 5. 6 到 php 7

通过这种方式将php5.6升级到php7后,ubuntu16.04上的phpmyadmin出现问题:sudoadd-apt-repositoryppa:ondrej/phpsudoapt-getupdatesudoapt-getinstallphp7.0php5.6php5.6-mysqlphp-gettextphp5.6-mbstringphp-mbstringphp7.0-mbstringphp-xdebuglibapache2-mod-php5.6libapache2-mod-php7.0在这个命令之后:sudoa2dismodphp5.6;sudoa2enmodphp7.0;s

史上最全的Go语言模块(Module)管理详解(基于Go1.19)

  目录1.使用gomodules方式管理Go模块2.使用工作区管理Go模块3.设置全局模块名4.在VSCode中使用工作区模式管理Go模块   go语言一直到1.10,都是使用GOPATH设置模块搜索路径,但从1.11开始,引入了新的Go模块管理机制(gomodules),不过一直到1.15,默认的模块管理方式仍然是GOPATH,直到Go1.16开始,将默认的模块管理方式改成了gomodules,在这种工作模式下,每一个模块都必须使用go.mod文件指定模块的位置。        gomodules一经推出,就饱受诟病。最大的问题是如果go.mod文件中使用了绝对路径指定了模块路径,如果在g

php - OpenCart 2 : Show all subcategories in category module by default (php)

真的需要您的帮助才能完成这项工作。我正在使用OpenCart2.0.3.1,我希望边栏类别模块默认显示所有类别的所有子类别。目前,该模块仅在您单击某个类别时才显示子类别,并且仅显示该类别的子类别。你可以看看它的实际效果:http://demo.opencart.com/index.php?route=product/category&path=20(就是左边栏的模块)我只是在使用默认模块。我尝试了许多不同的方法来完成这项工作,但没有任何帮助。我知道我需要编辑这两个文件:目录/Controller/模块/category.phpload->language('module/categor