środa, 10 listopada 2010

rereading book part 2

Use of Model::set
$this->Post->read(null, 1);
 'title' => 'New title',
 'published' => false
 Model::save - alternative

save(array $data = null, array $params = array())
$params = array(
 'validate' => true,
 'fieldList' => array(),
 'callbacks' => true //other possible values are false, 'before', 'after'
 deleteAll(mixed $conditions, $cascade = true, $callbacks = false)
unbindModel only affects the very next find function. An additional find call will use the configured association information.
        "cache" => array('time'=> "+7 days",'key'=>'unique value')
$this->cakeError(string $errorType [, array $parameters]);
debug($var, $showHTML = false, $showFrom = true):
Output from this function is only shown if the core debug variable has been set to a value greater than 0.
Session component 
Use the caching engine configured by Cache::config(). Very useful in conjunction with Memcache (in setups with multiple application servers) to store both cached data and sessions.

Brak komentarzy:

Prześlij komentarz