• 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

Cache clear probem in Larave

Can't call javascript alert alertify library from PHP

I can't delete my image when it is liked because of the foreign key in mysql

Laravel Pagination links() not working

Creating command to backup MySql database in Laravel

Pass a select with mysqli_fetch_row to a table

I cannot create a auto generated date time in mysql workbench

OAuth2 Token PHP

SQL AVG() to 2 decimals

Convert PHP array into HTML tag attributes separated by spaces

Adding hreflang tags automatically in WordPress subdirectory multisite

PHP Startup Unable to load dynamic library /usr/lib/php/20151012/php_mysqli.dll

protect my blog content

Laravel database insert with combining array and string

Don't show recurring price for WooCommerce subscriptions worth 0$

About Contact Privacy policy Terms and conditions