• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Call an extern Controller

#1
[eluser]Unknown[/eluser]
Hello,

Short problem description:
How can I load a external controller and call a method of it, without sharing his functions?

What I want:
I have written an application with uses ajax. Now the most controller (and views) gives the content of a div back. Everything is good. But there exists people with have JavaScript disabled and there have a problem.

I thought, I just write an other controller with gives first the header out, then call the controller with he originally requested and gives his result out and finally print the footer of the page.

I have found the post from Peter Goodman, but I get follow exception:
Quote:A PHP Error was encountered

Severity: Notice

Message: Undefined property: Start::$UserTemp

Filename: libraries/Loader.php

Line Number: 980

Quote:Fatal error: Call to a member function _assign_libraries() on a non-object in /var/www/CodeIgniter/system/libraries/Loader.php on line 980

Can anyone help me?

Thanks a lot!
Lirum


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.