Ignore:
Timestamp:
Feb 28, 2010, 11:10:22 PM (11 years ago)
Author:
teymour
Message:

Oups, oublié les commentaires
+Homogénéisation des noms de routing

Location:
cpc/trunk/project/apps/frontend
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/config/routing.yml

    r1139 r1140  
    202202  url: /seance/:seance/commentaires
    203203  param: {module: commentaire, action: json}
    204 amendement_redirect:
     204amendement_id:
    205205  url: /amendement/:id
    206206  param: {module: amendement, action: redirect}
  • cpc/trunk/project/apps/frontend/modules/amendement/actions/actions.class.php

    r1134 r1140  
    184184    if (count($amendements) == 1) {
    185185      $a = array_keys($amendements);
    186       $this->redirect('@amendement_redirect?id='.$a[0]);
     186      $this->redirect('@amendement_id?id='.$a[0]);
    187187    }
    188188    $this->amendements = array_values($amendements);
  • cpc/trunk/project/apps/frontend/modules/commentaire/actions/actions.class.php

    r1122 r1140  
    1414  public function executePost(sfWebRequest $request)
    1515  {
    16     $redirect_url = array('Intervention' => '@intervention?id=', 'Amendement' => '@amendement_redirect?id=', 'QuestionEcrite' => '@question?id=', 'ArticleLoi' => '@loi_article_id?id=', 'Alinea'=> '@loi_alinea?id=');
     16    $redirect_url = array('Intervention' => '@intervention?id=', 'Amendement' => '@amendement_id?id=', 'QuestionEcrite' => '@question_id?id=', 'ArticleLoi' => '@loi_article_id?id=', 'Alinea'=> '@loi_alinea?id=');
    1717    $about = array('Intervention' => "Suite aux propos d", 'Amendement' => "Au sujet d'un amendement déposé", 'QuestionEcrite' => "A propos d'une question écrite d");
    1818
Note: See TracChangeset for help on using the changeset viewer.