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?
Related
I was trying to make some features inside my version of Moodle but that requires to alter or edit the core files or add new functions to the core files and for sure if I tried to upgrade my version all edits will be gone so I was trying to create a plugin for this edits but couldn't find any how to do it .. and most of the documents for older version .. so my question now is how to modify core files with a plugin?
Thanks
how to modify core files with a plugin
You cannot do it directly, but you may use the CustomScripts functionality to substitute executable files with your own
I have installed Opencart 2.0.3.1.
vqmod 2.5.1.5 for Opencart,
vqmod manager 3.0,
and ProductQuestionsAndAnswers_v1.8.2_oc2.0.x.x
These have all been uploaded manually via ftp, i've followed the simple instructions for vqmod's installation to rewrite part of the index.php and admin/index.php which seems to have created all of the required cache files.
The module is installed, enabled and visible in the modules section and in the vqmod manager, however when I try adding the module to the theme layout there is no option for this module.
Everything appears to be working fine other than for not being able to insert the module into a layout.
Not all modules for Opencart have that option to add it in a layout.A big portion of the modules in opencart are made by students or people that are learning to code most of the free modules don't even have that option. Now that we have this out of the way.
Other solutions to this problem.
If you are using a custom /admin panel lets say your admin is called bestbanana
You need to open the VqMOD xml file that is located in the VQmod/xml folder
and change all the values that contain admin to bestbanana
Or if you are using a custom theme that has different structure than the default opencart one,than you need to modify it a little bit more.
Since VqMOD works as a search engine it searches/replaces adds and so forth bu it searches by exact words. e.g peaces of code.
but without posting any code or something similar there is nothing much that anyone can help you with.
Hope that this will help you
I am developing mobile application for existing magento website and the mobile application has its own web admin and web admin developed in core php (not in magento). Can we put the core php web admin code to magento /app/code/local/ folder ? and is it work with magento ?
Please help me on this.
We can consider Magento as an application that is constituted by modules. Each of this module does different functionalities, but still they are independent to each other. This property makes Magento highly extendable and powerful.
By default, Magento comes with lot of such individual modules. These modules are located inside app/code/core. Note that, this folder only holds Model and Controller logic parts. View logics are separated from this and it normally lies in app/design and skin folders.
If you need to extend Magento core functionality or if you need to add any new functionality, you have two options available.
Use an extension
Develop your own custom modules
For extension/pluggin, Magento uses app/code/community directory. This way core modules are seperated from extensions and it gives us lot of flexibility.
When you use your own modules to add any functionality, you probably need to add your module in app/code/local. This way, custom modules are seperated from both core and extensions.
When Magento looks for a module, it will first check that module in local directory. If it is not there, then it will check in community directory. If it is not there, again it will check in core directory. Finally it will check it in lib directory. This callback mechanism is the core concept that you need to understand , before start to develop your own extensions.
It is not necessary to put your custom module in app/code/local directory. You can put it in community or in core directory. This is because, the callback mechanism can pick up your module, irrespective of these three locations. However as I said earlier, three of this directories has its own purpose. So better use them properly as it demands.
Hope that makes lot of sense
From Magento Wiki,
Every custom module will be created in the directory:
/app/code/local
And this is the directory structure that you use to create one:
/app/code/local/<Namespace>/<Module>/
That way, we can have multiple modules under a single namespace.
Naresh, /app/code/local/ is used to put your custom developed plugin/extension for magento. it's main aim to have custom developed code and core code separate.
If in future you upgrade the version of magento than it overwrite/delete the code written in /app/code/core/ but leave the code as it is in /app/code/local/ and it's place where you can override the core block/helper/model as well.
you can't copy your code directly in to core, you have to create module/plugin to club your existing code with magento.
How should I be doing the following
- adding new form fields to the product edit page
- adding a new menu item to the admin console main menu
Are there any hooks that can be called from my extension?
Or
Should I be editing the core files itself to add this functionality?
OpenCart is not a Wordpress and has no hooks You could use to Your purpose, nor it has no events nor event listeners that could be used as well.
When implementing some functionality for OpenCart for long time we only had the possibility to edit the core files directly which led to work lost when we updated to newer version, also installing plugins/extensions modifying core files was possible only in way open file A, go to line XYZ and place this code there. Then go to file B ....
In past few years we have a possibility to use vQmod which was improved rapidly and using this You are possible to inject Your new code into existing core files and remove or modify some of the source code in the core files with the certainty Your changes are not lost after the update to a newer version. Of course, Your extension may stop working but it is a lot easier just to modify the changes in XML file then to re-implement all the lost work again (and again).
Similar to vQmod there is also some Override Engine that should also help You to implement extensions apart from OC's core files but I haven't tried it yet.
I am pretty new to Joomla and i want to add my own HTML, PHP and Javascript code into my joomla website.
I have been looking at this question:
Custom php code in Joomla page
How ever it seems that the Jumi plugin or extension is only for 1.4 - 1.6 and i'm running joomla 3.0
I was wondering if any of you guys know or use any form of extension to add your own code into your joomla website!?
Not sure where you found 1.4 and 1.6 from, but Jumi is definitely compatible with Joomla 3.x, as you see see in the following link:
http://extensions.joomla.org/extensions/edition/custom-code-in-content/1023
it has the image:
Download and install the extension and don't forget to read the documentation through if you have issues, as most people seem to forget this ;)
if you waht to add code in sens of your articles will contain code ( PHP, javascript & HTML)
then create simple module try to find some module generator on the net then affect that module to a position and load that module in your article like this {loadmodule position}