Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
User avatar
By mk8800
#793199
Our efforts done on windows but it can be applied to linux with a bit of modifiction.
Put cakephp 3.4 in INSTALL_DRIVE:/processmaker-3.2-0/apps/processmaker/htdocs/cakephp and follow the steps...

1. INSTALL_DRIVE:\processmaker-3.2-0\apps\processmaker\conf\httpd-app.conf
Add:
Code: Select all
Alias /cakephp INSTALL_DRIVE:/processmaker-3.2-0/apps/processmaker/htdocs/cakephp
<Directory "INSTALL_DRIVE:\processmaker-3.2-0\apps\processmaker\htdocs\cakephp">
	#RewriteEngine off
	require all granted
	AllowOverride ALL
	#Options FollowSymlinks Indexes
	Options FollowSymlinks
	ExpiresActive On    
	ExpiresDefault "access plus 1 seconds" 
	ExpiresByType image/gif "access plus 10 day"
	ExpiresByType image/png "access plus 10 day"
	ExpiresByType image/jpg "access plus 10 day"
	ExpiresByType text/css "access plus 10 day"
	ExpiresByType text/javascript "access plus 10 day"
</Directory>


Mod:
Code: Select all
<IfModule mod_rewrite.c>
      	 RewriteEngine On
RewriteCond %{REQUEST_URI} !^/cakephp/
       	RewriteCond %{REQUEST_FILENAME} !-f
       	RewriteRule ^(.*)$ /app.php [QSA,L]
</IfModule>
2. INSTALL_DRIVE:\processmaker-3.2-0\apps\processmaker\htdocs\cakephp\config\app.php
Mod:
Code: Select all
	'Error' => [
        'errorLevel' => E_ALL ^ E_DEPRECATED ^ E_STRICT^ E_NOTICE,
        'exceptionRenderer' => 'Cake\Error\ExceptionRenderer',
        'skipLog' => [],
        'log' => true,
        'trace' => true,
    ],
3. INSTALL_DRIVE:\processmaker-3.2-0\apps\processmaker\htdocs\cakephp\vendor\cakephp\cakephp\src\I18n\functions.php
Mode:
Code: Select all
function ___($singular, ...$args)
    {
        if (!$singular) {
            return null;
        }
        if (isset($args[0]) && is_array($args[0])) {
            $args = $args[0];
        }

        return I18n::translator()->translate($singular, $args);
    }
4. INSTALL_DRIVE:\processmaker-3.2-0\apps\processmaker\htdocs\cakephp\loader.php
New file:
Code: Select all
<?php
require __DIR__ . '/vendor/autoload.php';

use App\Application;
use Cake\Http\Server;

// Bind your application to the server.
$server = new Server(new Application(__DIR__ . '/config'));
// Run the request/response through the application
// and emit the response.
$server->run();

5. INSTALL_DRIVE:\processmaker-3.2-0\apps\processmaker\htdocs\workflow\public_html\app.php
Add at first:
Code: Select all
require_once "INSTALL_DRIVE:/processmaker-3.2-0/apps/processmaker/htdocs/cakephp/loader.php";
Want to create your own meme coin?

In the world of cryptocurrencies, a unique and exc[…]

The market for cryptocurrencies is demonstrating a[…]

What's SAP FICO?

Embarking on a dissertation can be one of the most[…]

Hello. For rental housing, there are software solu[…]