[Skip to main content](#vessel-content)

#   Utilité de setlayout()

##

- **[Flooder](/forum/user/23280-flooder "View Flooder's Profile")**
- [![Flooder's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23280.png)](/forum/user/23280-flooder "View Flooder's Profile") Topic Author
- [ Offline](/forum/user/23280-flooder)

Less More

- Posts: 263
- Thank you received: 11
-
-

12 years 9 months ago [\#144021](#144021) by [Flooder](/forum/user/23280-flooder "View Flooder's Profile")  *[Utilité de setlayout()](/forum/5-support-en-francais-french-support-/865857-utilite-de-setlayout#144021 "Bonjour à vous, Pourriez-vous me dire à quoi cela sert d'utiliser la fonction setLayout() quand elle n'est pas suivie de la loadtemplate()?  Par exemple, au début du fichier option.php, on a :  Et ensuite, aucune ligne avec loadtemplate()…  Merci")* was created by *[Flooder](/forum/user/23280-flooder "View Flooder's Profile")*

Bonjour à vous,
Pourriez-vous me dire à quoi cela sert d'utiliser la fonction setLayout() quand elle n'est pas suivie de la loadtemplate()?

Par exemple, au début du fichier option.php, on a : Code:

$this-&gt;setLayout('listing_price');

Et ensuite, aucune ligne avec loadtemplate()…

Merci

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODY1ODU3LXV0aWxpdGUtZGUtc2V0bGF5b3V0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

12 years 9 months ago [\#144027](#144027) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Utilité de setlayout()](/forum/5-support-en-francais-french-support-/865857-utilite-de-setlayout#144027 "Bonjour à vous, Pourriez-vous me dire à quoi cela sert d'utiliser la fonction setLayout() quand elle n'est pas suivie de la loadtemplate()?  Par exemple, au début du fichier option.php, on a :  Et ensuite, aucune ligne avec loadtemplate()…  Merci")*

Bonjour,

[ api.joomla.fr/jplatform/classJViewLegacy...17cd1082967c476a291f](http://api.joomla.fr/jplatform/classJViewLegacy.html#a1a5d961a44db17cd1082967c476a291f)

Cordialement,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [Flooder](/forum/user/23280-flooder "View Flooder's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODY1ODU3LXV0aWxpdGUtZGUtc2V0bGF5b3V0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 9 months ago [\#144029](#144029) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Utilité de setlayout()](/forum/5-support-en-francais-french-support-/865857-utilite-de-setlayout#144029 "Bonjour à vous, Pourriez-vous me dire à quoi cela sert d'utiliser la fonction setLayout() quand elle n'est pas suivie de la loadtemplate()?  Par exemple, au début du fichier option.php, on a :  Et ensuite, aucune ligne avec loadtemplate()…  Merci")*

Bonjour,
La vue **listing\_price** servira ici à afficher le prix des options dans la dropdown de sélection des options qui est présente sur votre page produit.
De plus, concernant l'appel à la fonction **Loadtemplate()**, vous le trouverez via les lignes : Code:

$text.=' ( '.($positive?'+ ':'').strip_tags($this-&gt;loadTemplate()).' )';

et Code:

$text.=' ( '.($positive?'+ ':'').strip_tags($this-&gt;loadTemplate()).' )';

The following user(s) said Thank You: [Flooder](/forum/user/23280-flooder "View Flooder's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODY1ODU3LXV0aWxpdGUtZGUtc2V0bGF5b3V0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.053 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
