luyadev/luya-module-admin

View on GitHub
src/commands/views/crud/create_controller.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?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\Controller
{
    /**
     * @var string The path to the model which is the provider for the rules and fields.
     */
    public $modelClass = '<?= $modelClass;?>';
}