![]() |
fatal error - SOLVED - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: fatal error - SOLVED (/showthread.php?tid=1753) |
fatal error - SOLVED - El Forum - 06-24-2007 [eluser]jvittetoe[/eluser] Fatal error: Call to undefined function: anchor() in /home/suited84/public_html/pr0jects/myFi/system/application/views/home_v.php on line 13 i have decided to build my app on my website instead of locally. when i try to load home page im givin this error. home_v.php Code: <li><?php echo anchor('home', 'Home'); ?></li> fatal error - SOLVED - El Forum - 06-24-2007 [eluser]marcoss[/eluser] [quote author="jvittetoe" date="1182748641"] Code: <li><?php echo anchor('home', 'Home'); ?></li> You did load the url helper, right? Code: $this->load->helper('url'); fatal error - SOLVED - El Forum - 06-24-2007 [eluser]jvittetoe[/eluser] looks as though my host hasnt upgraded to php5, i had Code: function __construct(){ instead of Code: function Home(){ fatal error - SOLVED - El Forum - 06-24-2007 [eluser]marcoss[/eluser] So that was the problem. Anyway, CI has full support for PHP4 ![]() fatal error - SOLVED - El Forum - 06-24-2007 [eluser]jvittetoe[/eluser] well it just kinda postponed the issue. my host, asmallorange.com has told me to add the following line to my .htaccess t parse php files as php5 Code: AddType application/x-httpd-php5 .php .inc .php5 but that hasnt fixed anything. actually returns a 404. should i add that line to my root .htaccess or the .htaccess in my projects root. www.joshyboy.net/.htaccess or www.joshyboy.net/pr0jects/myFi/.htaccess none the less, i think im just going to go full php4. fatal error - SOLVED - El Forum - 06-24-2007 [eluser]marcoss[/eluser] Maybe PHP is running as a cgi, you can try: Code: AddType php5-cgi .php But don't worry, PHP4 will do just fine, just use the old constructor call and use var instead of public,private,etc. |