hey giugio,

without answering your real question (sorry, pressed for time right
now), I would just link to the regular admin list for comments and
pass a filter parameter to limit the list to the relevant comments
(i.e. those related to that article.

It's a very clean solution and keeps using the existing functionality.

Hope this helps.
Daniel



On Aug 11, 6:00 pm, giugio ferrari <gferrari...@gmail.com> wrote:
> Hy.
> I have two table with a foreign key , table1 :Articles
> table2 :Comments.
> For each article i can have many comments.
> I have created a form with the admin generator and a custom link in
> the articles form for display the related comments.
> Now if the user click on the related link in the articles form row i
> do a query for get all the related comments and put it in a var
> :
> public function executeShow($idParent)
> {
>    $this->comments = BlogCommentPeer::doSelectJoinComment($idParent);
>    //$this->redirect('/comment/show/'.$request->getParameter('id'));*/
>
> }
>
> where $idParent is the article id value.
> after i created the action success file .php(showSuccess.php) in
> templates folder.
> Now i would render the admin list form populated only with the
> comments that i have find.
> in the showSuccess.php
> The problem is that i don't know how find the admin list form and how
> populate it with all the related comments in $this->comments.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to