Require a path in one php file in Jumi to another php file in Jumi

1.8k Views Asked by At

I installed the Jumi extension to Joomla.

I uploaded the php files and one css file that I need to make an addition to the website.

I put pathnames to them for example:

components/com_jumi/order_confirm.php
components/com_jumi/review.php
components/com_jumi/includes/formValidations.php
components/com_jumi/includes/config.php

Now the file order_confirm.php has code to require the formValidation.php file:

require_once ("includes/formValidations.php");

But when I create a new menu item that points to the php file review.php it outputs the following warning and error:

Warning: require_once(includes/formValidations.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/37/9463737/html/components/com_jumi/views/application/view.html.php(40) : eval()'d code on line 3

Fatal error: require_once() [function.require]: Failed opening required 'includes/formValidations.php' (include_path='.:/usr/local/php5_3/lib/php') in /home/content/37/9463737/html/components/com_jumi/views/application/view.html.php(40) : eval()'d code on line 3

Does that mean the paths that I wrote for each file in Jumi is not the actual path for these files?

Any help is much appreciated!

Thank you, Al

1

There are 1 best solutions below

14
On BEST ANSWER

I think it depends how you are using jumi extensions. 1. In case you are using it as a plugin, then you have to set the option 'Default Absolute Jumi Path' in Plugin Manager / System - Jumi 2. In case you're using it like a module - in Module Manafer / jumi-module / advanced options / Default Absolute Jumi Path