twitter サービスホーム画面作成
#05 ホーム画面を作ってみよう
http://dotinstall.com/lessons/tw_connect_php_v2/21905
を参考に、ログインしたあとのホーム画面を作成
index.php を作成し
1 2 | require_once ( 'config.php' ); require_once ( 'codebird.php' ); |
で設定ファイルとライブラリを読み込む
HTML部分は
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | <! DOCTYPE html> < html lang = "ja" > < head > < meta charset = "utf-8" > < title >ホーム画面</ title > </ head > < body > < h1 >ホーム画面</ h1 > < p >twitter アカウントでログインしています</ p > < p >< a href = "logout.php" >[ログアウト]</ a ></ p > </ body > </ html > |
とする
つぶやき関連はリスト形式で表示するので
1 2 3 | < ul > < li ></ li > </ ul > |
であとで表示していく