Hello! After so much analysis and to have used other frameworks I have had a real challenge and I have decided to use Phalcon and it has blown my head! Is so efficient that it leaves behind any other framework.
Well there is something that is not working for me and it is that I need to do "inner join" in my querys and I do not find the return. I have this structure: App / App / controllers / IndexController.php App / controllers / TUserController.php App / models / TUser.php
In the document https://docs.phalcon.io/en/latest/api/Phalcon_Mvc_Model_Manager.html Explains ModelsManager but I can not locate the code in the controller
To do this query: "select * from t_user"; Code fragments: <? Php
Use Phalcon \ Mvc \ Model \ Criteria;
Use Phalcon \ Paginator \ Adapter \ Model as Paginator;
Use Phalcon \ Di;
Use Phalcon \ Mvc \ Model \ Manager as ModelsManager;
Class TUserController extends ControllerBase { Public function indexAction () { $ Di = new Di ();
$ Di-> set ( "ModelsManager", Function () { Return new ModelsManager (); } ); $ TUser = new TUser ($ di);
$ Query = new Phalcon \ Mvc \ Model \ Query ("SELECT * FROM t_user", $ di); $ TUsers = $ query-> execute (); $ This-> persistent-> parameters = null; }