Cakephp Classroom image

osdyui
 
To post your Question Join Classroom
 
Lesson Topics's No:-  First|74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82|Last
Lessons:-Models

order
The default ordering of data for any find operation. Possible values include:
$order = "field"
$order = "Model.field";
$order = "Model.field asc";
$order = "Model.field ASC";
$order = "Model.field DESC";
$order = array("Model.field" => "asc", "Model.field2" => "DESC");
data
The container for the model’s fetched data. While data returned from a model class is normally used as
returned from a find() call, you may need to access information stored in $data inside of model callbacks.
_schema
Contains metadata describing the model’s database table fields. Each field is described by:
• name
• type (integer, string, datetime, etc.)
• null
• default value
• length
Example Usage:
public $_schema = array(
’first_name’ => array(
’type’ => ’string’,
’length’ => 30
),
’last_name’ => array(
’type’ => ’string’,
’length’ => 30
),
’email’ => array(
’type’ => ’string’,
’length’ => 30
),
’message’ => array(’type’ => ’text’)
);

 
 
 

osdyui

Skills    Cakephp

Qualifications :-
Location :-,,,
Description:-
Explore
 

  Students (0)