Username
Forgot password?
Welcome to our site!
Or Join with FTTF

Doubt in Lampcms!!!

2

783 views
Hi Dmitri,

When I went through some code of lampcms, I saw the following line of code
$this->usersHtml = '<div class="users_wrap">'.\tplU3::loop($this->Cursor, true, $func).$this->pagerLinks.'</div>';

In above line 'loop method' is predefined method or user defined method? If it is user defined method,in which page,definition for that method is I can see.That method is not in tplU3 file.

Thanks
Regards
Mahesh
 
asked December 1, 2011 at 4:44 AM

 IN

1 Answer

0
 
loop is a function of the Template class, it just takes in array or Iteratable object, like Mongo Cursor and iterates (loops) through results and one by one passes each result to parse() method, concatenating the result.

It's not user defined method, you should never modify it yourself.
flag
answered December 2, 2011 at 5:41 AM

Your answer

Join with account you already have

FTTF

Preview

Alert