Public feed #724791

Mine

public php v1 · immutable
Raw Edit
·published 2007-10-03 21:50 UTC
rendered paste body
<?phpclass MovieController extends AppController {        var $name = 'Movie';        var $helpers = array('Form');        function index() {                $this->set('movies', $this->Movie->findAll());        }        function add() {                if (!empty($this->data))                {                        if ($this->Movie->save($this->data))                        {                                $this->flash('Movie saved.','/movie');                        }                }        }        function del($id) {        }}?>