Page 1 of 1

Is CGSimpleSmarty using depreceated code?

Posted: Sat Dec 19, 2009 2:56 pm
by smansman
on line 319 of file class.cgsimple.php
$contentops =& $gCms->GetContentOperations();
GetContentOperations() is used but according to this
http://www.cmsmadesimple.org/api/class_ ... 0d75aab94c
its deprecated
so is it deprecated or not? can it be used in other functions ?

later on in line
326
$content =& $contentops->LoadContentFromAlias($alias);
LoadContentFromAlias is used again in the api its said that its deprecated can that be used ?

I am asking all this because
I wanted to improve theĀ  function get_page_content($alias,$block = '',$assign = '')
by adding the possibility to use also id by the
LoadContentFromId that according to the api its also deprecated
have a look here
http://www.cmsmadesimple.org/api/class_ ... b5bf997972

can somebody please enlighten me here? am I reading the wrong api manual?
or can I use the above classes/functions?

be soft with me I was away almost a year :)
thank you

Re: Is CGSimpleSmarty using depreceated code?

Posted: Sat Dec 19, 2009 4:23 pm
by Dr.CSS
There is a chance the API doc is out of date...

Re: Is CGSimpleSmarty using depreceated code?

Posted: Sat Dec 19, 2009 6:45 pm
by smansman
oh I see
So what should we use the one on CGSimpleSmarty or the one documented?

by the way we havent spoken for ages :)