Here you have a easy way to connect to database .. Thanks to Oli help
Notice: This thread is very old.
- alnux
- Member | 139
Here you have a way to connect to database
setTables.php
BaseModel.php Model class
Paises.php Model class
The next class connect database to presenters
and finally config.neon configuration
From presnter you get it using @inject annotation on a public member
variable more info here
, please put attention on
/** @inject @var \App\Model\ModeloContenedor */ before var with
out this does not will work
Last edited by alnux (2014-06-13 17:11)