CodeIgniter Forums
htmlform in DMZ 1.5.4 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: htmlform in DMZ 1.5.4 (/showthread.php?tid=24164)



htmlform in DMZ 1.5.4 - El Forum - 11-02-2009

[eluser]Kip zonder Kop[/eluser]
Hello

Thought I might share this with you. Experimenting with DMZ and htmlform, without overriding the "list" parameter in the options array, I couldn't get the dropdown lists for related models to work. After about 6 hours I discovered that changing

Code:
$list[$item->id] = (string)$item;

into

Code:
$list[$item->id] = $item->__toString();

on line 141 of htmlform.php did the trick. That's me running an older version of PHP on my dev machine.

It's possible this already has been written in the forums but my problem is hat if I do a search for DMZ related words I get threads with 600+ posts. Isn't it an idea to start a new seperate DMZ forum?


htmlform in DMZ 1.5.4 - El Forum - 11-02-2009

[eluser]bEz[/eluser]
There is a Searchable DMZ Manual now!
Don't know if you hit "New Topic" instead of "Post Reply," but if this is a bug, I would repost this in the DMz thread.

Now off to that thread to see if it has been posted... Big Grin


htmlform in DMZ 1.5.4 - El Forum - 11-02-2009

[eluser]Kip zonder Kop[/eluser]
[quote author="bEz" date="1257201521"]There is a Searchable DMZ Manual now!
Don't know if you hit "New Topic" instead of "Post Reply," but if this is a bug, I would repost this in the DMz thread.

Now off to that thread to see if it has been posted... Big Grin[/quote]

Thank you for pointing out the search possibilities. It works, it hasn't been posted.

It's not a bug. The manual states DMZ requires php 3.0 or newer but some extensions might need a newer version. htmlform is an extension. So ..


htmlform in DMZ 1.5.4 - El Forum - 11-24-2009

[eluser]q.Nghia[/eluser]
Thanks a lot for your post, KIP Smile