使用tinymce编辑器保存的渲染描述
我对分页有问题。 在我的网站上,我有一个函数productList,它生成一个分页的产品列表 分页功能的代码如下所示:使用tinymce编辑器保存的渲染描述,tinymce,cakephp-2.0,strip-tags,Tinymce,Cakephp 2.0,Strip Tags,我对分页有问题。 在我的网站上,我有一个函数productList,它生成一个分页的产品列表 分页功能的代码如下所示: $this->paginate = array('conditions'=>array($otherconditions,$statuscondition,$active_condition,$catcondition),'order' => $order, 'limit' => 10); 在视图文件中, 分页器辅助对象的使用方式如下: <div
$this->paginate = array('conditions'=>array($otherconditions,$statuscondition,$active_condition,$catcondition),'order' => $order, 'limit' => 10);
在视图文件中,
分页器辅助对象的使用方式如下:
<div class="paginator">
<span class="info">
<?php echo $this->Paginator->counter(array('format' => __('Page <strong>{:page}</strong> of <strong>{:pages}</strong>')), array('escape'=>false));
?>
</span>
<ul>
<?php echo $this->Paginator->numbers(array('separator' => '', 'tag'=>'li'));?>
</ul>
</div>
假设有150个产品,那么限制为10个,就有15页。
问题是页码没有显示在第15页这样的结束页中,即当我单击页码15时,产品会显示,但分页器计数器和分页器编号链接不会显示
我在网上到处寻找解决办法,但找不到。请引导我。
PS:paginate变量取决于我的参数,如所选类别和其他条件。
我不认为分页语法有问题,因为分页适用于少量页面,如2或3。
我认为问题在于paginator助手
提前谢谢
我在检查HTML时发现了下面这行代码。在以下注释中自动注释的页码和计数器
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
< ...</p></div>
我通过在结束p标记和div标记之前添加注释来解决这个问题。
所以注释标签