Models
The Pop PHP Framework comes with a base abstract model class Pop\Model\AbstractModel
that can be extended to create the model classes needed for your application. The abstract model class is a simple and
bare-bones data object that can be extended with whatever methods or properties you need
to work with your model. Data from the abstract model object is accessible via array access
and magic methods, and the model object is countable and iterable.
There is also an abstract data model class Pop\Model\AbstractDataModel
that more tightly
integrates with a table class from the database. Using that allows you to quickly wire up data queries with the
database and present them with your model.
namespace MyApp\Model;
use Pop\Model\AbstractDataModel;
class User extends AbstractDataModel
{
}
These concepts are explored more in depth in the User Guide > MVC section.