Fetch Data

Navigation:  Development > InformationSet >

Fetch Data

Previous pageReturn to chapter overviewNext page

Once InformationSet is ready then we can use it just like a Model to fetch data. We can execute SQL statement in database. Each InformationSet response by a PHP object and prepare and run sql SQL in database.

 

InformationSet Object:
App Factory is used to instantiate model object reference and pass value inside it. Following format is used to catch a model.
 
$Obj = App::Model([Model Name]);

 

For example:
App::InformationSet('emailtemplate')->findAll();

 

The above example will find all data saved in Blogpost InformationSet. For query execution commonly we used type of method. find() is used to fetch data and Save() used to Add or Update in database.

 

View Function List