src/commands/views/crud/create_api.php
<?php
/**
* @var $className
* @var $modelClass
* @var $namespace
* @var $luyaVersion
*/
echo "<?php\n";
?>
namespace <?php echo $namespace; ?>;
/**
* <?= $alias; ?>.
*
* <?=$luyaVersion; ?>
*/
class <?php echo $className; ?> extends \luya\admin\ngrest\base\Api
{
/**
* @var string The path to the model which is the provider for the rules and fields.
*/
public $modelClass = '<?= $modelClass;?>';
}