synapsestudios/kohana-projecttemplate — comment on commit a9a8c8180232a4009d85e5f93a100d5219d26431
File: application/classes/kostache.php line 20
By mattwhittingham:

Yeah. That is a little bit slicker. I had used that a couple times. Now
that you made me rethink it. Storing the return method is probably better
for kostache. haha.

from my android
On Feb 12, 2012 10:59 PM, "Isaiah DeRose-Wilson" <
reply@reply.github.com>
wrote:

> Yeah it can be handy for some things. I rarely use it though. I normally
> store the return variable from my function, that way if I use it multiple
> times in my template the I don't have to run the whole function again.
>
> Example:
>
> public function example()
> {
> if ($this->_example)
> return $this->_example;
>
> // Do some heavy lifting here
>
> return $this->_example = $my_return_data;
> }
>
> ---
> Reply to this email directly or view it on GitHub:
>
> https://github.com/synapsestudios/kohana-projecttemplate/commit/a9a8c8180232a4009d85e5f93a100d5219d26431#commitcomment-958858
>