PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Sat Oct 19, 2019 2:31 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sun Sep 25, 2016 4:43 pm 
Offline
Forum Contributor
User avatar

Joined: Wed May 14, 2014 12:18 pm
Posts: 331
I just came across the following syntax in the bolt CMS :

Syntax: [ Download ] [ Hide ]
{% for ct in app.config.get('contenttypes') if not ct.viewless|default(false) %}
 


Now the start of the loop seems familiar PHP syntax but the part where the below comes into the picture:

Syntax: [ Download ] [ Hide ]
 if not ct.viewless|default(false)


Now That part is a bit harder to understand , what is that part of the code really doing ??

or actually what is that part of the code really saying ??


Thank you.
Gautam.


Top
 Profile  
 
PostPosted: Mon Sep 26, 2016 6:34 am 
Offline
Moderator
User avatar

Joined: Tue Nov 09, 2010 3:39 pm
Posts: 6425
Location: Montreal, Canada
http://twig.sensiolabs.org/documentation

_________________


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

All times are UTC - 5 hours


Who is online

Users browsing this forum: Google [Bot] and 4 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:  
cron
Powered by phpBB® Forum Software © phpBB Group