We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40876
    • 2 Posts
    Can i disable Smarty in my CMP?
    I just want modx to show my cmp in plain html without any templating. Is this possible?
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      You can develop your CMP any way you like.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 40876
        • 2 Posts
        Ok, thank you.
        But I think I should clarify my question.
        There is code that I'm using in my action controller:

        abstract class MyFormManagerController extends modManagerController {
            public $loadHeader = false;
            public $loadFooter = false;
            
            public function initialize() {
                global $modx;
                return parent::initialize();
            }
            public function checkPermissions() { return true;}
           
        }
        class operatorManagerController extends MyFormManagerController {
            public function process(array $scriptProperties = array()) {}
            public function getPageTitle() {}
            public function loadCustomCssJs() {}
            public function getTemplateFile() { 
                global $modx;
                $core_path = $modx->getOption('core_path');
                return $core_path.'components/operatorform/index.html'; 
            }
        }
        


        Index.html processing via Smarty in this code.
        How can I disable it and getting plain index.html without any processing?