Codeigniter Template
UPDATE: so it looks like locally <?= $content ?>
does not register as php code in my current local php settings. Does anybody know how to change this?
Old Question: I recently transfered my CI project that uses Template library to a new local machine however it seems that the template no longe开发者_如何学Gor renders views and/or data into the template but instead just loads the template itself. I've played around with the configuration all night but with no success.
Any suggestions?
I imagine your php.ini's short_open_tag
is disabled.
CI allows the on-the-fly rewriting of these tags if you want to use them.
Look in the config file.
its because your wamp is not configuered for short_open_tag,click on wamp icon in the task bar scroll to php >>>> php settings and check short_open_tag. restart your wamp, and all done.:)
精彩评论