A
A
alex5e2014-04-11 22:15:25
Yii
alex5e, 2014-04-11 22:15:25

How to create custom table with config in Yii?

Hello. Can you please tell me how to organize the storage of some settings in the database, with the ability to set them in the view of the controller responsible for administration, and access them in any of the controllers or views?
Maybe there are already some ready-made extensions for this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri Morozov, 2014-04-11
@alex5e

Store - just like all other data.
Get access - in the prefilter of the controller, for example, with overwriting app ()-> params
There are extensions (in Google or on the English forum, such an extension was mentioned there just yesterday)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question