Hi,
I am new to CakePHP.
I want a controller, which doesn't belong / relate to a specific model.
I am naming this controller as "RssFeedController".
It used many models, so it has an array in its defination
class RssFeedController extends AppController
{
var $name = 'RssFeed';
var $uses = array('Post', 'Wiki', 'User', 'Destination', 'Topic',
'Photo', 'PostComment', 'UserComment');
function index($jin="ahsan")
{
$this->set('name',$jin);
}
.....
....
....
also i have a folder rssfeed in view directory , in which i have
index.thtml .
which only has
<?php
echo $name;
?>
Now , when i access localhost/rssfeed/
it should idealy dispaly the "ahsan".
But , its show following error.
//===========================================
Missing controller
You are seeing this error because controller App could not be found.
Notice: this error is being rendered by the
app/views/errors/missing_controller.thtml view file, a
user-customizable error page for handling invalid controller
dispatches.
Fatal: Unable to load controller App
Fatal: Create Class:
<?php
class App extends AppController
{
var $name = 'Rssfeed';
}
?>
in file : app\controllers\app.php
//===========================================
Actually , i need a controller that doesn't belongs to a particular
model.
A controller that is invoked by
localhost/rssfeed/action/argument
and does some calculation in action method based on argument.
and simply displays the results in the corressponding view.
I hope my description makes things clear .
I am in need of help as to how to rectify this problem.
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
-~----------~----~----~----~------~----~------~--~---