<?php

namespace AppBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;

class DefaultController extends Controller
{
    public function indexAction(Request $request)
    {
		$tmp=array();
		$cities=array('Aarberg','Aegerten','Agiez','Aigle','Aproz','Arch','Ardon','Athenaz','Aubonne','Avenches','Ballaigues','Basel','Bassecourt','bellmund');
		 for($i=0;$i<count($cities);$i++){
			 $tmp[] = array(
					'text' => $cities[$i]
				);
		 }
		 $params=array("cities"=>$tmp);
		
        // replace this example code with whatever you need
        return $this->render( 'AppBundle::pagelayout.html.twig',
            $params
        );
    }
}
