|
|||
|
Hai all,
I am doing one book management process using ZFwork. I dont understand the full looping of this Framework. Can anyone give me some idea on this to do this application.? I just done the folder structure. Created Book Controllers with different functions(addAction, editAction, deleteAction, updateAction) like that. I dont know whether i am doing this in a proper way or not.? Can anyone tell me where i have to keep the models and whats the content of that model.? Thanks in advance. Mugesh. |
|
|||
|
models are only used to represent tales in the database. You don't even necessarily need them. Each time a request is made to the web site, it loads the bootstrap file which in turn loads the Front Controller. Make sure you have IndexController.php defined and indexAction() defined inside that class for your default page.
|
|
|||
|
Hi,
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. |
|
|||
|
Make sure you have your bootstrapping set up correctly.
All URLs in the Zend Framework are defined like so: PHP Code:
http://localhost/user/list/id/2 You shouldn't need to have to put 'html' in the URL. You should have the 'html' folder be the Document Root. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|