![]() |
Automatic Short Tag and absolut path - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Automatic Short Tag and absolut path (/showthread.php?tid=38083) |
Automatic Short Tag and absolut path - El Forum - 01-30-2011 [eluser]ludovic[/eluser] Hello I test codeigniter 2.0 and it seem have a little problem with Automatic Short Tag I've the famous eval() errors when i put rewrite_short_tags in TRUE; It don't work with relatif path ! Exactly what I 've got: Code: A PHP Error was encountered But if I put an absolute path it's work ![]() File application/config.php Code: $config['server_root'] = $_SERVER['DOCUMENT_ROOT']."/myproject"; File application/views/templates Code: include_once $this->config->item('template').$version_css.'/includes/footer.php'; And the problem disappear if I get rid of the short tags... it's weird, no ? Code: $config['rewrite_short_tags'] = FALSE; Automatic Short Tag and absolut path - El Forum - 01-30-2011 [eluser]ludovic[/eluser] Ok I put short_open_tag in On in my php.ini file There aren't any problem. |