Hi,

I have a problem with requestAction (i think) i have a number of
eements that are used accross various pages that display data from
variious requestActions. It worked fine for two controllers, but this
one isn't and i can't see why. MAybe because the controller uses a
different model?


I get the following error:

"Warning: array_merge_recursive() [function.array-merge-recursive]:
Argument #1 is not an array in
C:\wamp\www\mad_final1.0\cake\libs\view\view.php on line 371

Warning: array_merge() [function.array-merge]: Argument #2 is not an
array in C:\wamp\www\mad_final1.0\cake\libs\view\view.php on line 372

Warning: extract() [function.extract]: First argument should be an
array in C:\wamp\www\mad_final1.0\cake\libs\view\view.php on line 571"

this is a working controller:

class ClubsController extends AppController {
        var $name = 'Clubs';
    var $helpers = array('Html','Javascript', 'Ajax');


    function index() {
        $this->pageTitle = 'Manchester Clubbing';
        $this->set('data','Nothing Yet');

$this->set("listings",$this->requestAction("/listings/tonight"));

$this->set("recommended",$this->requestAction("/listings/recommended"));
        $this->set("features",$this->requestAction("/features/short"));

$this->set("photoevents",$this->requestAction("/photoevents/shortPE"));

$this->set("competitions",$this->requestAction("/competitions/smallComp"));

$this->set("madreviews",$this->requestAction("/madreviews/shortRev"));

$this->set("userreviews",$this->requestAction("/userreviews/shortRev"));
    }
}

this is the broken one:

class BarsController extends AppController {
        var $name = 'Bars';
        var $helpers = array('Html', 'Form', 'Javascript', 'Ajax' );
        var $uses = 'Venue';

        function index() {
                $this->pageTitle = 'ManchesterAD mk2 Final Dev';
        $this->set('data','Nothing Yet');

$this->set("listings",$this->requestAction("/listings/tonight"));

$this->set("recommended",$this->requestAction("/listings/recommended"));
        $this->set("features",$this->requestAction("/features/short"));

$this->set("photoevents",$this->requestAction("/photoevents/shortPE"));

$this->set("competitions",$this->requestAction("/competitions/smallComp"));

$this->set("madreviews",$this->requestAction("/madreviews/shortRev"));

$this->set("userreviews",$this->requestAction("/userreviews/shortRev"));
        }
}


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to