30/04/2010, 11:04:40
Bin c'est ce que je disais plus haut justement quand je parlais de la déclaration de ma variable.
Voici la fonction SetParameters() du module
Je pense que je la déclare correctement.
Merci de ton aide
Voici la fonction SetParameters() du module
Code :
function SetParameters(){
$defparams = array("action"=>"default");
$this->RegisterRoute("/[mM]essages\/(?P<show>[^\/]+)\/(?P<returnid>[0-9]+)$/", $defparams);
$this->RegisterRoute("/[mM]essages\/(?P<show>inbox|outbox)\/(?P<pageindex>[0-9]+)\/(?P<returnid>[0-9]+)$/", $defparams);
$this->RegisterRoute("/[mM]essages\/(?P<show>[^\/]+)\/(?P<msgid>[0-9]+)\/(?P<returnid>[0-9]+)$/", $defparams);
// Any change to the registered routes should also be made in function BuildPrettyUrls below
$this->RestrictUnknownParams();
$this->CreateParameter("show", "summary", $this->Lang("phelp_show"));
$this->SetParameterType("show",CLEAN_STRING);
$this->CreateParameter("detailpage", "", $this->Lang("phelp_detailpage"));
$this->SetParameterType("detailpage",CLEAN_STRING);
$this->CreateParameter("template", "", $this->lang("phelp_template"));
$this->CreateParameter("inline", 0, $this->lang("phelp_inline"));
$this->SetParameterType("inline",CLEAN_STRING);
$this->CreateParameter("group", "", $this->lang("phelp_group"));
$this->SetParameterType("group",CLEAN_STRING);
$this->SetParameterType("submit",CLEAN_STRING);
$this->SetParameterType("msgid",CLEAN_INT);
$this->SetParameterType("to",CLEAN_STRING);
$this->SetParameterType("subject",CLEAN_STRING);
$this->SetParameterType("message",CLEAN_STRING);
$this->SetParameterType("pageindex",CLEAN_INT);
}
Merci de ton aide