Power of Love | 愛の告白
CakePHP + Twitter API

@mon_sat
and my app developed in 20 hours

Self Introduction

  • Company
    • Direct Search Japan Inc.
  • My Name
    • TANANA Kohji

Twitter and blogs

About this application

Twitter is great.

Access my app now!

Notes.

This app is using them.

One more thing

HTML5
# view
echo $this->Form->input('post',
    aa('placeholder', __("ex) I Love @mon_sat", true),
        'required',"required"));
# output
<textarea name="data[Post][post]"
    placeholder="例) I Love @mon_sat" required="required"
        cols="30" rows="6" id="PostPost">
	
CSS3
CSS3
# css
@-webkit-keyframes aMessage {
    0%  {opacity:0.0;}
    100%{opacity:1.0;}
}
@-webkit-keyframes aHopping {
    0%  {bottom: 0;}
    70% {bottom: 0;}
    85% {bottom: 6px;}
    100%{bottom: 0;}
}
.hopping {
    position:relative;bottom:0;
    -webkit-animation-name: aHopping; /* defined animation name*/
    -webkit-animation-duration: 4s; /* duration */
    -webkit-animation-timing-function: ease-out; /* type of animations */
    -webkit-animation-iteration-count: infinite; /* loop */
}

We love ...

My app is developed
about 20 hours.

I ♥ PHP Frameworks.

Thanks. by @mon_sat

.

Ktai Library で振り分ける

# controller
class UsersController extends AppController {
    var $view = "Theme";
    function beforeRender() {
        if ($this->Ktai->is_ktai()) {
            $this->theme = "ktai";
        } else {
            $this->theme = "pc";
        }
    }
}

でも注意点が。その1

同じURLでPC・ケータイ共通にするとSEO的に良くないことがあるかも

でも注意点が。その2

DebugKitを使う場合

# controller
class UsersController extends AppController {
    $components = array("DebugKit.Toolbar");
    function beforeRender() {
        $this->view = "Theme";
        $this->theme = "ktai";
    }
}

DebugKitを使う場合は、
beforeFilterまでに指定する

# controller
class UsersController extends AppController {
    $components = array("DebugKit.Toolbar");
    function beforeFilter() {
        $this->view = "Theme";
        $this->theme = "ktai";
    }
}