Ah like that. Yeah that should be a new pull request I think.

----- Reply message -----
From: "FrodeMMeling" <notifications@github.com>
To: "FriendsOfCake/crud" <crud@noreply.github.com>
Cc: "Frank de Graaf" <info@frankdegraaf.net>
Subject: [crud] Add support for Virtual fields (#134)
Date: Tue, Oct 1, 2013 21:32
In Controller/Crud/Listener/ApiFieldFilterListener.php: 
> @@ -245,7 +245,7 @@ protected function _checkField(Model $model, $field) { 
>    $isPrimary = $modelName === $model->alias; 
>   
>    // If the model name is the local one, check if the field exists 
> -  if ($isPrimary && !$model->hasField($fieldName)) { 
> +  if ($isPrimary && !$model->hasField($fieldName, true)) { 

There is no listner to the scaffold view. Only to the API. AFAIK. Not sure if the API white and blacklist will not work for the virtual fields.

I will make the on/off for this pull, but I would want more features in the scaffold in the future. 

&mdash;
Reply to this email directly or view it on GitHub.