Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 345
  • 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

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