Files
Phraseanet/www/include/geonames.feedback.php
Nicolas Le Goff be09baf9f4 add twig service
2012-01-06 16:27:32 +01:00

40 lines
779 B
PHP

<?php
/*
* This file is part of Phraseanet
*
* (c) 2005-2010 Alchemy
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
*
* @package
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
* @link www.phraseanet.com
*/
include(__DIR__ . '/../../lib/bootstrap.php');
$output = '';
$request = http_request::getInstance();
$parm = $request->get_parms('action', 'city');
$action = $parm['action'];
switch ($action)
{
case 'FIND':
$geoname = new geonames();
$core = \bootstrap::getCore();
$twig = $core->getTwig();
$output = $twig->render('geonames/city_list.twig', array('geonames' => $geoname->find_city($parm['city'])));
break;
}
echo $output;