Ok, I sweep alot of other topics and documentation and it doesn't help in anyway so I'm posting my problem. Please help.
I'm making my own theme (from a scratch) reading documentations and tutorial I manage to make my theme working and its great and rewarding but as I dig deep for more features I came along with the default search widget given by wordpress. I manage to add it in my sidebar but when I search for something it throw me back to home page.
It threw me back to home page because I didn't add a search.php page,
so I added one, and now it throw me there.
my problem is what should I put on that search.php to query the result of the search widget. I tried to follow this but it doesn't work.