How to I add inline style in a .ctp file in CakePhp?
You can treat a .ctp file almost exactly as you would .htm or .html
The extension enables CakePHP to see the file as a template. As such it can contain 100% HTML or 100% PHP or Javascript or CSS or any mix of anything you want that your server can parse.
That said, I would recommend that you keep your styles in a CSS file and include it like:
echo $html->link('my_styles')
;
You can treat a .ctp file almost exactly as you would .htm or .html
echo $this->Form->input('textarea', array('rows' => '5', 'cols' =>'5','style'=>array('background-color:#F99')));
echo $this->Form->input("price",array("type"=>"text","label"=>false,"div"=>false,"style"=>"width:70px;height:20px;"));