Thanks garryn,
So obviously snippets are not just raw php like the "manager" proudly anounces. I realize the documentation and API are a little sparse at the moment but is there any form of list of what you can and can’t use?
DragonWize
Sorry garryn,
I was a little premature on thinking that would do it. I am still getting the same error. And the part that really gets me is that I searched the forums and the modx snippets code and found serveral places where they were using the header command as normal. Quite puzzling. I’ve refreshed the site. and even tried to use some of the methods in the document parser class with no avial.
Thanks for the help any other suggestions?
DragonWize
-
☆ A M B ☆
- 24,524 Posts
Well, actually they are "raw" php. The snippet’s code is evaluated within the context of the parser’s output buffer. If you really wanted to use the php redirect you could, but you would have to close the parser’s output buffer and start your own. Or something like that, I’m not real familiar with how PHP output buffering works.
http://il.php.net/manual/en/ref.outcontrol.php