Welcome Guest, Not a member yet? Register   Sign In
Drawing the System Architecture
#1

[eluser]Unknown[/eluser]
Hey Guys!
1st of i'll introduce my Self, my name's Diego Piccolo Toledo and i'm from Brazil...

Thats my 1st time developping/playing with codeigniter, and i can tell you guys that i've read some tutorials, watched the videos and now i'm stuck and thinking..

How can i draw the whole system architecture from scratch using it ?

I mean.. i'll built a system based on modules, and i want to made it the most scalable and granular as possible.

So let's imagine that i'll build a simple user auth app with all reports and management tools, as a shippable module.. How you guys will draw this module based on the Code Igniter structure?

[]'s!
#2

[eluser]jedd[/eluser]
Hi Diego, and welcome to the Ci forums.

Now .. a user auth app .. if you were creating one from scratch, for use in your own project (as in - a project that used the user auth app, but wasn't *just a* user auth app) then it'd be easy - you'd have a model that spoke to your user, permissions, groups, (etc) database tables, and you'd have at least one controller that interfaced between the user(s) and that model.

But .. if you want to do a 'shippable module' - well, that's a bit more complex.

I reckon you'd want to look at HMVC (?) - in the forums and in the wiki- this is a way of bundling models, controllers and views as separate packages, rather than spreading each of those related files through the primary CI application structure.

I'd also suggest you check out an existing user auth app - there's quite a few out there, but DX Auth is one of the more respected (and very complete) ones. This will give you some pointers.




Theme © iAndrew 2016 - Forum software by © MyBB