02-17-2011, 04:21 AM
Here's my function:
Yes, I did it haha. (it doesn't use the control_object function, I was missing a & to make sure it didn't create a copy of the options in the child)
Here's my code for those interested:
PHP Code:
|
If I output $parser->options at the end of the function, allow_html is set to 1, however if I get outside of it, it is back to 0.
This is where the function runs in class_parser.php
PHP Code:
|
I put a die after that and it is back to 0 as I said above.
Any idea why? I'm pulling my hairs off. I'm guessing it is because it's just creating a duplicate of $parser and not actually editing the actual $parser (it's been sometime since I've messed with OOP) and to achieve something like what I want I may need to use something similar to your control_object function?
Edit:
Tried your control_object function and I'm getting the same problem:
PHP Code:
|
Yes, I did it haha. (it doesn't use the control_object function, I was missing a & to make sure it didn't create a copy of the options in the child)
Here's my code for those interested:
PHP Code:
|