P
P
polynuc2017-08-05 23:12:10
Yii
polynuc, 2017-08-05 23:12:10

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

1 answer(s)
M
matperez, 2017-08-05
@polynuc

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);

Details in the documentation
www.yiiframework.com/doc-2.0/guide-tutorial-yii-in...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question