Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example Model #5

Open
cmoore4 opened this issue Jun 9, 2013 · 3 comments
Open

Example Model #5

cmoore4 opened this issue Jun 9, 2013 · 3 comments

Comments

@cmoore4
Copy link
Owner

cmoore4 commented Jun 9, 2013

Implement an example controller using Phalcon ORM models and the query builder.

@z115corporation
Copy link

it said controller not found when I tried to implement a model, anyone knows the reason?

@saulosousasoares
Copy link

Nothing?
Calling a model in the controller. with me not work. Does anyone know the problem?

@TriPSs
Copy link

TriPSs commented Apr 29, 2015

You have to put this at the top of your controller where you wand to use the model:
use \PhalconRest\Models{{ Name of your model }};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants