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
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
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
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
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
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
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' =&
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
&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 "/
&
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
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'
),
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
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
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
('yoururlarray')) . '#slide1');
>
> > --
> > Lep pozdrav, Tilen Majerlehttp://majerle.eu
>
> > 2011/7/4 heohni
>
> > > Hi,
>
> > > I am using thise "trick" for niver urls:
>
> > > Router::connect('/partner
/majerle.eu
>
> 2011/7/4 heohni
>
>
>
> > Hi,
>
> > I am using thise "trick" for niver urls:
>
> > Router::connect('/partner', array('controller' => 'pages', 'action' =>
> > 'display',
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:
Hi,
I am using thise "trick" for niver urls:
Router::connect('/partner', array('controller' => 'pages', 'action' =>
'display', 'partner'));
link(__('Our Partners', true), array('controller'
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
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
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
27; => 'modelos',
> 'action' => 'email',
> 'categoria-slug' => 'sapatilhas',
> 'modelo-slug' => '1889900-verde'
> )
> );
>
> I changed the regexps, also. Al
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
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
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
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(
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' =>
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
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'
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
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
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
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
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
]['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' =>
&
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
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
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
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
; - 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
--- 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
example, some of my routes:
Router::connect('/fb', array('controller'=>'pages',
'action'=>'display', 'facebook'=>true, 'canvas'));
Router::connect('/fb/help', array('controller'=&
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
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
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
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
>
> > &
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
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' =>
> > '
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
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.
>
Have you tried this?
---cut here---
Router::connect('/', array('controller' => 'pages', 'action' =>
'display'));
Router::connect('/*', array('controller' => 'pages', 'action' =>
'display&
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
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)
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
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
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
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
57 matches
Mail list logo