Yii Framework Forum: Where To Store Ini Files - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Where To Store Ini Files Where to store ini files Rate Topic: -----

#1 User is offline   smith19 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 21
  • Joined: 26-November 12

Posted 10 December 2012 - 02:47 AM

Hi All,
I want to store a ini file which holds some values. I want to store it in a location. Where should i store this file. Should i store in config directory?
0

#2 User is offline   LastDay 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 62
  • Joined: 06-March 11
  • Location:Russia

Posted 10 December 2012 - 04:20 AM

Yes, config directory is the most appropriate, in my opinion.
0

#3 User is offline   smith19 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 21
  • Joined: 26-November 12

Posted 10 December 2012 - 02:05 PM

How about data directory?

Thanks

View PostLastDay, on 10 December 2012 - 04:20 AM, said:

Yes, config directory is the most appropriate, in my opinion.

0

#4 User is offline   yugene 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 513
  • Joined: 08-August 09

Posted 11 December 2012 - 05:38 AM

You may use any place you'd like to. It's only more convenient to use commonly used directories in a case other developers will work with your code. If you'll be the only developer - it's a matter of your own choice and conveniency only, I think.


if you work with Yii:

'Data' directory is mostly used for storing files that provide some data (excuse me for repeating the word), e.g. sqlite files or dat file with list of something, for example.
'Config' directory is used for storing configuration files. So, if you have some configurations in your ini file, it has some logic to put it in config directory (at least at would for me and for the previous commentator, LastDay).
0

#5 User is offline   smith19 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 21
  • Joined: 26-November 12

Posted 12 December 2012 - 03:28 AM

Thanks yugene.
I am also now using config directory as my ini files contains few configurations.

Cheers
Smith
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users