przewiń do treści

Symfony 2 od podstaw

Włodzimierz Gajda

<?php

namespace My\ZabytekBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;

class WiezaController extends Controller
{
    /**
     * @Route("/wieza.html", name="url_wieza")
     * @Template()
     */
    public function indexAction()
    {
        return array();
    }
}

Listing 5.8. Plik WiezaController.php

Rozdział 5. Hiperłącza i struktura aplikacji

listing-05-08.txt

Reklama

Szkolenia z Symfony 2.1
©2012 Włodzimierz Gajda
ver. 1.0.1