Re: Router::connect with :action

2012-08-09 Thread André Luis
Also is defining that has parameters, so at least one parameter need to be sent to work this Router... Solution is Custom Routing class, as friend said, OR rewrite this route. Example: Router::connect('/home/vasti',array('plugin'=>'vastipatrak','contro

Re: Router::connect with :action

2012-08-09 Thread Rodrigo Rodrigues Moyle
There is not a option, if you define a route with /:action you are telling CakePHP the :action param is required. Maybe you try make this route using a custom class. http://book.cakephp.org/2.0/en/development/routing.html#custom-route-classes -- You received this message because you are subscri

Router::connect with :action

2012-08-08 Thread sanjeev
Hello, This is typical problem in CakePHP routing When I Router::connect('/home/vasti/:action/*', array('plugin'=>'vastipatrak','controller' => 'vastipatraks')); url /home/vasti/edit/4 works fine. but url /home/vasti/ is not working wh

Router::Connect does not appear to work with more than one routeClass in v1.3.14

2012-07-19 Thread swissmant
I have inherited a project which was developed in cakePHP v1.3.14. I am trying to route several different URLs to the same controller and function, but whichever I list as the second option in routes.php does not work. Here is the code from routes.php: Router::connect('/:city/loca

Re: cakePhp router::connect with couple values

2012-07-09 Thread lowpass
On Mon, Jul 9, 2012 at 8:34 AM, Chris wrote: > Hi! > I want on my website create rule, when I access: > > address/username the default page with user is shown. I created: > Router::connect('/*', array('controller' => 'users', 'action' =&g

Re: cakePhp router::connect with couple values

2012-07-09 Thread Chris
If this is not valid rule how can I do this in correct way? W dniu poniedziałek, 9 lipca 2012 14:34:18 UTC+2 użytkownik Chris napisał: > > Hi! > I want on my website create rule, when I access: > > address/username the default page with user is shown. I created: > Router::c

Re: cakePhp router::connect with couple values

2012-07-09 Thread Tilen Majerle
Router::connect('/*', array('controller' => 'users', 'action' => 'view')); i think you need to add this at the bottom, buuut this roule is not valid if i'm right Router::connect('/*/profil/*', array('controller' =&

cakePhp router::connect with couple values

2012-07-09 Thread Chris
Hi! I want on my website create rule, when I access: address/username the default page with user is shown. I created: Router::connect('/*', array('controller' => 'users', 'action' => 'view')); But then I cannot link any other controllers

Re: Router::connect wildcard?

2011-12-12 Thread John Hardy
&limit=&obj_id=1376&bookmark_done=1&LID=5 > > I don't know how google does this url, as this way a) it doesn't exit > on my page and b) it makes no sense and c) its wrong syntax... > > Can I write a router::connect that forwards everything with "/ &

Router::connect wildcard?

2011-12-12 Thread heohni
page and b) it makes no sense and c) its wrong syntax... Can I write a router::connect that forwards everything with "/ search.php" to my home page? And/Or Can I find out this part: obj_id=1376 in oder to redirect to this article? Thanks my friends! -- Our newest site for the community: C

Sorry again Router Connect question

2011-08-11 Thread heohni
Hi, I am so sorry but I am still lost in this router stuff... To handle my static pages I call this: Router::connect( '/:pagename', array( 'controller' => 'pages', 'action' => 'display' ),

Re: Problem with Router::connect

2011-07-19 Thread Johan
I think you got the wrong idea about routes. With this line: Router::connect('/blechlager', array('controller' => 'pages', 'action' => 'display', 'video-1')); You are telling CakePHP that any requests to the URL "/blechlager

Re: Problem with Router::connect

2011-07-18 Thread heohni
Can anyone please help me? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr

Problem with Router::connect

2011-07-18 Thread heohni
Hi, I have a multilingual page and I wanted to use the Router::connect stuff to 1. have such a link: $this->Html->url(array('controller' => 'pages', 'action' => 'display', strtolower(Configure::read('video.'.$this->Session- >r

Re: How to use Router::connect and a anchor?

2011-07-07 Thread Dr. Loboto
('yoururlarray')) . '#slide1'); > > > -- > > Lep pozdrav, Tilen Majerlehttp://majerle.eu > > > 2011/7/4 heohni > > > > Hi, > > > > I am using thise "trick" for niver urls: > > > > Router::connect('/partner

Re: How to use Router::connect and a anchor?

2011-07-04 Thread heohni
/majerle.eu > > 2011/7/4 heohni > > > > > Hi, > > > I am using thise "trick" for niver urls: > > > Router::connect('/partner', array('controller' => 'pages', 'action' => > > 'display',

Re: How to use Router::connect and a anchor?

2011-07-04 Thread Tilen Majerle
Try this $this->Html->link(__('Our Partners', true), $this->Html->url(array('yoururlarray')) . '#slide1'); -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/7/4 heohni > Hi, > > I am using thise "trick" for niver urls:

How to use Router::connect and a anchor?

2011-07-04 Thread heohni
Hi, I am using thise "trick" for niver urls: Router::connect('/partner', array('controller' => 'pages', 'action' => 'display', 'partner')); link(__('Our Partners', true), array('controller'

Re: Help with 'persist' on Router::Connect

2010-12-30 Thread Amit Badkas
wrote: > Hello again! :P > > can someone explain me how to set the parameter 'persist' in > Router::Connect() function to achieve insert automatically the > language on the first level of url in every $html->link()? I searched > a lot and I didn't find a goog exlana

Help with 'persist' on Router::Connect

2010-12-30 Thread talisker
Hello again! :P can someone explain me how to set the parameter 'persist' in Router::Connect() function to achieve insert automatically the language on the first level of url in every $html->link()? I searched a lot and I didn't find a goog exlanation about this. I ne

Re: Complex Router Connect

2010-11-25 Thread cricket
On Thu, Nov 25, 2010 at 5:06 AM, Daniel wrote: > Thanks cricket, > For generate URLs it worked fine, but when i access the link i got a > error "Controller Sapatilhas not found". > Url: > http://localhost/bottero/sapatilhas/133901/compartilhar-via-email What's this bottero? That's why the route d

Re: Complex Router Connect

2010-11-25 Thread Daniel
27; => 'modelos', >                 'action' => 'email', >                 'categoria-slug' => 'sapatilhas', >                 'modelo-slug' => '1889900-verde' >         ) > ); > > I changed the regexps, also. Al

Re: Complex Router Connect

2010-11-24 Thread cricket
tegoria-slug' => 'sapatilhas', 'modelo-slug' => '1889900-verde' ) ); I changed the regexps, also. Although it's difficult to say what you need for categoria-slug, what you had didn't appear to make sense. Router::con

Complex Router Connect

2010-11-24 Thread Daniel
Well guys, i trying to setup this Router and i cant made it work, Some1 have any ideia? Code: http://bin.cakephp.org/view/369700705 URL Should return: http://www.domain.com/sapatilhas/1889900-verde/compartilhar-via-email It dont work.. Check out the new CakePHP Questions site http://cakeqs.org

Re: Router::connect() not behaving as expected in 1.3?

2010-08-31 Thread mark_story
llo, > > I'm upgrading my app from 1.2 to 1.3.  I have several custom routes > setup like so: > Router::connect('/blog/:action/*', > array('controller'=>'news_articles', 'action'=>'index')); > > This works fine, except

Re: Router::connect() not behaving as expected in 1.3?

2010-08-31 Thread SacoDesign
e talking about. Have a look at the pre-defined > routing for pages that's already in your routes.php file: > >         Router::connect('/pages', array('controller' => 'pages', 'action' => > 'index')); >         Router::connect(&#x

Re: Router::connect() not behaving as expected in 1.3?

2010-08-31 Thread DragonFlyEye
re-defined routing for pages that's already in your routes.php file: Router::connect('/pages', array('controller' => 'pages', 'action' => 'index')); Router::connect('/pages/*', array('controller' => &#x

Re: Router::connect() not behaving as expected in 1.3?

2010-08-30 Thread Nikhil
ccessing our regular URL at / users/someAction/5, we'd like to be able to access it by /cooks/ someAction/5. The following route easily takes care of that: Plain Text View Router::connect( '/cooks/:action/*', array('controller' => 'users', 'action

Re: Router::connect() not behaving as expected in 1.3?

2010-08-30 Thread DragonFlyEye
Not sure what order you had things in, but order is important. So, you should be able to get things working by putting these two in the following order: Router::connect('/blog/:action/*', Router::connect('/blog/*', array('controller'=>'news_articles'

Re: Router::connect() not behaving as expected in 1.3?

2010-08-26 Thread SacoDesign
Thanks for the response. I still cannot get the entire directory to respond as a controller without 2 router::connect() calls. I removed the 'action'=>'index' as suggested. Has anyone else experienced this issue? I removed every route from my routes.php and tried

Re: Router::connect() not behaving as expected in 1.3?

2010-08-25 Thread DragonFlyEye
That all looks correct, and it would be the same in 1.2. You might write the following, though: Router::connect('/blog*', array('controller' => 'news_articles')); That would push all requests for the /blog directory to the right controller, then you can create

Re: Router::connect() not behaving as expected in 1.3?

2010-08-25 Thread SacoDesign
I expected that /blog/ would route to the news_articles controller (index action) like a call to /blog/index would do. This is the way it worked on 1.2. Now, on 1.3, a request for /blog/ looks for the blog controller. Is there any way to combine the two Router::connect()'s into one? To a

Re: Router::connect() not behaving as expected in 1.3?

2010-08-25 Thread cricket
On Wed, Aug 25, 2010 at 9:05 AM, SacoDesign wrote: > Hello, > > I'm upgrading my app from 1.2 to 1.3.  I have several custom routes > setup like so: > Router::connect('/blog/:action/*', > array('controller'=>'news_articles', 'action

Router::connect() not behaving as expected in 1.3?

2010-08-25 Thread SacoDesign
Hello, I'm upgrading my app from 1.2 to 1.3. I have several custom routes setup like so: Router::connect('/blog/:action/*', array('controller'=>'news_articles', 'action'=>'index')); This works fine, except for when the url is on

Re: How to hide id with router::connect

2009-09-03 Thread Martin Westin
]['model'])); > > How can I define a route that changes the url from > '/cars/view/14/nissan/maxima' to '/cars/nissan/maxima'?? > > I did Router::connect('/cars/*', array('controller'=>'cars', 'action' => &

How to hide id with router::connect

2009-09-03 Thread hahmadi82
27;])); How can I define a route that changes the url from '/cars/view/14/nissan/maxima' to '/cars/nissan/maxima'?? I did Router::connect('/cars/*', array('controller'=>'cars', 'action' => 'view')) which got rid of the &#

Re: Router Connect

2009-06-19 Thread Braindead
This is the link to the corresponding chapter in the cookbook Adam mentions: http://book.cakephp.org/view/544/Prefix-Routing Hope that helps, Markus --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To

Re: Router Connect

2009-06-18 Thread Adam Royle
Look into admin routing in the cakephp cookbook. Cheers, Adam On Jun 19, 12:44 pm, thatsgreat2345 wrote: > I'm a little confused by routes at the moment. Currently I have an > admin structure where each function such as > function users($load = null, $id = null) { >     $this->viewPath = 'admin

Router Connect

2009-06-18 Thread thatsgreat2345
I'm a little confused by routes at the moment. Currently I have an admin structure where each function such as function users($load = null, $id = null) { $this->viewPath = 'admins/users'; switch ($load) { Case 'add': $this->rende

Re: Webroot and prefix in Router::connect()

2009-06-18 Thread Greg Baker
; - Original Message - > From: "Greg Baker" > To: "CakePHP" > Sent: Thursday, June 18, 2009 10:51 AM > Subject: Webroot and prefix in Router::connect() > > > I am working on my facebook app (you may have seen other messages here > > by me abo

Re: Webroot and prefix in Router::connect()

2009-06-17 Thread Adam Royle
--- Original Message - From: "Greg Baker" To: "CakePHP" Sent: Thursday, June 18, 2009 10:51 AM Subject: Webroot and prefix in Router::connect() > > I am working on my facebook app (you may have seen other messages here > by me about this) and I have hit anoth

Webroot and prefix in Router::connect()

2009-06-17 Thread Greg Baker
example, some of my routes: Router::connect('/fb', array('controller'=>'pages', 'action'=>'display', 'facebook'=>true, 'canvas')); Router::connect('/fb/help', array('controller'=&

Re: what this function does> Router::connect()

2008-10-24 Thread xelios
Thx On Oct 24, 5:07 pm, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote: > http://book.cakephp.org/view/542/Defining-Routes > > On Fri, Oct 24, 2008 at 9:48 AM, xelios <[EMAIL PROTECTED]> wrote: > > > I am using WizardComponent, can anybody tell me wot the following > > function does and where it

Re: what this function does> Router::connect()

2008-10-24 Thread Dardo Sordi Bogado
http://book.cakephp.org/view/542/Defining-Routes On Fri, Oct 24, 2008 at 9:48 AM, xelios <[EMAIL PROTECTED]> wrote: > > I am using WizardComponent, can anybody tell me wot the following > function does and where it should be placed. > > > --~--~-~--~~~---~--~~ You

what this function does> Router::connect()

2008-10-24 Thread xelios
I am using WizardComponent, can anybody tell me wot the following function does and where it should be placed. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake

Re: Routing Question how to use Router::connect('/') with session_id?

2008-01-30 Thread sanemat
fty <[EMAIL PROTECTED]> wrote: > > > > I might not be understanding this properly - but WHY would you want to > > > stick session IDs in the URL? It's just about the worst thing you > > > could ever do for SEO. > > > > Steve > > > &

Re: Routing Question how to use Router::connect('/') with session_id?

2008-01-29 Thread nate
s in the URL? It's just about the worst thing you > > could ever do for SEO. > > > Steve > > > On Jan 28, 12:38 pm, sanemat <[EMAIL PROTECTED]> wrote: > > > > I am wordering how to get url to work: > > > /?CAKEPHP=session_id > > > > Here

Re: Routing Question how to use Router::connect('/') with session_id?

2008-01-28 Thread sanemat
ROTECTED]> wrote: > > > I am wordering how to get url to work: > > /?CAKEPHP=session_id > > > Here is my route in app/config/routes.php: > > Router::connect('/', array('controller' => 'pages', 'action' => > > '

Re: Routing Question how to use Router::connect('/') with session_id?

2008-01-28 Thread sanemat
Thank you for your reply. But '/*' matches all url like '/posts/add' '/comments/edit/2', all request calls '/pages/display'. And I tried this. Router::connect('/:sesseionID', array('controller' => 'pages', 'action&#x

Re: Routing Question how to use Router::connect('/') with session_id?

2008-01-28 Thread MrTufty
ssion_id > > Here is my route in app/config/routes.php: > Router::connect('/', array('controller' => 'pages', 'action' => > 'display')); > > When I access '/', it call '/pages/display', As I expected. >

Re: Routing Question how to use Router::connect('/') with session_id?

2008-01-28 Thread Marcin Jaworski
Have you tried this? ---cut here--- Router::connect('/', array('controller' => 'pages', 'action' => 'display')); Router::connect('/*', array('controller' => 'pages', 'action' => 'display&

Routing Question how to use Router::connect('/') with session_id?

2008-01-28 Thread sanemat
I am wordering how to get url to work: /?CAKEPHP=session_id Here is my route in app/config/routes.php: Router::connect('/', array('controller' => 'pages', 'action' => 'display')); When I access '/', it call '/pages/display

Re: Regular expression in Router::connect

2007-05-15 Thread Matthias Bauer
On 15.05.2007 02:50 Aaron Shafovaloff wrote: > I figured it out: > > Router::connect('/:group/:curriculum/*', > array('controller'=>'curriculum'),array('curriculum'=>'\b(?:(?! > curriculum|courses|facilitators|configuration)

Re: Regular expression in Router::connect

2007-05-14 Thread Aaron Shafovaloff
Hr turns out that doesn't really work. I give up. On May 14, 6:50 pm, Aaron Shafovaloff <[EMAIL PROTECTED]> wrote: > Wooo hoo! > > I figured it out: > > Router::connect('/:group/:curriculum/*', > array('contro

Re: Regular expression in Router::connect

2007-05-14 Thread Aaron Shafovaloff
Wooo hoo! I figured it out: Router::connect('/:group/:curriculum/*', array('controller'=>'curriculum'),array('curriculum'=>'\b(?:(?! curriculum|courses|facilitators|configuration)\w)+\b')); Thanks to: http://www.ros

Re: Regular expression in Router::connect

2007-05-14 Thread Aaron Shafovaloff
By the way, I need it to exclude multiple strings. So something to the effect of: Router::connect('/:group/:curriculum/*', array('controller'=>'curriculum'),array('curriculum'=>'!xyz AND !abc AND !mno')); On May 14, 3:38 pm, Aaron Shafo

Regular expression in Router::connect

2007-05-14 Thread Aaron Shafovaloff
With Router::connect I'd like to use a regular expression that would say "the curriculum cannot be xyz' ". Shouldn't this work? Router::connect('/:group/:curriculum/*', array('controller'=>'curriculum'),array('curriculum'=&g