Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorpropagnose11
     
    Hi, need help

    My application needs to access tables from external database (not the predefined database at the setup application).
    How to create those kind of model? a model that connect to other database..
    •  
      CommentAuthorbermi
     

    You'll need to set the database connection on the model constructor using the

    setConnection(Ak::db('mysqli://user:pass@localhost/database_name'));
    

    method