随笔分类 -  32-PHP

ctags 用法
摘要:1、.module .inc .php .install文件按php创建tag$ctags-R--langmap=php:.php.inc.module.install.2、gvim 设置tags文件,在命令模式或.vimrc文件输入:settags=/var/www/html/o2o/branches/branch211/tags: 阅读全文

posted @ 2012-04-20 14:04 Hero King 阅读(335) 评论(0) 推荐(0)

drupal 7 动态加载模块include文件
摘要:drupal 7 动态加载include文件可以使用module_load_include函数,函数描述如下/***Loadamoduleincludefile.**Examples:*@code*//Loadnode.admin.incfromthenodemodule.*module_load_include('inc','node','node.admin');*//Loadcontent_types.incfromthenodemodule.*module_load_include('inc','node' 阅读全文

posted @ 2012-04-20 13:39 Hero King 阅读(316) 评论(0) 推荐(0)

drupal 7 设置SEO函数
摘要:drupal 7 设置SEO主要利用drupal_add_html_head和drupal_set_title两个函数/***setseo*$data=array('title'=>,'keywords'=>,'description'=>);**/functionset_seo($data=array()){if($data['description']){$meta_description=array('#type'=>'html_tag','#tag'= 阅读全文

posted @ 2012-04-19 23:42 Hero King 阅读(300) 评论(0) 推荐(0)

导航