- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2016
03:05 PM
11-05-2016
03:05 PM
Hi,
Magento 2.0.10 and PHP 5.6.27
i have declare a etc\frontend\di.xlm en frondend whitch
<type name="Jbpevasion\Cartebleu\Block\Info"> <arguments> <argument name="data" xsi:type="array"> <item xsi:type="string" name="is_secure_mode">1</item> </argument> </arguments> </type>
and in etc\adminhtml\di.xml
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <type name="Jbpevasion\Cartebleu\Block\Info"> <arguments> <argument name="data" xsi:type="array"> <item xsi:type="string" name="is_secure_mode">0</item> </argument> </arguments> </type>
but if i test
if (!$this->getIsSecureMode()) { .... }
i have the same for the admin et front ... I've forgotten something?
thanks
Solved! Go to Solution.
Labels:
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2016
08:13 AM
11-06-2016
08:13 AM
in etc\frontend\di.xml you must add
<type name="Magento\Payment\Block\Info"> <arguments> <argument name="data" xsi:type="array"> <item xsi:type="string" name="is_secure_mode">1</item> </argument> </arguments> </type>
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2016
08:13 AM