what exactly is haswidgets and widgets in bolt (or twig)??

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
gautamz07
Forum Contributor
Posts: 331
Joined: Wed May 14, 2014 12:18 pm

what exactly is haswidgets and widgets in bolt (or twig)??

Post by gautamz07 »

I was just going through the Default theme of bolt CMS, and i came actoss the following lines of code:

Code: Select all

    {% 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.
User avatar
gautamz07
Forum Contributor
Posts: 331
Joined: Wed May 14, 2014 12:18 pm

Re: what exactly is haswidgets and widgets in bolt (or twig)

Post by gautamz07 »

Thanks celauran ! : )
Post Reply