• 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

How to debug in WooCommerce 3+

How to get page number on dompdf PDF when using "view"

Implode columnar values between two arrays into a flat array of concatenated strings

Add a custom text for a particular product on specific email notification in Woocommerce

Laravel Unknown Column 'updated_at'

shell errors running php exec

Laravel update hasMany relationship using saveMany

Dynamic dropdown Ajax PHP request

Sum array values

run a query using EXECUTE BLOCK to prepair a column for an unique-Index

Zig-zag scan an N x N array

php echo xml documents with header

browsersync doesn't work with XAMPP

Composer Script echo

getting error while enter Command => php artisan route:list

About Contact Privacy policy Terms and conditions