PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Mon Jul 13, 2020 9:32 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Sep 15, 2016 8:05 am 
Offline
Forum Contributor
User avatar

Joined: Wed May 14, 2014 12:18 pm
Posts: 331
I was just going through the Default theme of bolt CMS, and i came actoss the following lines of code:

Syntax: [ Download ] [ Hide ]
    {% if haswidgets('aside_top') %}
   
            {{ widgets('aside_top') }}
   
     {% else %}


I googled `twig haswidgets` and also `twig widgets` , but i could't find anything.

can somebody explain what these two methods are ? and what exactly do they do ?

Thank you.


Top
 Profile  
 
PostPosted: Thu Sep 15, 2016 8:27 am 
Offline
Moderator
User avatar

Joined: Tue Nov 09, 2010 3:39 pm
Posts: 6425
Location: Montreal, Canada
https://docs.bolt.cm/3.1/templating/widgets

_________________


Top
 Profile  
 
PostPosted: Thu Sep 15, 2016 8:57 am 
Offline
Forum Contributor
User avatar

Joined: Wed May 14, 2014 12:18 pm
Posts: 331
Thanks celauran ! : )


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Google [Bot] and 37 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group