Good day, Everon!
I'm trying to get data from the Oracle database via Falcon \ MVC \ Model \ Query \ Builder, but as a result all of them are empty.
// APPLICATION_ROOT / app / model / package php & lt; Php Usage Falcons \ MVC \ Model; Increases class package model {public function getSource () {Return 'RADIO_PACKAGE'; }} Controller class:
Public function index () {$ packages = package :: find (); Var_dump ($ package & gt; toArray ()); // blank $ query = $ this- & gt; Model Manager- & gt; CreateBuilder () - & gt; From ('package') - & gt; GetQuery (); Var_dump ($ query- & gt; executed () - & gt; toArray ()); // null // but direct access to database return rows PDO = $ this- & gt; GetDI () - & gt; Obtain ('db') - & gt; GetInternalHandler (); Var_dump ($ PDO- & gt; Query ('SELECT * RADIO_PACKAGE') - & gt; Fatch ALL ()); // returns 23 rows} Do anyone know what the problem is?
I tried Falcon 1.1.0 and 1.2.0.
The PDO_OCI driver has been installed from the source PDP 5.4.16.
The PHP version is 5.4.11.
Div>
No comments:
Post a Comment