[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 348
  • Last Modified:

Zend 1.10: read custom data from application.ini

hello all,

i would like to put some custome data in application.ini, then read them from zend controller, how do i let it work?

for example, i put

username = root
password = psw

in application.ini, they should be readed when user login.

any suggestion would be appericate.

thanks,

wantime

ps. as i understand so far, it should be possible to wirte them in Registry or Namespace when bootstrap is loaded, then i just need to read them from Registry or Namespace  later.
but i don't know how the codes look like.
0
wantime
Asked:
wantime
2 Solutions
 
gr8gonzoConsultantCommented:
0
 
wantimeAuthor Commented:
hi, thanks. but i think zend should has its mechanismen to get information from application.ini, or am i wrong?
0
 
Ray PaseurCommented:
Not sure if this helps, but check this page for the string ".ini"
http://framework.zend.com/manual/en/zend.application.available-resources.html
0

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now