Welcome Guest, Not a member yet? Register   Sign In
HMVC the right way ?!
#31

(06-01-2015, 10:25 PM)RogerMore Wrote: So you have your own code which you can put from 1 project to another which is called libraries. Who doesn't have that. One thing I'm missing though, is that your auth lib doesn't seem to need models and views for login/password forget screens or your payment gateway doesn't need at least some views for choosing which payment and so on. I hope that your login screen isn't popping out of your auth lib because I don't know if that would be a best practice...

What are you talking about?   Huh

A library is a block of code that facilitates certain functions to be exposed for the Controller or to pass data to/from the Model.  I have libraries which then can be extended should that particular project need it.  Or I can just use minimal functions because the project is simplistic.  To be clear, the Libraries I have are not written in Codeigniter (so they are framework agnostic).  They are "included" and then I use whatever endpoints I need to.  The future endeavor is to use namespaces and then include composer support.  So then I autoload them and exist out of the structure of the framework.  But then thats out of the scope of this discussion.

After I have completed the integration of the library.  The controllers are updated, again very trivial, the database is updated and the models written (again very trivial) and whatever views I want to use for the project are used.

All this work, literally 5 to 10 minutes work of dropping in a specific functionality.  In future, when I have the code in composer.  It's just a case of changing the composer file.  Doing an update and then hitting the ground running.  Like I am doing with the several composer modules I'm using now.
Reply


Messages In This Thread
HMVC the right way ?! - by RogerMore - 05-26-2015, 02:10 AM
RE: HMVC the right way ?! - by gadelat - 05-26-2015, 03:15 AM
RE: HMVC the right way ?! - by kilishan - 05-26-2015, 07:08 AM
RE: HMVC the right way ?! - by Narf - 05-26-2015, 01:16 PM
RE: HMVC the right way ?! - by kilishan - 05-26-2015, 10:32 PM
RE: HMVC the right way ?! - by mwhitney - 05-27-2015, 08:24 AM
RE: HMVC the right way ?! - by frocco - 05-27-2015, 12:18 PM
RE: HMVC the right way ?! - by mwhitney - 05-29-2015, 06:49 AM
RE: HMVC the right way ?! - by kilishan - 05-27-2015, 10:14 PM
RE: HMVC the right way ?! - by kilishan - 05-27-2015, 10:29 PM
RE: HMVC the right way ?! - by frocco - 05-28-2015, 05:47 AM
RE: HMVC the right way ?! - by mwhitney - 05-29-2015, 07:06 AM
RE: HMVC the right way ?! - by RogerMore - 05-28-2015, 12:06 PM
RE: HMVC the right way ?! - by josetrindade - 06-02-2015, 10:30 AM
RE: HMVC the right way ?! - by RogerMore - 05-29-2015, 07:24 AM
RE: HMVC the right way ?! - by kilishan - 05-29-2015, 07:30 AM
RE: HMVC the right way ?! - by mwhitney - 05-29-2015, 08:05 AM
RE: HMVC the right way ?! - by Narf - 05-29-2015, 09:50 AM
RE: HMVC the right way ?! - by mwhitney - 05-29-2015, 12:09 PM
RE: HMVC the right way ?! - by Narf - 05-30-2015, 05:47 AM
RE: HMVC the right way ?! - by mwhitney - 06-01-2015, 08:13 AM
RE: HMVC the right way ?! - by Narf - 06-01-2015, 10:21 AM
RE: HMVC the right way ?! - by no1youknowz - 06-01-2015, 08:33 PM
RE: HMVC the right way ?! - by RogerMore - 05-29-2015, 08:16 AM
RE: HMVC the right way ?! - by RogerMore - 05-31-2015, 01:48 PM
RE: HMVC the right way ?! - by frocco - 06-01-2015, 05:26 AM
RE: HMVC the right way ?! - by kilishan - 05-31-2015, 10:05 PM
RE: HMVC the right way ?! - by RogerMore - 06-01-2015, 10:49 AM
RE: HMVC the right way ?! - by mwhitney - 06-02-2015, 12:06 PM
RE: HMVC the right way ?! - by frocco - 06-01-2015, 12:02 PM
RE: HMVC the right way ?! - by RogerMore - 06-01-2015, 03:12 PM
RE: HMVC the right way ?! - by frocco - 06-03-2015, 03:41 AM
RE: HMVC the right way ?! - by RogerMore - 06-01-2015, 10:25 PM
RE: HMVC the right way ?! - by no1youknowz - 06-02-2015, 09:09 AM
RE: HMVC the right way ?! - by RogerMore - 06-03-2015, 12:40 AM
RE: HMVC the right way ?! - by mwhitney - 06-03-2015, 06:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB