In CodeIgniter you can easily set up multiple applications to run off the same CodeIgniter install, simply by creating a copy of index. Here you can see I have put index. Both index. This method does work, but is only really any good for big sites that have very different content for their front and back ends.
You cannot use the same libraries, helpers, models, etc which will mean its very easy to end up with duplicated code. This method follows a more usual CodeIgniter set-up and is the way that most new CodeIgniter users will try things at first. This method has the advantage of being able to share models, libraries and helpers across both the front and backend. The down side is that when your site expands and more controllers are required, it can be a real pain to have your content so loosely linked across the entire application directory.
You can see in the example above that we have several folders for blog and comment content, where really we should only have one. This one folder is called a module…. To keep all the content under one single folder we can adopt the HMVC approach. R Programming. React Native. Python Design Patterns. Python Pillow. Python Turtle. Verbal Ability. Interview Questions. Company Questions. Artificial Intelligence. Cloud Computing. Data Science.
Angular 7. Machine Learning. Data Structures. Operating System. Computer Network. Compiler Design. Computer Organization. Discrete Mathematics. Ethical Hacking.
0コメント