跳转到主要内容

Drupal开发

AJAX Loading of any Block

Ajax调用任何区块的例子

More complicated way

Place 2 div's with the ID of boost-stats & boost-user where you would like the data to appear. I use a block to do this.


php存取mysql中文utf8乱码问题的完美解决

三条语句解决了。

mysql_query("SET NAMES 'utf8'");
mysql_query("SET CHARACTER_SET_CLIENT=utf8");
mysql_query("SET CHARACTER_SET_RESULTS=utf8");


在模板或模块嵌入Views2的示范代码

最新views 3.x(drupal 7)的变动

例子: 不显示pager,仅显示6条记录,如下:

        $view->display_handler->set_option('pager', array('type'=>'some','options' => array('items_per_page' => 6)));

========================================================================