Get ready to laugh at me, I forgot to initiate the listener for it. Added it and now I have an error with code typo. So now we can narrow down where the issue is for loading the variable.
Why not? I'm laughing at myself. LOL
I didn't realize that method was the same. Figured since it was Zend it would be different.In a template hook or template post render event, you can use str_replace or preg_replace to do replacements. The first is the more simpler of the two. Simple find a string and replace it with another string. preg_replace is much more complicated as you search for a regular expression.
Plenty of docs online for those.
Zend is built on PHP. Unless its acting on an object, you can use any basic PHP function.I didn't realize that method was the same. Figured since it was Zend it would be different.
Building on a framework has its own functions on top of core PHP functions to make things easier in cases. Example, in Zend Framework:News to me. I know Zend is built on PHP but using it as a framework makes coding for XenForo quite different which is why I thought it was different. Thanks anyway.
We use essential cookies to make this site work, and optional cookies to enhance your experience.