• 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

PHPExcel export HTML table to xlsx

Get WooCommerce products from specific category

woocommerce get_order_report_data to show order_item_id

php mysql + create a friend request system

How to get array values using foreach in laravel

I'm trying to write a clean url for my website using the $_SERVER['REQUEST_URI'] in php

php retrieve specific data onclick from database in a list format

Is it possible to re-use an array taken from PHP via JSON in a $.ajax function?

Check if a string contain multiple specific words

Creating live search with AJAX and CodeIgniter

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

Laravel UUID generation

Saving Data from form to database using AngularJS and php

Sum array values

Redirect to previous page with php

About Contact Privacy policy Terms and conditions