i've a controller
app/controller/reports_controller.php (which count warns to be
displayed of not)
that is used in
app/view/elements/top.ctp like that :
================
$reports_lists = $this->requestAction('/reports/
index',array('return'=>false));

if (!empty($reports_lists['nb_report']))
   $tpl_temp .= "\n\t\t\t\t".'<li class="reportlink"><strong><a
href="admin_reports.php">'.__('new warnings',true).</a></strong></
li>';

echo $tpl_temp;
================
this works well until i dont do http://localhost/articles where
articles is a plugins... (app/plugins/articles/)

i have the foloowing error message :

You are seeing this error because the action reports is not defined in
controller ArticlesController
If you want to customize this error message, create app\views\errors
\missing_action.ctp.
Fatal: Confirm you have created the ArticlesController::reports in
file : app\controllers\articles_controller.php.
<?php
class ArticlesController extends AppController {
   function reports() {
   }
}
?>

but of course reports is not a method of Articles but a controller
itself.

i also tried to specify the route to make understand for the
"requestAction" where to find the stuff :

    Router::connect('/reports/*', array('controller' => 'reports',
'action' => 'index'));
    Router::connect('/articles/*',
array('plugin'=>'articles','controller' => 'articles', 'action' =>
'index'));

but that does not work too.

if i dont use articles as a plugins and let stuff is app/controllers
app/views app/models everything is ok, but i need plugins as i have a
lot of little app that has to be dispatch as plugins.

What can i do to make this work ?

Kind Regards.

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

Reply via email to