UDT size limit

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
atz6975
Forum Members
Forum Members
Posts: 34
Joined: Thu Jan 14, 2010 4:43 pm

UDT size limit

Post by atz6975 »

Hi,
I'm getting some strange errors and it makes me wonder if there is any limit (decent or enforced) for the size of an UDT.
Thank you.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1968
Joined: Mon Jan 29, 2007 4:47 pm

Re: UDT size limit

Post by Jo Morg »

You may have to elaborate a bit more on this... I have fairly big UDT's and no errors (unless I make one myself). What kind of errors do you get, on what conditions, on what system...

http://forum.cmsmadesimple.org/viewtopi ... =40&t=2661
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
atz6975
Forum Members
Forum Members
Posts: 34
Joined: Thu Jan 14, 2010 4:43 pm

Re: UDT size limit

Post by atz6975 »

Hi,
I clearly hit the 65K characters limit in my udt.
I realise I should move to righting my own module but I can't find any documentation.
Can someone point me to module writing 101?
My module (simply) needs to load a bid bunch of smarty variables and accessing some remote db.
Right now I use 6-8 udts to do this.

Thanks.
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: UDT size limit

Post by Jos »

atz6975 wrote:load a bid bunch of smarty variables
Maybe the Custom Global Settings Module can be of help to do this. http://dev.cmsmadesimple.org/projects/customgs
The db work could be left for the UDT.
atz6975
Forum Members
Forum Members
Posts: 34
Joined: Thu Jan 14, 2010 4:43 pm

Re: UDT size limit

Post by atz6975 »

Hi Jos and thank you for your answer.
But what my udt does is "load" smarty variables with data from a backend db. It has a lot of logic.

No idea as to where I can find module development documentation?
Thanks.
atz6975
Forum Members
Forum Members
Posts: 34
Joined: Thu Jan 14, 2010 4:43 pm

Re: UDT size limit

Post by atz6975 »

I remember reading about a Module "boilerplate", but i guess it sunk with the wiki...
My module would be very simple :
1) 10-20 internal functions for processing
2) 2 DB calls
3) Logic
4) Smarty assignment
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: UDT size limit

Post by Jos »

You can check the Skeleton module. It has lots of comment in its code, so you can learn what each part does. http://dev.cmsmadesimple.org/projects/skeleton

Unfortunately it is a tiny bit behind in releases, so you also need to check the api documentation http://apidoc.cmsmadesimple.org/ check CMSModule

Also the News module is a good example. http://viewsvn.cmsmadesimple.org/listin ... h=%2F&sc=0
Post Reply

Return to “Developers Discussion”