Given that they work for others, and sometimes for you, it seems that the functions themselves are likely fine, and the problem is in how you’re using them. For us to help with that, you’ll need to show a little bit of how you’re using them in the cases where they don’t work, and specifically what symptoms you see.
I have used in navigation as links but that not works on my machine and my colleague works fine that links. That used in layout file. and on page i have page where used some postlink but not works also not show on hover address in browsers.
See code:
postLink creates a form with a link that submits it, which is why the URL doesn’t show when you hover over it like it does with a normal link.
Are you saying that the links generated by your first line of code here don’t work? Could it be because you’re using “accounts” as the controller name instead of “Accounts”? That would probably work if your server is on an OS where the filesystem is case-independent. Maybe your colleague is running Windows and you’re running Linux? This is very much a guess, as you still haven’t explained what “not working” actually means.
Yes, Your right I am using Linux machine and my colleague is windows. postLink i used to do some functionality but try inspect that but form not generate on dom for one postlink but on same page other postlinks are working fine. same code copied and tried. not works. and now i am facing the links are not working.
If you change it to 'controller' => 'Accounts' (upper case A), does that fix it for you?
As for the post links, again, until you tell us specifically what “not working” means, and show the specific code that is “not working”, there’s little we can do here. It seems you’re maybe saying that the HTML for the link sometimes doesn’t appear anywhere in your output? Are you simply forgetting to echo it, perhaps?