There are two modules - items (goods) and images (images). If the images module is active, then when adding / editing a product, display a field for downloading images (from the images module), if the images module is not active or deleted, then simply display the form for adding / editing goods without a field for loading images. Can you please tell how this can be organized?
|
if (Yii::$app->hasModule('images')){ }
- Ninazu