There is no official "walk through walls" cheat in Pokémon Platinum. Some glitches allow unintended movement, but they are:
Best experience: play as intended and enjoy the designed challenges.