DefaultController.php 438B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace Muzich\GroupBundle\Controller;
  3. use Muzich\CoreBundle\lib\Controller;
  4. use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
  5. class DefaultController extends Controller
  6. {
  7. /**
  8. *
  9. * @Template()
  10. */
  11. public function myListAction()
  12. {
  13. $user = $this->getUser(true, array('join' => array(
  14. 'groups_owned'
  15. )));
  16. return array(
  17. 'groups' => $user->getGroupsOwned()
  18. );
  19. }
  20. }