• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

How to use functions that are declared in snippets in Evolution CMS (Modx) in an external PHP Script?

phpmodxevolution-cms


PHP Snippet 1:

// Modx init
require_once 'config.core.php';
require_once MODX_CORE_PATH.'model/modx/modx.class.php';
$modx = new modX();
$modx->initialize('mgr');

// Run snippet
$modx->runSnippet('functions_main');

// Run your functions here

Related Snippets

Execute only one time and then wait set period of time before executing again

Group rows by column and sum another column within groups [duplicate]

Update Total in checkout of Woocommerce with Ajax Request

How to get company posts from LinkedIn via API?

dockerizing Laravel + vue

Sagepay Error The Vendor failed to provide a RedirectionURL

Can't remotely connect to MySQL error (13) with PHP script, connecting through CLI works

calling server using nusoap with complextype

How to update array value in Laravel

enable Apache http Authorization header

How can I create a Download Page with post php method?

The sum of the user's points

How can I make Laravel return a custom error for a JSON REST API

What is PHP's equivalent of JavaScript's "array.every()"?

PHP array sort and remove duplicates by two field values

About Contact Privacy policy Terms and conditions