Hello, i have an architectural type question.

When displaying tabular data, say a list of users, it is established that
anything that manipulates data should be made via POST. So to view an
individual user's details, a GET link would be displayed, but to edit or
delete that row in the database, a small form with a hidden id is submitted
via POST.

This means that each table row will need two small forms in it.

When i currently retrieve data, i simply fetch it from my mapper and pass it
to the paginator, eg:
$paginator =
Zend_Paginator::factory($this->loadUserMapper()->fetchAllActive());
$paginator->setCurrentPageNumber($this->getRequest()->getParam('page'));
$paginator->setItemCountPerPage(15);
$this->view->assign('paginator', $paginator);

What is the best way of creating two forms (one for edit, one for delete)
for each record, and passing it to the view? 



--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Creating-edit-delete-forms-when-displaying-tabular-data-structure-in-controller-tp3331368p3331368.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to