Re: html->link and router->url adding /bare/ to the url if action is index

2007-08-14 Thread stripes1980

FYI: I've got exactly the same issue. I didn't find any solutions yet.

On Aug 13, 9:16 pm, LunarDraco <[EMAIL PROTECTED]> wrote:
> I'm using the latest (5501) from 1.2 branch of the repository.
>
> I baked my app with scaffolding and the associated actions at the
> bottom of the page are generating two different result urls.
>
> link(__('List', true).' '.__('Recipes', true),
> array('controller'=> 'recipes', 'action'=>'index')); ?> 
> link(__('New', true).' '.__('Recipe', true),
> array('controller'=> 'recipes', 'action'=>'add')); ?> 
>
> The first html->link will generate a url as 
> 'http://localhost/recipes/bare/recipes/index' with the addition of the /bare, 
> This is
> unexpected.
>
> The second html->link will generate the url as 'http://localhost/
> recipes/recipes/add' without thebarewhich is what I expected.
>
> I've spent sometime digging in the helpers\html.php , helper.php and
> router.php, I believe the problem is in either the mapRouteElements
> function or the built up list of routes in __connectDefaultRoutes,
> there are two lines added to the routes map:
>
> $_this->connect('/bare/:controller/:action/*', array('bare' =>
> '1'));
> $_this->connect('/ajax/:controller/:action/*', array('bare' =>
> '1'));
>
> If I comment these out then all works, except for if I wanted to usebareor 
> ajax.
>
> The mapRouteElements iterates over the possible routes and exits upon
> the first match. I'm not sure if the problem is the routes array is in
> the wrong order or the matching is failing.
>
> any help would be great.
> I guess for me its time to spruce up my regex skills to see if I can
> figure out the matching conditions and why this specific route is
> chosen over the more generic route.
>
> LunarDraco


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: html->link and router->url adding /bare/ to the url if action is index

2007-08-13 Thread LunarDraco

gwoo,

I've tried the svn update and still have the same results.
I'm now at revision 5516

The router.php file was last modified by you on 8/7, this does not
seem to be the problem.
As I reverted to revision 5474 of the file and still have the problem.

I've updated my view to only have the two lines:
link(__('List', true).' '.__('Recipes', true),
array('controller'=> 'recipes', 'action'=>'index')); ?>

link(__('New', true).' '.__('Recipe', true),
array('controller'=> 'recipes', 'action'=>'add')); ?>

And still have the problem, I'm going to re bake the app folder and
all content to see if the problem was because of a console bake
template issue.


On Aug 13, 3:29 pm, Gwoo <[EMAIL PROTECTED]> wrote:
> svn update


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: html->link and router->url adding /bare/ to the url if action is index

2007-08-13 Thread R. Rajesh Jeba Anbiah

On Aug 14, 12:16 am, LunarDraco <[EMAIL PROTECTED]> wrote:
> I'm using the latest (5501) from 1.2 branch of the repository.
>
> I baked my app with scaffolding and the associated actions at the
> bottom of the page are generating two different result urls.
  

  https://trac.cakephp.org/ticket/3060

--
  
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: html->link and router->url adding /bare/ to the url if action is index

2007-08-13 Thread Gwoo

svn update


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---