Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-13-2008, 02:58 AM
Junior Member
 
Join Date: Feb 2008
Posts: 4
Default how to pass the variables declared in a file to another in zend MVC

Can any one tell me how to pass the variables that is declared in a file thats there in incl folder of a public folder to index file in view folder. Thanks,
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-13-2008, 03:47 AM
Junior Member
 
Join Date: Jan 2008
Location: Chattanooga area
Posts: 8
Default

Quote:
Originally Posted by sukumar View Post
Can any one tell me how to pass the variables that is declared in a file thats there in incl folder of a public folder to index file in view folder. Thanks,
Check out this link.

Zend Framework: Documentation
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-13-2008, 06:57 PM
Senior Member
 
Join Date: Jan 2008
Location: chicago
Posts: 101
Default

Quote:
Originally Posted by sukumar View Post
Can any one tell me how to pass the variables that is declared in a file thats there in incl folder of a public folder to index file in view folder. Thanks,
Depending on what the variable is being used for, it may be more appropriate to store it in a configuration file using Zend_Config. Zend_Config is good for storing variables such a database connection info, turning error handling on or off, and permissions definitions.

Zend Framework: Zend_Config Documentation
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 08:28 AM.