eyeway (2) [Avatar] Offline
#1
Hi, maybe my question is a bit silly but I couldn't find any answer to it untill now.
In chapter 4 you register the plugin ActionSetup in position 98.
My question is how we determine the stack index each time?
How do we know each plugin in wich index is registered?

Thank you for your help.
akrabat (479) [Avatar] Offline
#2
Re: Ch4. Stack Index.
The short answer is that by default each plugin just gets the next number starting from 1.

If you dig into the code, you'll discover that that action stack plugin puts itself at 97 and the error plugin is at 100. I picked 98 so that it occurred after the actionstack.

Nowadays, you wouldn't use the action stack though and would use view helpers and action helpers.

Regards,

Rob...