我有这个链接,我用于我的模态
<?php
echo $this->Html->link('Create Schedule', '#', array('id' => 'createSchedule', 'class' => 'btn btn-success', 'role' => 'button', ));
?>
如何将其转换为$ this-&gt; Form-&gt; end()格式?
谢谢!
答案 0 :(得分:0)
You can try this
<?php
$options = array(
'label' => 'Create Schedule',
'id' => 'createSchedule',
'class' => 'btn btn-success'
);
echo $this->Form->end($options);
?>
答案 1 :(得分:0)
你也可以这样做
class ViewController: UIViewController {
@IBOutlet var lblTitle:UILabel?
//MARK: - View lifecycle
override func viewDidLoad() {
super.viewDidLoad()
self.lblTitle!.text = "Hello....!!!"
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}
或者您也可以这样做
<?php
echo $this->Form->button("Create Schedule", array("id" => "createSchedule", "class" => "btn btn-success", "type" => "submit"));
echo $this->Form->end();
?>