Online Forum To Support Coders With Technical Assistance - Read Write Execute

How to set blank option for select box in cakephp ?

Ankit Agrawal
Ankit Agrawal
Published on August 20, 2015 · 1 min read

there is an attribute “empty” in cakephp for adding blank option

<?php echo $this->Form->input('field_name', array(			
			'empty' => 'Default Title',
			'options' => $aOptions,
			'label' => false ,
?>
Was this article helpful?
Ankit Agrawal

Ankit Agrawal

Author & Senior Engineer at CodeExecute

Writing practical engineering guides, debugging real-world bottlenecks, and creating free tools for developer productivity.

← Previous Article How to add a select box in cakephp ? Next Article → How to set option selected for select box in cakephp ?