Welcome Guest, Not a member yet? Register   Sign In
Run one controller from another controller?
#1

[eluser]mscahill[/eluser]
Is it possible to call one controller from another controller? I'm attempting to make a process that caches slow pages. The caching is already built into the pages. I've been trying to use cURL to download the pages, thus caching the pages, but authentication is a nightmare. If I could call the pages directly, then it could run with the credentials of the current user. Any ideas on how to do this?
#3

[eluser]TheFuzzy0ne[/eluser]
I wouldn't have thought so, however, have you tried including the controller and calling on it that way?
#4

[eluser]mscahill[/eluser]
The more I think about it, the more I just need cURL to work. I need the caching process to access the page the same way a user would. It determines which pages to cache based on a REQUEST_URI, which means that I either would need to completely reengineer the system, or figure out a way to fetch the file by the URL.




Theme © iAndrew 2016 - Forum software by © MyBB