@@ -33,10 +33,10 @@ public function about()
3333
3434 public function tweets ()
3535 {
36- $ config ['base_url ' ]= 'http://cc.com:89/home/tweets ' ;
37- $ config ['total_rows ' ]= $ this ->db ->get ("tweets " )->num_rows ();
38- $ config ['per_page ' ]= 10 ;
39- $ config ['num_links ' ]= 100 ;
36+ $ config ['base_url ' ] = 'http://cc.com:89/home/tweets ' ;
37+ $ config ['total_rows ' ] = $ this ->db ->get ("tweets " )->num_rows ();
38+ $ config ['per_page ' ] = 10 ;
39+ $ config ['num_links ' ] = 100 ;
4040 $ this ->pagination ->initialize ($ config );
4141
4242 $ data ['rows ' ] = $ this ->home_model ->tweets ($ config );
@@ -45,10 +45,10 @@ public function tweets()
4545
4646 public function diaries ()
4747 {
48- $ config ['base_url ' ]= 'http://cc.com:89/home/diaries ' ;
49- $ config ['total_rows ' ]= $ this ->db ->get ("diaries " )->num_rows ();
50- $ config ['per_page ' ]= 8 ;
51- $ config ['num_links ' ]= 100 ;
48+ $ config ['base_url ' ] = 'http://cc.com:89/home/diaries ' ;
49+ $ config ['total_rows ' ] = $ this ->db ->get ("diaries " )->num_rows ();
50+ $ config ['per_page ' ] = 8 ;
51+ $ config ['num_links ' ] = 100 ;
5252 $ this ->pagination ->initialize ($ config );
5353
5454 $ data ['rows ' ] = $ this ->home_model ->diaries ($ config );
@@ -62,10 +62,10 @@ public function photos()
6262
6363 public function learn ()
6464 {
65- $ config ['base_url ' ]= 'http://cc.com:89/home/learn ' ;
66- $ config ['total_rows ' ]= $ this ->db ->get ("article " )->num_rows ();
67- $ config ['per_page ' ]= 8 ;
68- $ config ['num_links ' ]= 100 ;
65+ $ config ['base_url ' ] = 'http://cc.com:89/home/learn ' ;
66+ $ config ['total_rows ' ] = $ this ->db ->get ("article " )->num_rows ();
67+ $ config ['per_page ' ] = 8 ;
68+ $ config ['num_links ' ] = 100 ;
6969 $ this ->pagination ->initialize ($ config );
7070
7171 $ data ['rows ' ] = $ this ->home_model ->learn ($ config );
@@ -74,10 +74,10 @@ public function learn()
7474
7575 public function guestbook ()
7676 {
77- $ config ['base_url ' ]= 'http://cc.com:89/home/guestbook ' ;
78- $ config ['total_rows ' ]= $ this ->db ->get ("guestbook " )->num_rows ();
79- $ config ['per_page ' ]= 8 ;
80- $ config ['num_links ' ]= 100 ;
77+ $ config ['base_url ' ] = 'http://cc.com:89/home/guestbook ' ;
78+ $ config ['total_rows ' ] = $ this ->db ->get ("guestbook " )->num_rows ();
79+ $ config ['per_page ' ] = 8 ;
80+ $ config ['num_links ' ] = 100 ;
8181 $ this ->pagination ->initialize ($ config );
8282
8383 $ data ['rows ' ] = $ this ->home_model ->guestbook ($ config );
@@ -109,4 +109,4 @@ function search()//搜索功能
109109 $ data ['rows ' ] = $ this ->home_model ->search ($ keyword );
110110 $ this ->load ->view ('search ' , $ data );
111111 }
112- }
112+ }
0 commit comments