Is CGSimpleSmarty using depreceated code?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
smansman
Forum Members
Forum Members
Posts: 28
Joined: Wed Apr 23, 2008 6:08 pm

Is CGSimpleSmarty using depreceated code?

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Is CGSimpleSmarty using depreceated code?

Post by Dr.CSS »

There is a chance the API doc is out of date...
smansman
Forum Members
Forum Members
Posts: 28
Joined: Wed Apr 23, 2008 6:08 pm

Re: Is CGSimpleSmarty using depreceated code?

Post 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 :)
Post Reply

Return to “Modules/Add-Ons”