[eluser]abmcr[/eluser]
I have two question (excuse me ... i am beginner with CodeExtinguisher)
1) i have set in codex.php $config['codex_auto_generate_crud'] = false;
how i create my menu bar? navigator.php?
2) i have build a table
Code:
CREATE TABLE `related2` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(200) NOT NULL,
`description` text NOT NULL,
`example_id` int(11) NOT NULL,
`foto` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
and in edit mode all field are displayed, but in overview no (see the image)
Code:
$config = array(
'db_table' => 'related2', //The name of the table associated with this controller
'form_setup' => $this->spyc->YAMLLOAD($this->codexadmin->getDefinitionFileName('esempio_form')),
'controller_name' => 'Esempio',
'primary_key' => 'id',
'display_fields'=>array('name','foto','example_id','description'),
'rules'=>$rules
);
$this->setConfig($config);
and my yml file is
Code:
general_information:
class: FieldSet
params:
form:
name:
class: TextBox
example_id:
class: TextBox
description:
class: TextArea
attributes:
rows:5
cols:50
allegati:
class: FieldSet
params:
form:
foto:
class: Image
params:
make_thumbnail: true
height:100
width:100
url_path: uploads/
upload_path: ./uploads/
Finally: where is the best way for generate a thumbnail and show it in overview mode?