Calling function in view from Controller or Model |
[eluser]geshan[/eluser]
yes I checked those, they work fine, the path is http://localhost/CodeIgniter163/system/a...etting.php which is fine.
[eluser]xwero[/eluser]
The reason why your file doesn't exist is that you enter a url path instead of a file path. I don't think load->file is the method you want because it outputs the file to the browser. There is a load->script method that includes the file but that method is deprecated. If you want to include a file use the php inclusion functions.
[eluser]geshan[/eluser]
include(theme_base_path().$theme_name.'/setting.php'); shows following errors Code: A PHP Error was encountered Same with include_once,require all show errors. though I try BASEPATH..... it has the same result, file not found.
[eluser]xwero[/eluser]
you have to use APPPATH Code: include(APPPATH.'views/themes/smarty1/setting.php');
[eluser]geshan[/eluser]
Thanks some primary things are solved, I'll continue to post here if problems occur. |
Welcome Guest, Not a member yet? Register Sign In |