Posts Tagged ‘tips’

kohana3 tips: get orm validate errors

Monday, October 26th, 2009
echo kohana::debug($orm_object->validate()->errors());

kohana3 tips: profiler

Friday, October 16th, 2009
echo View::factory('profiler/stats');

kohana3 tips: current uri

Friday, October 16th, 2009

完全版本(带GET参数):

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

干净版本:

$current_uri = URL::site($this->request->uri);