![]() |
datamapper1.8 and ci 2.02 : syntax error, unexpected $end ... in admin.php - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: datamapper1.8 and ci 2.02 : syntax error, unexpected $end ... in admin.php (/showthread.php?tid=41072) |
datamapper1.8 and ci 2.02 : syntax error, unexpected $end ... in admin.php - El Forum - 04-27-2011 [eluser]joomigniter[/eluser] New to Codeigniter :-) First post :-) I thought I start with the example in Datamapper 1.8. I installed CI 2.02 and DM 1.8 including the example, but it didn't work. I had to rename Controller to CI_Controller and change the Constructor method to __construct (in the example welcome.php controller). Then I got a message that the encryption key can not be empty. I corrected that as well. But now I am stuck at the following error message: Code: syntax error, unexpected $end in \CodeIgniter\application\controllers\admin.php on line 199 I suspect that the example is not compatible with 2.02. Does anybody have an idea what changes would be required? Thanks for any help in advance!@ datamapper1.8 and ci 2.02 : syntax error, unexpected $end ... in admin.php - El Forum - 04-27-2011 [eluser]danmontgomery[/eluser] You're missing a closing } somewhere. http://www.google.com/search?q=syntax+error,+unexpected+$end datamapper1.8 and ci 2.02 : syntax error, unexpected $end ... in admin.php - El Forum - 04-27-2011 [eluser]WanWizard[/eluser] I checked the admin.php I have here, but I don't see any missing }... datamapper1.8 and ci 2.02 : syntax error, unexpected $end ... in admin.php - El Forum - 04-27-2011 [eluser]joomigniter[/eluser] Thanks for your responses. Correct, nothing is missing. In fact I didn't change anything in admin.php. Did anybody try the example with CodeIgniter 2.02 and PHP 5.3? datamapper1.8 and ci 2.02 : syntax error, unexpected $end ... in admin.php - El Forum - 04-27-2011 [eluser]joomigniter[/eluser] This is the only change I did in welcome.php Code: <?php datamapper1.8 and ci 2.02 : syntax error, unexpected $end ... in admin.php - El Forum - 04-27-2011 [eluser]WanWizard[/eluser] I'll have to come back on this, no test environment handy at the moment... datamapper1.8 and ci 2.02 : syntax error, unexpected $end ... in admin.php - El Forum - 04-27-2011 [eluser]joomigniter[/eluser] Ok, understand. Thank your response! Does anybody have an example for Datamapper 1.8 that works with Codeigniter 2.02? I would appreciate it :-) datamapper1.8 and ci 2.02 : syntax error, unexpected $end ... in admin.php - El Forum - 04-27-2011 [eluser]joomigniter[/eluser] Figured it out. I had to enable PHP "short tags" datamapper1.8 and ci 2.02 : syntax error, unexpected $end ... in admin.php - El Forum - 04-28-2011 [eluser]WanWizard[/eluser] Ah, your using an old version of the code. That has been fixed on bitbucket, download 'tip' to get the latest version. |