By Lanford Beard
Updated September 15, 2011 at 09:35 PM EDT
Frederick M. Brown/Getty Images

How I Met Your Mother’s Barney Stinson may be a cad, but Neil Patrick Harris has proven himself to be a class act over the course of his 23-year career. The actor received a star on the Hollywood Walk of Fame today — the 2,448th in Walk history. The ceremony took place on Los Angeles’s Hollywood Boulevard near the famous Pantages theater. HIMYM co-star Jason Segel, Harris’s partner David Burtka, and Joss Whedon (director of Dr. Horrible’s Sing-Along Blog) were in attendance. HIMYM‘s seventh season premieres on CBS this Monday, Sept. 19.

Read more:

The Improbable Cool of Neil Patrick Harris

Neil Patrick Harris confirmed for ‘A Very Harold & Kumar Christmas’

Neil Patrick Harris: The lost ‘Doogie’ DVD interview