Simple Module |
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.
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
The point is putting MVC files in one folder.
Code: codeigniter/ (10-19-2015, 08:22 PM)kenjis Wrote: CodeIgniter packages can't handle controllers. 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.
(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. 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.
(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. True, sorry about that
half supported by Tendoo CMS. only controler and model are supported the same way https://github.com/Blair2004/tendoo-cms. It' looks interesting, i'll looking if it can be merged.
NexoPOS 2.6.2 available on CodeCanyon.
|
Welcome Guest, Not a member yet? Register Sign In |