|
|||
|
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. |
|
|||
|
hi
you can create a model link following then save in path of your project/application/models : PHP Code:
PHP Code:
|
|
|||
|
You can just extend the db_table_abstract, but I find that zamanphp's method is much better. The one change I would make is that I create the db class from the registery at the top of my controller, then pass it as a reference to all my models. I would change the controller to this:
PHP Code:
PHP Code:
Last edited by Jhorra : 02-25-2008 at 04:04 PM. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|