framing in a header. Can I toenail from each side?
Yes, toenails will work. In some cases toenails hold better than nails run through the stud into the end grain. The nail head is what does a lot of the work, make sure the heads are set into the surface. It also helps the drywall set better, when you trim the door out you will find what I mean if you don't