【问题标题】:How to redirect to other action in cakephp2 with jquerymobile?如何使用 jquery mobile 重定向到 cakephp 2 中的另一个动作?
【发布时间】:2015-01-03 03:29:11
【问题描述】:

我在这里遇到问题,我认为这里的一些专业人士可以帮助我。

目前,我用 cakephp2 制作了一个网站,并为它实现了 jquery mobile。 问题是下面的链接不起作用。每当我尝试使用链接时,它会显示一个黄色对话框,上面写着“加载页面错误”。

<a data-rel="back">Return</a> <?php echo $this->Html->link('Home',array('action'=>'index'),array('data-icon'=>'home','data-iconpos'=>'notext)));?></div>

【问题讨论】:

  • 你写的是关闭 div 但没有打开 div。

标签: jquery ajax jquery-mobile cakephp-2.0


【解决方案1】:
<?php echo $this->Html->link('Home',
  array(
        'controller'=>'your_controller',  //Write here controller name
        'action'=>'index'),
 array(
        'data-icon'=>'home',
        'data-iconpos'=>'notext')));   //Here you missing single quote
?>

【讨论】:

    猜你喜欢
    • 2017-10-25
    • 1970-01-01
    • 1970-01-01
    • 2017-01-26
    • 2012-02-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多