S
S
Sergey Beloventsev2017-10-16 12:59:54
Yii
Sergey Beloventsev, 2017-10-16 12:59:54

How to make changes to the global variable?

There is a task to create changeable settings such as adding a logo, the ability to change the price of delivery. All this data is now stored in common/config/params.php

  1. Is it possible to somehow get the ability to edit common/config/params.php (and even create new ones) parameters?
  2. If I understand correctly, you can create a table with settings and add all the contents to a global variable. The only question is how to implement it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2017-10-16
@Sergalas

Good afternoon.
Editing is not worth it, you do not need to climb into it from the admin panel.
Here's a solution , easy to convert to yii2.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question