20 lines
353 B
PHP
20 lines
353 B
PHP
|
<?php
|
||
|
|
||
|
namespace Os\Controller;
|
||
|
|
||
|
use Silex\Application;
|
||
|
use Questionnaire\Model\ResultPeer;
|
||
|
|
||
|
class OsController
|
||
|
{
|
||
|
public function indexAction(Application $app)
|
||
|
{
|
||
|
return $app['twig']->render(
|
||
|
'Os/index.html.twig',
|
||
|
array(
|
||
|
'results' => ResultPeer::retrieveResults(),
|
||
|
)
|
||
|
);
|
||
|
}
|
||
|
}
|