I got a problem with CakePHP formbuilder. The first value of the options have to be 1 instead of 0.
View:
<div class="form-group">
<label class="col-md-3 control-label" for="competentie">Competenties</label>
<div class="col-md-6">
<?php echo $this->Form->input('competence._ids',['class'=>'form-control ','options'=> $competence,'div'=>false,'label'=>false]); ?>
</div>
</div>
Controller:
$category = $this->Cv->Category->find('list', ['keyField' => 'category_id', 'valueField' => 'category']);
$this->set(compact('cv', 'category'));
$this->set('_serialize', ['cv']);
Any idea how i can make it start at value 1? Instead of 0.
Screenshot of it: https://i.gyazo.com/5ebeeeccc11ee08762efd9a84ba357ba.png