Vheissu / Ci-Smarty

Smarty templating engine integration for Codeigniter 3.0+ with inbuilt theming and asset management.
http://ilikekillnerds.com
179 stars 43 forks source link

non-standard ci installation #26

Closed spescina closed 11 years ago

spescina commented 11 years ago

I have a CI installation with a folder structure a little bit different from the standard

app |-> system |-> application www |-> index.php

In this scenario the system is broken and I get this php warning

[Message: file_get_contents(.\app\application\views\smartytest.tpl): failed to open stream: No such file or directory Filename: sysplugins/smarty_internal_resource_file.php Line Number: 65]

and then blank page. Second refresh only compiled blank page without warning.

Vheissu commented 11 years ago

Do you get any errors when loading default Codeigniter view files from the views directory by any chance? Files are being loaded using the APPPATH constant defined in the view paths in the file libraries/MY_Parser.php towards the end. You could try implicitly changing the path yourself.