Solved

Zend 1.10: read custom data from application.ini

Posted on 2011-09-07
3
332 Views
Last Modified: 2012-05-12
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
Comment
Question by:wantime
3 Comments
 
LVL 34

Accepted Solution

by:
gr8gonzo earned 250 total points
ID: 36499158
0
 

Author Comment

by:wantime
ID: 36501031
hi, thanks. but i think zend should has its mechanismen to get information from application.ini, or am i wrong?
0
 
LVL 108

Assisted Solution

by:Ray Paseur
Ray Paseur earned 250 total points
ID: 36502378
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How do I put a session for a radio button? 4 14
datetime in sql 6 31
How can I echo a PHP variable in AJAX function? 7 35
php function to remove a file 26 11
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
This article discusses four methods for overlaying images in a container on a web page
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to dynamically set the form action using jQuery.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now