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


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-20-2008, 07:50 AM
Member
 
Join Date: Feb 2008
Posts: 46
Question Model Integration

Hi,

If i am going to use models with my view and controller, then will it affect the functionality of zend framework?


- Mugesh.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 05:42 PM
Senior Member
 
Join Date: Jan 2008
Location: chicago
Posts: 101
Default

What do you mean by 'models'?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 05:44 PM
Senior Member
 
Join Date: Jan 2008
Location: chicago
Posts: 101
Default

if by models you are referring to 'model view controller', then models normally would represent a table in a database. You need to make sure your models directory is in the 'include_path'. This is taken care of in your bootstrap file. Each model will be a class declaration that extends Zend_Db_Table. Only 1 model should be defined per file.

Zend Framework: Documentation
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 08:20 AM
Member
 
Join Date: Feb 2008
Posts: 46
Question

If i do so, then can you give me the model class structure?. Then we can and add the model's path in the "include_path". My question is, How to call the model's class methods and how to make it to function ? And do we need to pass this Model key thru URL?

-Mugesh.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-21-2008, 01:34 PM
Member
 
Join Date: Feb 2008
Posts: 46
Question

What do u mean by "bootstrap" file here. Because now i am running the things thru index.php only. Do u mean the index.php file is bootstrap?

-mugesh.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-22-2008, 06:16 AM
Senior Member
 
Join Date: Jan 2008
Location: chicago
Posts: 101
Default

Quote:
Originally Posted by murugesanme View Post
What do u mean by "bootstrap" file here. Because now i am running the things thru index.php only. Do u mean the index.php file is bootstrap?

-mugesh.
YES


The index.php file is called the BOOTSTRAP FILE. Every single http request made to your web site is directed to index.php. Therefore, all of your settings are stored there. It is the most important file in your web app.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-22-2008, 08:37 AM
Member
 
Join Date: Feb 2008
Posts: 46
Default

Thanks. I am clear now.
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 10:30 PM.