CodeIgniter Module System - php

If this question is already asked, I apologize, but couldn't find anything that could solve this. I have a project on CodeIgniter and I want to create a module/plugin/extension system, just like Joomla or any other CMS where you can add custom built modules with different functionality, but haven't done anything like this before, so I'm asking for a way of making this possible.

Module system for codeigniter HMVC
Go to https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc
Download branches default download for codeigniter 2 HMVC and you can download codeigniter 3 HMVC latest version for CI-3
That way you can create your own modules how ever you want. I am making something like open cart but for codeigniter.

Related

How to add functionality in payroll plugin of OrangeHrm?

I have made a "Payroll" module and the functionality of that module also made with php files but I need to integrate that php files into orange hrm. so now here the problem comes for because I can't understand where to start in orangehrm to integrate it. I know start from index.php after that edit where to get my module withing the footer and header of the OrangeHRM.
And can anyone explain me to find the path of this line
orangehrm is based in symfony (framework MVC), if you wanna add a module, need:
create a folder in (symfony\plugins...)
enable the plugin in setting.yml (\apps\orangehrm\config\setting.yml)
add the module in databases ( use phpmyadmin for this)
add the module in lib
logout, delete cache and login back.
this is way for 3.1 versions. That version of the software you are using?

Building a Joomla component from an existing PHP script

I am working on a freelancer site that will use Joomla as the base. I would like to create a custom component for the freelancer functionality and was wondering if there is a way to convert an existing freelancer PHP program (specifically Ilance) into a Joomla component. I have a license for Ilance and thought about using the wrapper in Joomla for it. But this option will not work for me. Instead, I would like to add all the functionality of Ilance into Joomla without creating it from scratch.
OFC you can do that. Joomla components should be MVC but they don't need to. They can actually be any (crappy) code you want. That's why everyone calls himself a pro joomla developer ;)
You only need to work your way into creating the basic joomla bootstrapper file and some installation xml and off you go.

Codeigniter Modules

I'm putting together a dashboard for a backend to a CMS project made with Codeigniter. There is some navigation in a sidebar and I"m trying to figure out what I need to know making "modules". I have two types of users. Administrators and basic users. They share the same sidebar navigation. Admins can see all links in the navigation and basic users can only see some. I was trying to look at a few different CMS's to see how they do it and really like how PyroCMS does it with putting together their navigation. However, I"m trying to find out what really tells me what I should makes a module. I know it has its own controllers, models, views and etc. I'm trying to find out with research what I need to know to really know what should I make into a module. Are their questions I should I should be asking myself that will be able to tell me what has the possibility of being a module and what isn't.
CMS Admin_Controller Line 80
Module development with PyroCMS is the way to go if you're used to working in CodeIgniter.
Becoming acclimated will be intuitive as a CI programmer, create a new module (drop it in your *addons/shared_addons/modules* folder):
https://github.com/pyrocms/sample
And notice how the routing works:
http://docs.pyrocms.com/2.2/manual/developers/basics/modular-routing
Then take a looksee at MY_Model (system/cms/core) that PyroCMS includes. I wrote a few modules before realizing PyroCMS includes a basic model that will save you from writing a lot of extraneous code. Don't worry, you can still always choose extend CI_Model instead if you don't want to use MY_Model for a module.
The more you learn about the mechanics of PyroCMS, the more you realize it has no limits. Unless you're writing trivial apps or just like re-writing code, I wouldn't start any new project in CI because PyroCMS is the more sensible starting point.
If there is something more advanced that the documentation doesn't answer for you. Then SNOOP AROUND! All the core features are built as modules. Check out how they did it in one of the core modules (system/cms/modules/). And if you want to change something in the core, you can avoid make any changes to the core by overloading views.
Once you're confident with your ported CI App, I would check out Streams. Streams will dramatically increase the time it takes to write trivial CRUD modules. If you're as happy as I've been with Pyro, you won't mind shelling out the lettuce to buy PyroCMS Pro or Streams.

Bonfire vs stock CodeIgniter - module compatability

I've been using CodeIgniter for a few months and recently discovered Bonfire, which looks like a great foundation for CI projects, despite the current build using almost outdated resources like Bootstrap 2.
I really love the module system in Bonfire, it seems like a very efficient method for creating completely independent subsystems. However, I wonder how compatible these modules would be with a normal CodeIgniter installation. Obviously you can't just dump the modules folder in, CI wouldn't know what to do with it, but is there any way to restructure a BF module into a third party plugin or something that can be used in CI?
Similarly, would it be possible to extract files from a CI installation and package them as a BF module (obviously with some tweaking)?
I would imagine the answer to those questions would probably be "of course not", so I just want to make my understanding clear; if I decide to develop with Bonfire, I would essentially be stuck using it without being able to revert to vanilla CodeIgniter and I would only be able to share my modules with other Bonfire users. Correct?
Basically the very first difference is that bonfire works on HMVC (Hierarchical model–view–controller) which means every module will contain its own model view and controller.
Yes it can easily be integrate with the vanilla codeIgniter you mentioned because the framework basically following the codeIgniter rules and provided a CMS with great functions.
Some features like:
Built-In Admin Area
Modular Coding
Data Maintenance
For more details check the documentation

What is the proper way to develop a custom theme/template for Magento 1.4

I have recently started working on an eCommerce site for a company and they have selected Magento 1.4.0 to run their store. I have spent most of my PHP "career" working with various MVC frameworks (even Zend with Magento is supposed to be based on) but the complexity of Magento seems to be on another level with no seemingly good resources to look to for help.
Looking around the site I have seen suggestions for certain books to use as reference, but they all refer to Magento 1.2 or 1.3.
My goal is to develop for Magento in a way that I do not alter any of the base code so that the client can easily upgrade the version of Magento and just "drop in" my code and have it work. The current issue is how to properly use the layout/template breakdown correctly and how to add custom model/controller functionality to the application without hacking away at Magento's core code base.
how to properly use the layout/template breakdown correctly
What you need to know is the folder structure of the Magento & the use of its own MVC structure. This is a very very important part to get you started from the basic roots. Whatever version you use, the folder structure & the MVC structure followed by Magento will almost never change. Try to follow the Magento's own Knowledge Base & Wiki tutorials. If you want you can also follow some other sites as well.
how to add custom model/controller functionality to the application
without hacking away at Magento's core code base
You will need to use the custom module functionality to override the core code base of model / controller. It's a simple process of writing the main logic in a XML file, of what core class you want to override of Magento, in your module's "etc" folder. Try to understand the process first, from the Knowledge Base & Wiki tutorials, to get a firm grip on overriding core classes.
I hope this helps.

Categories