![]() |
run the plugin at the end of the parser - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31) +--- Thread: run the plugin at the end of the parser (/showthread.php?tid=81204) |
run the plugin at the end of the parser - titounnes - 02-03-2022 Hi All. I have a suggestion Since the plugin is executed before the loop over the data variable, we cannot use variables in the plugin the following script will cause a parse error. {+ foo bar={bash} +} To work around this parsePlugins is executed after the loop over the data variable PHP Code: /** RE: run the plugin at the end of the parser - Acuru - 02-03-2022 I didn't have this issue, but maybe better option would be to made two types of plugins, one that are parsed as they are now, and second that works as you suggested. Distinction between them could be made as folder category or plugin naming convention RE: run the plugin at the end of the parser - titounnes - 02-03-2022 (02-03-2022, 09:57 AM)Acuru Wrote: I didn't have this issue, but maybe better option would be to made two types of plugins, one that are parsed as they are now, and second that works as you suggested. Distinction between them could be made as folder category or plugin naming conventionMy suggestion is based on this thread https://forum.codeigniter.com/thread-79940.html?highlight=plugins |