How should a Model be turned to a Instance in ThinkPHP framework?
<p>This question concerns merely ThinkPHP programmers.</p>

<p>So there are <code>Model</code> and <code>D()</code> in ThinkPHP. A model is very useful to communicate with the DB. But when we use <code>D()</code> to create a <code>Model</code> then find a piece of data. actually what we get is a array.</p>

<p>Then how can I get a instance that is of a class and has methods to use. To build methods in the model seems useless.</p>

<p>Should I have another class apart from the model， for example <code>UserModel.class</code> + <code>User.class</code>？</p>