Using request action?
<?php echo $this->requestAction('/controllerName/ipcheck/100.0.0.1');?>
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of Saeedo
Sent: Monday, 3 September 2007 2:07 a.m.
To: Cake PHP
Subject: invoking controller function from view
Hello:
Background:
I am attempting to create an application that pings multiple address.
The problem that I am having is the execution limit is reached i.e. 60
seconds when running the script. Also, this is not acceptable due to
the end-user waiting for all request to finish before displaying at
least some of the results.
Fix:
My solution for this problem was to create an img tag that passes
variable to a function and return if a host is reachable. Hence, the
page will display an image depending on the result.
Problem:
How do I pass to the controller the ip address?
<img src='<?php echo $this->controller->ipcheck('100.0.0.1')?>'>
Thanks,
Saeedo
__________ NOD32 2497 (20070901) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---