a11hard
a11hard

Reputation: 2054

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 longer 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?

Upvotes: 0

Views: 224

Answers (2)

mohammad
mohammad

Reputation: 11

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.:)

Upvotes: 1

Ross
Ross

Reputation: 17967

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.

Upvotes: 1

Related Questions