I read the Documentation the only thing I did not understand was as is the structure of it.
I explain:
My file composer.json
in the project root
{
"require": {
"doctrine/dbal": "2.4.*"
}
}
When you run the command:
php composer.phar install
It drops dependencies by generating the vendor
folder. But there are many files that according to the documentation are unnecessary. See my project image:
I want to understand the structure of this project from what I've been reading the only important part is \lib\DBAL
the others do not need. That's right. And in relation to the project wanted to use like that. Have a \class
folder and put the files of both doctrine\dbal
and bootstrap.php
and crud
classes (it would be crud.php
with the CRUD functions and a require(bootstrap.php)
Bootstrap is where the connection to the Bank). And out of the class
folder (project root) make the functions calls on my pages. This is how I do it in a normal project.
I am asking this question because I have not found anything on the internet that speaks about this subject or the documentation. I'm starting in doctrine\dbal
, sorry if I'm being incomprehensible.