On 12/25/06, phpjoy <[EMAIL PROTECTED]> wrote:
2)
loadModel('Section');
$Section =& new Section;
$this->Section =& new Section;
$Section->id = $_GET['section'];
if($Section->exists()==TRUE) echo $_GET['section'] .':Exists';
else echo $_GET['section'] .':Doesnt Exist';
Load the model and do the needful rather than doing a requestAction
which fires up the entire Dispatch all over again.
That said... why are you using $_GET in your code? and also echo? or
was this just some pseudo-code
HTH
Tarique
--
=============================================================
PHP Applications for E-Biz: http://www.sanisoft.com
Coppermine Picture Gallery: http://coppermine.sf.net
=============================================================
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---