Hi All,

this is my first application using cakePHP so apologies if this is a
bit basic. I was following the 15min blog tutorial and using it as the
basis for my own application but I am getting an error when I try and
pass through an ID to a function via the URL.

e.g. http://localhost/nsg/testimonials/deActivate/5 should be calling
the function deActivate ($id) in the testimonials_controller.php but I
keep getting the error:

You are seeing this error because the view for
PagesController::testimonials/deActivate/5() could not be found.
If you want to customize this error message, create app\views/errors/
missing_view.thtml.
Fatal: Confirm you have created the file : C:\xampp\htdocs\nsg\app
\views\pages\testimonials/de_activate/5.thtml

I have had to configure routes.php to get my application working so I
am unsure if this is the problem area but other functions in the
controller that do not require an ID all perform fine.

My routes looks like:

$Route->connect ('/testimonials', array('controller'=>'testimonials',
'action'=>'index','index'));
        $Route->connect ('/testimonials/view',
array('controller'=>'testimonials', 'action'=>'view','view'));
        $Route->connect ('/testimonials/add',
array('controller'=>'testimonials', 'action'=>'add','add'));
        $Route->connect ('/testimonials/listActive',
array('controller'=>'testimonials',
'action'=>'listActive','list_active'));
        $Route->connect ('/testimonials/listUnActive',
array('controller'=>'testimonials',
'action'=>'listUnActive','list_unactive'));
        $Route->connect ('/testimonials/update/',
array('controller'=>'testimonials', 'action'=>'update','index'));
        $Route->connect ('/testimonials/delete/',
array('controller'=>'testimonials', 'action'=>'delete','index'));

Any help would be appreciated.

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