iiiOrz

如果我不能死在一万个敌人的包围中,那就让我死在一万个美女的怀抱中吧

Main menu

Skip to primary content
Skip to secondary content
  • Home
  • about

Tag Archives: tips

kohana3 tips: get orm validate errors

Posted on October 26, 2009 by admin
Reply
echo kohana::debug($orm_object->validate()->errors());
Posted in 淫荡小琵琶 | Tagged kohana, tips | Leave a reply

kohana3 tips: profiler

Posted on October 16, 2009 by admin
Reply
echo View::factory('profiler/stats');
Posted in kohana | Tagged kohana, tips | Leave a reply

kohana3 tips: current uri

Posted on October 16, 2009 by admin
Reply

完全版本(带GET参数):

$current_uri = URL::site($this->request->uri).'?'.http_build_query($_GET, '&');

干净版本:

$current_uri = URL::site($this->request->uri);
Posted in kohana | Tagged kohana, tips | Leave a reply

Recent Posts

  • Auto reload .vimrc 自动加载 .vimrc
  • Google: new approach to china
  • 转战mac平台
  • 世子赋
  • PHP编辑器VIM

Categories

  • kohana
  • 淫荡小琵琶
  • 混沌海

Blogroll

  • aligo
  • icyleaf
  • Kohana 中文
  • Unofficial Kohana 3.0 Wiki
  • utom

Archives

  • June 2010
  • March 2010
  • December 2009
  • November 2009
  • October 2009
  • June 2009
  • May 2009
  • April 2009

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
Proudly powered by WordPress