[eluser]Unknown[/eluser]
My code works fine as it is. I was being an idiot ccc.
Somehow I managed to copy(not move) my controller folder outside my application folder and then open my .php file in that wrong folder.
Noticed something was wrong when I started changing other things(like returning text instead of 1) and nothing was happening, till then I thought something was wrong with lib and I was messing only with it settings. Silly me.
Noticed this quite quickly but I'm slow on replying.
Thank your for replies anyway