nathggns / Scaffold

Lightweight PHP API Framework
Other
8 stars 2 forks source link

What is Controller::resource for? #123

Closed nathggns closed 11 years ago

nathggns commented 11 years ago

@ClaudioAlbertin, you wrote Controller. What is the resource method for? :S

ClaudioAlbertin commented 11 years ago

It is automatically called if a resource (database record) has to be loaded (i.e. if a resource identifier is given). The resource is supposed to be loaded in that function and is then available object wide.

nathggns commented 11 years ago

Ah. Probably should've used that in Blogcase.