G
G
gerrper2014-09-11 09:36:04
MODX
gerrper, 2014-09-11 09:36:04

ModX 2.3.1 - runSnippet doesn't work. Where is the mistake?

I run like this

$runParams = array(
    'tpl' => 'searchResult',
    'parents' => 0,
    'limit' => 150,
    'includeTVs' => 1,
    //'tvFilters' => $tvFilters
);

$output = $modx->runSnippet('getResources', $runParams);
var_dump($output);

I get the output string(0) ""
What did I do wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
gerrper, 2014-09-11
@gerrper

It's decided. Parameters must be quoted, including numbers

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question