导航

04 2014 档案

摘要:drupal_render()只是对theme()的调用做了包装,真正做任务的还是theme()。function theme($hook, $variables = array()) { ... ...}theme()的开头检查了module_load_all()是否有执行。theme()只能在... 阅读全文

posted @ 2014-04-30 11:59 eastson 阅读(565) 评论(0) 推荐(0)

摘要:drupal_render()函数接收一个结构化的数组作为参数,然后调用theme()输出HTML。function drupal_render(&$elements) { ... ...}$elements['#printed']控制是否已经执行过,避免重复执行。在drupal_render()... 阅读全文

posted @ 2014-04-30 08:26 eastson 阅读(699) 评论(0) 推荐(0)

摘要:Drupal 7 driver for Microsoft SQL Server database engines. It supports both SQL Server (version 2008 and later), and SQL Azure, part of Microsoft Azur... 阅读全文

posted @ 2014-04-22 13:47 eastson 阅读(163) 评论(0) 推荐(0)

摘要:因个人需要需要重新安装Drupal。如何操纵呢?Drupal是在_drupal_bootstrap_database()函数里面检查是否已经安装过的。检查的依据是有没有$GLOBALS['databases']设置,或者是有没有设置常量MAINTENANCE_MODE=install。functio... 阅读全文

posted @ 2014-04-22 12:02 eastson 阅读(1124) 评论(0) 推荐(0)

摘要:Bootstrap 3 Menu Generator 阅读全文

posted @ 2014-04-17 16:27 eastson 阅读(239) 评论(0) 推荐(0)

摘要:这里仅限OSGi注册的Servlet,WebServer里面应该有所不同。http.registerServlet("/control/main", new ControlServlet(), null, null);http://localhost/control/mainServletPath=/control/mainContextPath=RequestURI=/control/mainRequestURL=http://localhost/control/mainPathInfo=nullhttp://localhost/control/main/ServletP 阅读全文

posted @ 2014-04-04 11:36 eastson 阅读(230) 评论(0) 推荐(0)