测试coolCode

刚刚安装了一个coolCode的插件,目的是为了能够和关注这个Blog的人共享一些有用的代码.
所以,下面我随便发一些代码,看看能不能让Code高亮起来.

$page = isset($_GET['page']) ? (int)$_GET['page'] : 0;
$pagesize = 50;
$conditions = null; // 查询条件为 null,表示查询所有记录
$sortby = ‘created DESC’;
FLEA::loadClass(‘FLEA_Helper_Pager’);
$tableProducts = FLEA::getSingleton(‘Table_Products’);
// $tableProducts 是用于操作产品数据表的表数据入口对象
$pager = new FLEA_Helper_Pager($tableProducts, $conditions, $page,
$pagesize, $sortby);
$view = $this->_getView();
$view->assign(‘pagerData’, $pager->getPagerData);
$view->assign(‘products_list’, $pager->findAll()); // 查询指定页的产品数据
$view->display(‘products_list.html’);

这下好像可以了,呵呵.

相关日志:

  1. 关于Soz
  2. 友情链接
  3. Meyu空间
  4. Java连接MySQL
  5. 10天以来第一次写搏
  6. 沈殿霞去世?
  7. 联系Soz
  8. 听者有心祝大家:圣诞快乐!
This entry was posted in 闲谈 and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>