php-orm-pdo icon indicating copy to clipboard operation
php-orm-pdo copied to clipboard

how to use it as a framework

Open fer-g3 opened this issue 4 years ago • 1 comments

I've downloaded the package and i'm trying to make it work as a framework but I can´t get it done. I have the following folder structure my_project/app/controllers my_project/app/models my_project/app/views

my_project/index.php

I just copied the folder app located in vendor\arojunior\php-orm-pdo\app into my_project folder but if I type localhost/my_project/users in the browser it doesn´t show the list of users in my db (index function) in users controllers Is there anything to change in index.php file??

fer-g3 avatar Jul 26 '20 19:07 fer-g3

In order to use it as a framework, you should download the repository and build your application inside the app folder, following the convention described in the README.

There's a sample of Controller, Model, and View inside the app folder.

arojunior avatar Jul 27 '20 20:07 arojunior