mise en place du templatind dans Thelia

This commit is contained in:
Manuel Raynaud
2012-10-18 17:54:49 +02:00
parent b603c6cf44
commit 60057f4cc9
8 changed files with 152 additions and 18 deletions

View File

@@ -2,15 +2,31 @@
namespace Thelia\Controller;
use Thelia\Controller\NullController;
use Thelia\Controller\NullControllerInterface;
use Symfony\Component\HttpFoundation\Request;
/**
*
* @author Manuel Raynaud <mraynadu@openstudio.fr>
*/
class DefaultController extends NullController{
class DefaultController implements NullControllerInterface{
/**
*
* set the default value for thelia
*
* In this case there is no action so we have to verify if some needed params are not missing
*
* @param \Symfony\Component\HttpFoundation\Request $request
*/
public function noAction(Request $request) {
if($request->query->has('view') === false){
$fond = "index";
if($request->request->has('view')){
$fond = $request->request->get('view');
}
$request->query->set('view', $fond);
}
}
}
?>