> 1. Am I loading the plugin controller correctly?
>
No.
App::uses('PluginexampleAppController', 'Pluginexample.Controller');
2. Am I calling the plugin controllers function correctly?
> 3. I have tried to use the request action, it also gives me an error -
> is there a better way to call the plugins controller function?
You should have much better reason to create instance of plugin's
AppController. You can not use requestAction(), because plugin's
AppController couldn't be target of route.
Create component in your plugin
http://book.cakephp.org/2.0/en/controllers/components.html
and then
class PeopleController extends AppController {
public $components = array('Pluginexample.Factions');
public function index() {
$returnedValue = $this->Factions->unite();
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php