Friday, November 28, 2008

How to use Prefix Routing for form submit

Hi,

I am using Prefix Routing for my website.

I am working on a education section and calling a add action of blogs
controller

http://localhost/test/education/blogs/add/

and my router.php contains
Router::connect('/education /:controller/:action/*', array('prefix' =>
'education ', 'education ' => true));

I have made an

action : education_add in blogs controller
and view: education _add.ctp in view/blogs

but problem is How should I give action so that form submit can be
handle in education_add function.

I tried but could not be succeed
<?php echo $form->create('Blog', array('name' => 'blogform', 'action'
=> 'education_add', 'education ' => true));?>

<?php echo $form->create('Blog', array('name' => 'blogform','action'
=> 'education_add'));?>

Please tell me what should be do so that form summit can be handle in
education_add action.

Thanks

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: