Solved

Zend 1.10: read custom data from application.ini

Posted on 2011-09-07
3
331 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

744 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

10 Experts available now in Live!

Get 1:1 Help Now