• 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

Applying programmatically a coupon to an Order in WooCommerce3

How to get unique slug to same post-title for other time too?

protect my blog content

Check if user online laravel

Redis Command To Sort Keys

Mobile browsers are adding .html to filename on download

Multiple order by in WooCommerce

XAMPP keeps showing Dashboard/Welcome Page instead of the Configuration Page

Star and Half Star Rating in Laravel

Laravel 5: Is there a non-case sensitive way to sort a collection by an attribute?

Split comma separated value from table column into rows using mysql?

selected value from the listbox in php

Laravel websockets AWS EC2 - Connection failed

How avoid Moved Permanently The document has moved here

Could not decode a text frame as UTF-8.

About Contact Privacy policy Terms and conditions