CodeIgniter Forums
Fatal error: Cannot redeclare class ? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Fatal error: Cannot redeclare class ? (/thread-20938.html)



Fatal error: Cannot redeclare class ? - El Forum - 07-26-2009

[eluser]Tyler Diaz[/eluser]
How could I use a premade class, oh say http://www.phpcaptcha.org/ and not get this nasty "Fatal error" using Code igniter?

The class returns its own functions by the way, so I would need to do something like

$xclass->set_width(150);
$xclass->set_background("#ffffff");
$xclass->add_frame($layer->frame);

Sounds like quite a simple thing to do, but I cannot seem to get around it.