Run Your Set Calls as a Batch

This one comes from Nate. Instead of repetitive $this->set calls, you can set all your variables in one go using the PHP compact function.

$var1 = 'text';
$var2 = 'text';
$var3 = 'text';

$this->set( compact('var1','var2','var3') );

Thanks, Nate.

Published August 18, 2006 · Updated August 18, 2006
Categorized as CakePHP
Short URL: http://www.wowgoldme.com/s/695
久久中文字幕免费高清,三级在线看中文字幕完整版,中文字幕偷乱视频在线