chriskacerguis / codeigniter-restserver

A fully RESTful server implementation for CodeIgniter using one library, one config file and one controller.
MIT License
4.89k stars 2.86k forks source link

An issue with philsturgeon Template ver1.9.0 #191

Closed kalyankj closed 11 years ago

kalyankj commented 11 years ago

When I display the welcome_message.php through the template, I get this error. welcome_message.php works fine on its own. template works fine on its own rendering other contents.

Fatal error: Call to undefined function site_url() in C:\xampp\htdocs\ci2\application\views\welcome_message.php on line 53 Call Stack #TimeMemoryFunctionLocation 10.1101352200{main}( )..\index.php:0 20.1230425216require_once( 'C:\xampp\htdocs\ci2\system\core\CodeIgniter.php' )..\index.php:202 30.16321894720call_user_func_array ( ???, ??? )..\CodeIgniter.php:359 40.16321894768Test->template( )..\CodeIgniter.php:359 510.72982205856Template->build( ???, ???, ??? )..\test.php:31 610.73132208128Template->_find_view( ???, ???, ??? )..\Template.php:250 710.73132208416Template->_load_view( ???, ???, ???, ??? )..\Template.php:688 810.73132208512CI_Loader->view( ???, ???, ??? )..\Template.php:727 910.73132209088CI_Loader->_ci_load( ??? )..\Loader.php:419 1010.73202261000include( 'C:\xampp\htdocs\ci2\application\views\welcome_message.php' )..\Loader.php:833

kalyankj commented 11 years ago

$autoload['helper'] = array('url'); solved the issue.