Sujet fermé
Note de ce sujet :
  • Moyenne : 0 (0 vote(s))
  • 1
  • 2
  • 3
  • 4
  • 5

[Résolu] Problème de rechargement de la page
#4

okay, c'est du front ou du backoffice ton code ? si c'est du front je te conseil d'utiliser plutôt cette méthode

$this->CreateFrontendLink ($id, 'afficherListeLast', $returnid, $i+1, array('pagePdB'=>'nouveautes', 'page'=>$i+1));

à la place de

Code :
$this->CreateLink($id, 'afficherListeLast', $returnid, $i+1, array('pagePdB'=>'nouveautes', 'page'=>$i+1), '', false, false, '') ;


http://apidoc.cmsmadesimple.org/CMS/CMSM...ontendLink


Citation :CreateFrontendLink (line 2482)

Returns the xhtml equivalent of an href link This is basically a nice little wrapper to make sure that id's are placed in names and also that it's xhtml compliant.
string CreateFrontendLink (string $id, string $returnid, string $action, [string $contents = ''], [string $params = array()], [string $warn_message = ''], [boolean $onlyhref = false], [boolean $inline = true], [string $addtext = ''], [boolean $targetcontentonly = false], [string $prettyurl = ''])

string $id: The id given to the module on execution
string $returnid: The id to eventually return to when the module is finished it's task
string $action: The action that this form should do when the link is clicked
string $contents: The text that will have to be clicked to follow the link
string $params: An array of params that should be inlucded in the URL of the link. These should be in a $key=>$value format.
string $warn_message: Text to display in a javascript warning box. If they click no, the link is not followed by the browser.
boolean $onlyhref: A flag to determine if only the href section should be returned
boolean $inline: A flag to determine if actions should be handled inline (no moduleinterface.php -- only works for frontend)
string $addtext: Any additional text that should be added into the tag when rendered
boolean $targetcontentonly: A flag indicating that the output of this link should target the content area of the destination page.
string $prettyurl: An optional pretty url segment (relative to the root of the site) to use when generating the link.

je suis plus certain de l'option $inline et $targetcontentonly, joue avec si du premier coup ça ne passe pas
Sujet fermé


Messages dans ce sujet

Atteindre :


Utilisateur(s) parcourant ce sujet : 1 visiteur(s)