-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ajout d'une variable smarty "xmcontent_page" sur la page viewcontent.php
- Loading branch information
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 comments
on commit cbac30e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merci pour ton retour:
5306087
Hello,
bug ?
le mode debug sur la page http://localhost/modules/xmcontent/viewcontent.php?content_id=3
affiche :
{$xmcontent_page} | http://localhostmodules/xmcontent/vie...
1 - Il manque un "/" pour obtenir
{$xmcontent_page} | http://localhost/modules/xmcontent/vie...
2- J'ai changé dans mon fichier viewcontent.php mais ce n'est pas très propre car on obtient l'URL complète :
http://localhost/modules/xmcontent/viewcontent.php?content_id=3
3 - Finalement, si on veut respecter la syntaxe de xoops_page,
On devrait donc avoir la ligne suivante :
$xoopsTpl->assign('xmcontent_page', 'xmcontent/viewcontent.php?content_id=' . $content_id);
Et là, c'est top, voici mon code, dans mon thème :