Issue Feature Closed

#56529support hasProperty and isProperty

Simon Schaufelberger 03/04/14, 13:33 updated 10/19/17, 21:02

Description

The way how you currently check for existence of a value in fluid is not nice.

<f:if condition="{object.hasChildren}">
[...]
</f:if>

results in a method in the Model:

public function getHasChildren()

Instead it should be possible to just write:

public funtion hasChildren()

Same for “is”.

Inspired by: https://github.com/czenker/cz_simple_cal/blob/master/Classes/Domain/Model/Base.php

Reviews 1