Skip to content

@romaimperator /gist:933435
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
<------- View randoms/add.ctp -------->
<?php
echo $this->Form->create('Random');
echo $this->Form->input('Random.start_time',
array(
'type' => 'time',
)
);
echo $this->Form->end('Submit');
?>
<------- View randoms/add.ctp -------->
<------- Model random.php --------->
<?php
class Random extends AppModel {
var $useTable = false;
}
?>
<------- Model random.php --------->
<------- Model randoms_controller.php --------->
<?php
class RandomsController extends AppController {
var $uses = array('Random');
var $helpers = array('Form');
function add() {
$this->data['Random']['start_time'] = "18:15";
}
}
?>
<------- Model randoms_controller.php --------->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.