I am using Filestore that I had to install it manually since it is not working the composer install…
I have relational tables 1 : N
and I am using mastercrud and I wonder how to display instead of the image name the image itself as a inside the grid
is that possible?
also how can I say to mastercrud to show specific columns of the first table and the relational table?
I have this code now and for both tables the same columns are shown and it is incorrect:
$app->cdn['atk'] = '../public'; $mc = $app->add([ '\atk4\mastercrud\MasterCRUD', 'ipp'=>5, 'quickSearch'=>['name'], 'fieldsRead'=>['name','img_filename'] ]); $mc->setModel(new Deal($app->db), [ 'DealDates'=>['DealDates'=>['CRUD', 'canDelete'=>false, 'ipp'=>5, 'fieldsRead'=>['name'] ]], ] );
the first table must show only ‘fieldsRead’=>[‘name’,‘img_filename’] columns
but the clicked second table in relation with the first one must show only ‘fieldsRead’=>[‘name’,‘date’]
the problem that for both the grid shows the same columns!!
how can I use it in a way I can display different columns in the grid for different tables?