Answer the question
In order to leave comments, you need to log in
How to make Yii2 methods available to OpenCart classes?
Hello!
I need an online store and the functionality on the initial plan is standard, so I decided to take OpenCart, but further expansion may require Yii2, which I just started learning.
Is it possible to make Yii2 functionality available inside OpenCart classes? That is, so that Yii2 can use its own models, etc.?
Answer the question
In order to leave comments, you need to log in
Add Yii via composer, write somewhere in index.php
require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php');
$yiiConfig = require(__DIR__ . '/../config/yii/web.php');
new yii\web\Application($yiiConfig);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question