Welcome Guest, Not a member yet? Register   Sign In
Simple Module
#1

CodeIgniter packages can't handle controllers.

But if we want to use Moduler Separation (not HMVC), how about just create symlinks in application/controllers folder?

Here is an example:
https://github.com/kenjis/codeigniter-simple-module

This approach is very simple. It uses only CodeIgniter functionality, and probably has no side effects.
Reply
#2

What is the point of this symlink ?

Base structure of app folder is:
-controllers
-models
-views

What is the point to split them in modules with the same structure and after that to make a symlink back in the same paths.. ?
Best VPS Hosting : Digital Ocean
Reply
#3

The point is putting MVC files in one folder.

Code:
codeigniter/
└── application/
   └── modules/
       └── welcome/
           ├── controllers/
           ├── models/
           └── views/
Reply
#4

(10-19-2015, 08:22 PM)kenjis Wrote: CodeIgniter packages can't handle controllers.

But if we want to use Moduler Separation (not HMVC), how about just create symlinks in application/controllers folder?

Here is an example:
https://github.com/kenjis/codeigniter-simple-module

This approach is very simple. It uses only CodeIgniter functionality, and probably has no side effects.

This is a awesome idea! I am already symlinking my "public" assets from my packages folder I can't believe I didn't think of this for Controllers! 

Thank you for the idea... just not sure if I am ready for a drastic but "cleaner" rewrite.
Reply
#5

(10-20-2015, 03:20 PM)kenjis Wrote: The point is putting MVC files in one folder.

Code:
codeigniter/
└── application/
   └── modules/
       └── welcome/
           ├── controllers/
           ├── models/
           └── views/

So it is HMVC...
Reply
#6

(10-22-2015, 11:32 PM)Martin7483 Wrote:
(10-20-2015, 03:20 PM)kenjis Wrote: The point is putting MVC files in one folder.


Code:
codeigniter/
└── application/
   └── modules/
       └── welcome/
           ├── controllers/
           ├── models/
           └── views/

So it is HMVC...

No, it is NOT HMVC. It does not provide functionality to call another controller from a controller.
But it does not change any CodeIgnier core code.
Reply
#7

(10-23-2015, 12:56 AM)kenjis Wrote:
(10-22-2015, 11:32 PM)Martin7483 Wrote:
(10-20-2015, 03:20 PM)kenjis Wrote: The point is putting MVC files in one folder.


Code:
codeigniter/
└── application/
   └── modules/
       └── welcome/
           ├── controllers/
           ├── models/
           └── views/

So it is HMVC...

No, it is NOT HMVC. It does not provide functionality to call another controller from a controller.
But it does not change any CodeIgnier core code.

True, sorry about that Smile
Reply
#8

half supported by Tendoo CMS. only controler and model are supported the same way Smile https://github.com/Blair2004/tendoo-cms. It' looks interesting, i'll looking if it can be merged.
NexoPOS 2.6.2 available on CodeCanyon.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB