<h3>Редактирование товара</h3>
<?php
echo $this->Form->create('Product', array('type' => 'file'));
// echo $this->Form->input('category_id');
?>
<div class="input select">
	<label for="ProductCategoryId">Category</label>
	<select id="ProductCategoryId" name="data[Product][category_id]">
		<?php echo $categories; ?>
	</select>
</div>
<?php
echo $this->Form->input('title');
echo $this->Form->input('body', array('id' => 'editor'));
echo $this->Form->input('price');
echo $this->Form->input('is_new', array('type' => 'checkbox', 'label' => 'Новинка?'));
echo $this->Form->input('img', array('type' => 'file', 'label' => 'Картинка товара'));
if($product['Product']['img']) echo '<p>' . $this->Html->image('products_img/thumbs/' . $product['Product']['img']) . $this->Form->input('del_img', array('type' => 'checkbox', 'label' => 'Удалить картинку')) . '</p>';
echo $this->Form->end('Сохранить');
?>
<script>
	CKEDITOR.replace( 'editor' );
</script>