|
|||
|
Hai all,
I understood the Controller and the View Creation. But i could not identify the Model files in this ZFwork. can any one tell me how we can add this Model? and how we can call the function from there? Thanks Mugesh. ![]() |
|
|||
|
It IS possible to make a Zend Framework application without ever having to use Models.
For models, you will be deriving a class from the abstract class Zend_Db_Table. Each model will represent a table in your database. Store these classes in application/models/. Each file should only define one class. You have to make sure that this directory is in the include_path. This is done in the bootstrap file. Please refer to Zend_Db_Table in this exceptional tutorial on page 12: Akra’s DevNotes Tutorial: Getting Started with the Zend Framework |
|
|||
|
Thanks you. One more doubt.
My application url is: http://localhost/html/index.php/user/list This is for listing the users. To do edit option, i need to pass the id=2 in the same url. (http://localhost/html/index.php/user/list/id=2) LIKE THIS; while doing like this, its not working. Then how can i pass these kind of information thru url? -Mugesh. |
|
|||
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|