The way I learnt was down a quiet road/street, if you start in the road and then gap to the kerb landing front wheel first of course.
I started by being on the back wheel and my front wheel literally hovering over the top of the kerb, then without a pedal kick I changed my weight from the back to the front, literally just flicking your weight forward. This gives you the feeling of the weight transfer technique required.
Then from there you just start building it up, start half a foot back from the point where you was and add a pedal kick into it, you should be able to pick it up very soon.
I found it much easier to learn from flat up to something (like 1 pallet or a kerb) as you are dropping your front wheel or changing your weight a lot, which of course you do when you gap from 1 pallet to 1 pallet. I find it much scarier to gap to front on two flat objects, whereas having one more raised than the other is less daunting (as your front wheel it nearly at the right height for it).