Welcome Guest, Not a member yet? Register   Sign In
Modular Separation + Multiple Applications + FreakAuth Is it possible?
#1

[eluser]Jarek Bolo[/eluser]
Hello.

I'm at the beginning of new quite a large project (never wrote such a big one).
After gathering some information, talking with the client, I found I will have to use all mentioned in topic "architecture patterns" (if I can say so).

I would like my application to have structure like this:
Code:
|-- CodeIgniter_x.x.x
|   `-- system
|-- application
|   |-- admin
|   |   `-- modules
|   |       |-- news
|   |       |   |-- controllers
|   |       |   |-- libraries
|   |       |   |-- models
|   |       |   `-- views
|   |       |-- users
|   |       |   |-- controllers
|   |       |   |-- libraries
|   |       |   |-- models
|   |       |   `-- views
|   |       `-- z_other
|   |           |-- controllers
|   |           |-- libraries
|   |           |-- models
|   |           `-- views
|   `-- frontend
|       `-- modules
|           |-- news
|           |   |-- controllers
|           |   |-- libraries
|           |   |-- models
|           |   `-- views
|           |-- users
|           |   |-- controllers
|           |   |-- libraries
|           |   |-- models
|           |   `-- views
|           `-- z_other
|               |-- controllers
|               |-- libraries
|               |-- models
|               `-- views
`-- webroot
    |-- admin.php      <-- this index for admin app
    `-- index.php      <-- this index for frontend app

And inject FreakAuth libraries into it.

Will it be possible to do this only by following instructions on the wiki page and this forum for mentioned architecture patterns and libraries.
Or I will have to hack CI quite much??

Jarek Bolo


EDIT:
On the other hand, I could use only Multiple Applications method and then stick to well thought naming convention for view,models and controller, i.e. admin_view_something.php, admin_model.php, user_view_something.php, etc.
But the structure above is much more intuitive and better to maintain.
#2

[eluser]Phil Sturgeon[/eluser]
Modules would not affect FAL too much as long as you keep the FAL module name the same as the controller. Talk to Zack (the guy who made the Modular Seperation hack) as he was the guy to get FAL working on a recent modular project.
#3

[eluser]Jarek Bolo[/eluser]
Thanks for your input ThePyroManiac.
What you said makes me assume that get those two things (Modular and FAL) working together involves some extra effort, beyond the installation instructions.
I would rather want to keep CI unhacked and relay only on configuration options (and Multiple Applications is based only on conf options).

I don't want to bother Zack with priv massages, hope he visits forum on regular basis and will finally write something in my thread Smile




Theme © iAndrew 2016 - Forum software by © MyBB