I am creating the following table

```
CREATE TABLE IF NOT EXISTS `videothek9`.`movies` (
  `id` INT NOT NULL AUTO_INCREMENT,
  `title` VARCHAR(45) NOT NULL,
  `release_year` VARCHAR(45) NOT NULL,
  `available` TINYINT(1) NOT NULL DEFAULT 1,
  PRIMARY KEY (`id`))

```

and baking it with the cakephp bake console.

Here is an example for the standard movies/index page:

[![enter image description here](https://i.stack.imgur.com/olsK2.jpg)](https://i.stack.imgur.com/olsK2.jpg)

The "available" field can be 0 or 1. Now i want to show specific images instead of 0 or 1, like a checkmark tick or a red x-mark. The cakephp cookbook (html helper section) didnt help me much...

And here a piece of the view code

```
<?php foreach ($movies as $movie): ?>
    <tr>
        <td><?php echo h($movie['Movie']['id']); ?>&nbsp;</td>
        <td><?php echo h($movie['Movie']['title']); ?>&nbsp;</td>
        <td><?php echo h($movie['Movie']['release_year']); ?>&nbsp;</td>
        <td><?php echo h($movie['Movie']['available']); ?>&nbsp;</td>
        <td class="actions">
            <?php echo $this->Html->link(__('View'), array('action' => 'view', $movie['Movie']['id'])); ?>
            <?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $movie['Movie']['id'])); ?>
            <?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $movie['Movie']['id']), array(), __('Are you sure you want to delete # %s?', $movie['Movie']['id'])); ?>
        </td>
    </tr>
<?php endforeach; ?>

```

Can I just place a normal php if/else statement in the Movies Controller ?