Hi all,
During some UDT developpement, I made a print_r($smarty) to see if could catch some information.
I saw a "very big" smarty object containing all the pages content (not only the one I'm on).
They are located in the $smarty->[_tpl_vars]->gCms[hrinstance][content].
I don't really understand why they are all in this object.
Is it because I use it in a UDT ?
Is there some configuration to switch ?
My CMS version is 1.6.1
Thanks for answer(s)
Stephane
Very big smarty object
Re: Very big smarty object
Smarty is way to big to get just "some"
info. All you need is {get_template_vars}, {dump item=$entry}, {$entry|print_r}

Re: Very big smarty object
Thanks Peciura for answer,
I didn't explore the get_template_vars functionnality. I will ...
But my question is only a "performance" one : if I can find all the pages content in this object, it means that there was one (or more) sql query made to do this.
Actually, I'm just making some tests on one very little page with 5 html lines in it, and I was surprised to see that all pages were retrieve from database, stored in smarty object, just to print out these 5 lines (I don't speak about template, modules ... that are retrieve, but really the content of all the pages).
If this object is stored in a cache, then 'no problem' ...
To be continued ?
Stephane
I didn't explore the get_template_vars functionnality. I will ...
But my question is only a "performance" one : if I can find all the pages content in this object, it means that there was one (or more) sql query made to do this.
Actually, I'm just making some tests on one very little page with 5 html lines in it, and I was surprised to see that all pages were retrieve from database, stored in smarty object, just to print out these 5 lines (I don't speak about template, modules ... that are retrieve, but really the content of all the pages).
If this object is stored in a cache, then 'no problem' ...
To be continued ?
Stephane