fridge_bites/apps/Admin/Controllers/AdminRecipeListController.php

20 lines
686 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace Lycoreco\Apps\Admin\Controllers;
use Lycoreco\Includes\Model\ValidationError;
use Lycoreco\Apps\Recipes\Models\RecipeModel;
class AdminRecipeListController extends Abstract\AdminListController
{
protected $model_сlass_name = "Lycoreco\Apps\Recipes\Models\RecipeModel";
protected $table_fields = array(
'Title' => 'field_title',
'Price' => 'get_price()',
'Status ' => 'get_status()',
'Creaated at' => 'field_created_at',
);
protected $single_router_name = 'admin:recipe';
protected $create_router_name = 'admin:recipe-new';
protected $verbose_name = "recipe";
protected $verbose_name_multiply = "recipes";
}