We launched new forums in March 2019—
join us there
.
In a hurry for help with your website?
Get Help Now!
Back to MODX.com
Forums
Docs
Revo Issues
Blog
My Forums
Products
Revo Discussions & Support
Search
[solved] $modx->getService() not working
☆ A M B ☆
130 Posts
jeroenkenters
Reply #1,
13 years, 8 months ago
I need Smarty in my snippet, so I tried:
<?php $modx->getService('smarty','modSmarty'); ?>
This doesn’t work, since $modx->smarty is still not set after this. How to solve this?
Jeroen Kenters
MODX Professional
|
MODX Ambassador
|
Dutch MODX forums moderator
website
|
twitter
☆ A M B ☆
130 Posts
jeroenkenters
Reply #2,
13 years, 8 months ago
Solved:
$modx->getService('smarty','smarty.modSmarty');
I guess the manual at
http://rtfm.modx.com//display/revolution20/modX.getService
needs some attention?
Jeroen Kenters
MODX Professional
|
MODX Ambassador
|
Dutch MODX forums moderator
website
|
twitter