Witam,
mam pomysł dotyczący uruchamiania wielu kontrolerów.

W URL'u podaję normalne parametry do routera
action=news&method=show&var=last
i tym sposobem odpalam metodę NewsAction::show('last');
I są one całkiem osobnymi klasami a Komponent wygląda np tak
Lecz potrzebuję odpalić drugi kontroler(Komentarze)
I piszę sobie taki mały helper nazwałem go MultiView

  1. <?php
  2. Commen_MultiView extends MultiView
  3. {
  4.  public function showComment($var1, $var2)
  5.  {
  6.   if (!$player->isAnoinymus)
  7.   $CommentController = $this->setController('CommentAction', 'method', array($var1, $var2));
  8.  }
  9. }
  10. ?>


Metoda setController przekaże kontroller odpowiednim mechanizmom do otwarcia