Hi Nate,
> One question, with the following route:
>
> Router::connect("/articles/:action",
> array("controller"=>"articles"),
> array("action" => "list|controller|actions|here")
> );
>
> Am I right in thinking I need to list ALL methods my Articles
> controller has here? Is that just public or private as well?
the answer is at least in part you need to add your public actions,
not sure about private yet.
Routes work a treat though, I have:
Router::connect(
"/articles/:year/:month/:day/",
array(
"controller" => "articles",
"month" => null,
"day" => null,
"slug" => null
),
array(
'year' =>$Year,
'month' =>$Month,
'day' =>$Day
)
);
Router::connect(
"/articles/:year/:month/:day/:slug",
array(
"controller" => "articles",
'action'=>'view',
"month" => null,
"day" => null,
"slug" => null
),
array(
'year' =>$Year,
'month' =>$Month,
'day' =>$Day,
'slug' =>"[A-Za-z0-9_\-]+"
)
);
Router::connect("/articles/:action",
array("controller"=>"articles"),
array("action" =>
"featured|recent|view|admin_add|admin_edit|admin_index")
);
Router::connect("/articles/:category_slug",
array("controller" => "articles", 'action' => 'index'),
array("category_slug" => "[A-Za-z0-9_\-]+")
);
Thanks,
Jon
--
jon bennett
w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---