Routes question (what if second pass variable is set)

2008-09-05 Thread Fahad
hi, i m developing my own blog application using cakephp and need some help with routes. for example, i have 3 categories: cakephp, jquery, and css. and i have one article (post) associated to each of those categories. i want the urls to be like this: 1. http://mysite.com/archives/{category

Re: Unable to read $this->session() in AppController when using Admin Routes

2008-08-30 Thread fabio . sfuncia
en using admin prefix (/admin/news/index), the logged-in user >> data is not shown (probably overwritten by redirect info): >> >> Array ( >> [Config] => Array ( ... ) >> [Message] => Array ( ... ) >> [Auth] => Array ( >> [redirect] => /admin/news/

Re: Unable to read $this->session() in AppController when using Admin Routes

2008-08-29 Thread Jaime
; Array ( >         [Login] => Array ( **LOGGED USER DATA** ) >     ) > ) > > But when using admin prefix (/admin/news/index), the logged-in user > data is not shown (probably overwritten by redirect info): > > Array ( >     [Config] => Array ( ... ) >     [Messag

Unable to read $this->session() in AppController when using Admin Routes

2008-08-29 Thread Jaime
[Auth] => Array ( [redirect] => /admin/news/index ) ) Because of this I cannot use admin routes (I have no loggin info). After deep debugging and searching everywhere, I just cannot figure out the solution :-( Any ideas? --~--~-~--~~~---~--~~ You

Re: Custom Routes & Back Tracing with CakePHP 1.2

2008-08-25 Thread Adrian
Thank you, I did and I had replied to it also with my previously flawed method. However I needed something even more generic than what you described. The link I posted on my original message describes something similar. After a lot of playing around with the routes and dumping the $this->par

Re: Custom Routes & Back Tracing with CakePHP 1.2

2008-08-25 Thread biesbjerg
the community is playing. After reading about custom routes I thought > I had the brilliant idea of using prefix routes to set the variable of > the game. So I set up 3 routes like so > > Router::connect('/jge/:controller/:action', array('prefix' => 'jge');

Custom Routes & Back Tracing with CakePHP 1.2

2008-08-25 Thread Adrian
I am working on a site that will need 3 themes, one each for the games the community is playing. After reading about custom routes I thought I had the brilliant idea of using prefix routes to set the variable of the game. So I set up 3 routes like so Router::connect('/jge/:controller/:a

Re: Are routes this flexible?

2008-08-21 Thread David C. Zentgraf
That doesn't seem to work, I get Missing Action errors. Router doesn't seem to check wether an :action actually exists or not. Chrs anyway, Dav On 21 Aug 2008, at 22:31, theChrisWalker wrote: > > I haven't tested it but from memory you could refactor those routes >

Re: Are routes this flexible?

2008-08-21 Thread theChrisWalker
I haven't tested it but from memory you could refactor those routes to: Router::connect('/events/:action/*', array('controller' => 'events', 'action' => 'index')); Router::connect('/events/*', array('controller'

Re: Are routes this flexible?

2008-08-19 Thread David C. Zentgraf
t now I'm doing this by specifying these routes: Router::connect('/events/add', array('controller' => 'events', 'action' => 'add')); Router::connect('/events/edit/*', array('controller' => 'events', &

Re: Routes issue.

2008-06-21 Thread Manu0310
Thanks for the response, it helps a lot . I will rethink the routes issue Great input! On Jun 21, 9:35 am, Ian Zepp <[EMAIL PROTECTED]> wrote: > What you want is a route that defines a single-part URL as defaulting to > the users controller: > > Router::connect('/:acti

Re: Routes issue.

2008-06-21 Thread Ian Zepp
What you want is a route that defines a single-part URL as defaulting to the users controller: Router::connect('/:action', array( 'controller' => 'users' )); And it needs to be at the top of the routes file, because the Router scans from the top down. HO

Re: Routes issue.

2008-06-20 Thread Manu0310
Hey I tried it and it works, thanks a lot. The only small thing is that for every action I define in the users controller I need to add to the routes. Router::connect('/login', array('controller' => 'users', 'action' => 'login')); Router:

Re: Routes issue.

2008-06-20 Thread Dr. Tarique Sani
On Sat, Jun 21, 2008 at 10:03 AM, Manu0310 <[EMAIL PROTECTED]> wrote: > > > Router::connect('/users/:action/*', array('controller' => 'users')); > Router::connect('/*', array('controller' => 'users', 'action' => > 'login')); > Router::connect('/login', array('controller' => 'users', 'action' => '

Routes issue.

2008-06-20 Thread Manu0310
HI, I have a controller called users where I do all my user actions. Login,logout,profile,view.. etc I want to be able to modify the routes so that people can go to mysite.com/login rather than mysite.com/users/login etc for all actions in the users controller. I am using cakePHP 1.2 and I

custom routes and pagination (how I did it)

2008-06-07 Thread b logica
ase do let me know. I have a view with a list of links, "a, b, c, ... " that are used to place a find condition on last name. The controller is Artists but all of the access to it is through custom routes because it's a multilingual site. Some of my routes actually use regexp lists

Re: Limiting Routes to specific Controllers

2008-06-04 Thread benjam
But I'd still like to know the proper cake way of getting it to work. Thanks, and sorry for the multiple posts. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to ca

Re: Limiting Routes to specific Controllers

2008-06-04 Thread benjam
I found a workaround... by adding 'training' => true to all my cake links parameter arrays, it works. e.g- link($lesson['title'], array('controller' => 'lessons', 'action' => 'view', $lesson['id'])); ?> -- doesn't work, but should link($lesson['title'], array('training' => true, 'controller' =>

Re: Limiting Routes to specific Controllers

2008-06-04 Thread benjam
I'm having troubles getting this working the way I want it to. I am using the prefix method (although I also tried the array method with equally false results) an I have my router set up like this: $params = array( 'prefix' => 'training' , 'controller' =>

Re: Routes fail to catch root URL with query string

2008-06-04 Thread Dr. Tarique Sani
FWIW - I tried to replicate the bug you are mentioning - works as expected for me. The tests also pass. I am sure the devs appreciate that you are trying to help but they will definitely not fall over to acknowledge that... thats how it works around here if you can't live with that move to the nex

Re: Routes fail to catch root URL with query string

2008-06-04 Thread AD7six
On Jun 4, 10:39 am, Mr-Yellow <[EMAIL PROTECTED]> wrote: > WTF!!! > > https://trac.cakephp.org/ticket/4660 > > Updated from wontfix to deleted Without answering any > questions. That should hide the problem. You've done this before IIRC. You have completely misunderstood what "# resolu

Re: Routes fail to catch root URL with query string

2008-06-04 Thread Mr-Yellow
WTF!!! https://trac.cakephp.org/ticket/4660 Updated from wontfix to deleted Without answering any questions. That should hide the problem. geez guys, do you want people to try to help or are you only interested in playing games? -Ben On Jun 4, 11:48 am, Mr-Yellow <[EMAIL PROTECTED]>

Routes fail to catch root URL with query string

2008-06-03 Thread Mr-Yellow
https://trac.cakephp.org/ticket/4660 Seems to be an issue again -Ben --~--~-~--~~~---~--~~ 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 unsubscrib

Re: routes and named params

2008-06-01 Thread 炀FireYang
Router::connect('/musicians/:id', array('controller' => 'requests', 'action' => 'view')); 2008/6/1 cronet <[EMAIL PROTECTED]>: > > Thanks for Response! > > But thats not exactly what I need. > In your case the var iss always passed as first argument. > e.G. for URL: /musician/3 > > // $this->pass

Re: routes and named params

2008-06-01 Thread cronet
Thanks for Response! But thats not exactly what I need. In your case the var iss always passed as first argument. e.G. for URL: /musician/3 > // $this->passedArgs[0] == 'musician' > // $this->passedArgs[1] == '3' In controller it would be: function view( $type, $id) { } But I would like to do s

Re: routes and named params

2008-05-31 Thread b logica
Router::connect('/musicians', array('controller' => 'requests', 'action' => 'view', 'musician')); // $this->passedArgs[0] == 'musician' Router::connect('/bands', array('controller' => 'requests', 'action' => 'view', 'band')); // $this->passedArgs[0] == 'band' On Sat, May 31, 2008 at 6:00 PM, cro

routes and named params

2008-05-31 Thread cronet
Hi, I want to achieve different URLs map to the same controller with different named arguments. The named arguments should not appear in the URL itselfs... Examples: URL: /musicians Mapped to: RequestsController->view(); $this->passedArgs['type'] = 'musician'; URL: /bands Mapped to: Request

Re: Use routes to permanently redirect?

2008-05-30 Thread francky06l
You can set it in the .htaccess On May 30, 7:09 pm, Luke <[EMAIL PROTECTED]> wrote: > I have the following route: > > Router::connect('/newrv.cfm', array('controller' => 'rvs', 'action' => > 'index', 'new')); > > Is it possible to do this, but issue a 301 and redirect to the correct > url? Right

Use routes to permanently redirect?

2008-05-30 Thread Luke
I have the following route: Router::connect('/newrv.cfm', array('controller' => 'rvs', 'action' => 'index', 'new')); Is it possible to do this, but issue a 301 and redirect to the correct url? Right now it does the right thing, but no 301 and it stays at / newrv.cfm in the location bar. Thanks!

Re: Question about install dir, .htaccess, and routes

2008-05-23 Thread Dardo Sordi Bogado
Seems like cake gods are too shy. Maybe the answer of a mere mortal could help you: Try with rewrite_base in your .htaccess, but first please revisit the "advanced setup" section in the manual. HTH, - Dardo Sordi. On Fri, May 23, 2008 at 11:35 PM, MikeK <[EMAIL PROTECTED]> wrote: > > I responde

Re: Question about install dir, .htaccess, and routes

2008-05-23 Thread MikeK
I responded to your email. I like you am asking for help. I suggest you post your issue on another thread and perhaps someone with more knowledge than I can help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakeP

Re: Question about install dir, .htaccess, and routes

2008-05-23 Thread adroitus solutions
Hi Mike , Can will you be able to help me with my basic installtion issue Please ?? On Fri, May 23, 2008 at 12:02 PM, MikeK <[EMAIL PROTECTED]> wrote: > > OMG I found the answer to the last question - in function baseURL in > the dispatcher it actually doctors up the URLs if you are using

Re: Question about install dir, .htaccess, and routes

2008-05-23 Thread MikeK
OMG I found the answer to the last question - in function baseURL in the dispatcher it actually doctors up the URLs if you are using the default app name of 'app' and webroot name of 'webroot' - this type of HACK tells me all I need to know on the original question -- I think I'll just move the su

Re: Question about install dir, .htaccess, and routes

2008-05-23 Thread MikeK
One final question to add. WHen I take the 'app' subdir and place it in public_html with everything in webroot/index.php configured as default, I NEVER see 'app' in any paths generated by the link helpers. However the moment I rename app to anything else (in index.php), all of a sudden the APP_DIR

Question about install dir, .htaccess, and routes

2008-05-23 Thread MikeK
I am attempting to clean up my URLs just a hair and have a question for those that have more experience with tweaking how cake and my app are installed, and usage of .htaccess and routes. I apologize in advance to the gods of cake if this question is not to your liking ;) But I appreciate any

Re: Limiting Routes to specific Controllers

2008-05-20 Thread benjam
Both of those options seem like they would work perfectly. I think I will implement the array version for my needs right now, and look at the prefixing as a cleaner, more 'Cake' way in the future (I'm on a deadline right now, and need something quick). Thanks to you both. --~--~-~--~

Re: Limiting Routes to specific Controllers

2008-05-20 Thread Dardo Sordi Bogado
> How (if it's possible), can I limit the controllers allowed to go > through the /training dir? I only have four controllers that I want > to have access to the /training dir, all other requests should show an > error, or better yet, redirect to the proper controller directory. I'm not sure but

Re: Limiting Routes to specific Controllers

2008-05-19 Thread Jonathan Snook
What you might be interested in is prefix routing. http://book.cakephp.org/view/39/configuration#routes-configuration-46 On Mon, May 19, 2008 at 5:41 PM, benjam <[EMAIL PROTECTED]> wrote: > > I'm having a menu problem, I have a section of my site which 'wraps' >

Limiting Routes to specific Controllers

2008-05-19 Thread benjam
though I am in the same 'section' of the site. I figured I could fix this with routes and and have a route set up as the following... (/training is the topmost dir for the section) Router::connect('/training/:controller/:action/*', array('controller' => 'less

Expires Headers and Routes

2008-05-13 Thread wilson
Hi everyone, This question is not specific to CakePHP, but does anyone have any advice how I would set the Apache Expires header in .htaccess for every URL except for '/admin/*. My normal 'Yslow inspired' Expires header causes problems with images and session flash messages in my clients' admin

Routes with additional data.

2008-03-10 Thread Tom Holder
Hi all, I'm new to Cake and enjoying it quite a bit but routes are causing me a problem and, at first glance, seem a bit limited. Throughout my site I need to have URLs such as: /company//website// How can I pass the and through to my controller/action? Is it to do with the third para

Routes or Template Field?

2008-03-02 Thread wilson
template in the table? For example, pages.template = 'clients' 2 Hard-code the possible routes, for example: Router::connect('/clients/*', array('controller' => 'clients', 'action&#x

Re: create dynamic site map from routes?

2008-02-12 Thread Renan Gonçalves
sure I have seen a cakephp googlesitemap thingie (either a > components > > or a tutorial on making them; I bookmarked it but can't find the > bookmark > > anymore) > > > > I am not certain if routes can be used for this; perhaps theres a better > > way? >

Re: create dynamic site map from routes?

2008-02-12 Thread T73 Net
> or a tutorial on making them; I bookmarked it but can't find the bookmark > anymore) > > I am not certain if routes can be used for this; perhaps theres a better > way? > > but info on route is herehttp://api.cakephp.org/1.2/class_router.htmltheresa > routes - which i

Re: Makeing Routes work

2008-02-06 Thread sabkaraja
Thanks AD7Six My understanding was if I set something like: Router::connect('/:action/', array('controller' => 'pages', 'action' => 'view')); and any links like /about/ will be parsed as action name (since I used :action in the route) I think the correct way to do is to add this as the last rul

Re: Makeing Routes work

2008-02-06 Thread AD7six
On Feb 6, 9:15 am, sabkaraja <[EMAIL PROTECTED]> wrote: > Hi, > > I have religously followed the routing examples by the masters. But I > am not sure how and why its not working for me: > > controllers users and admin which work fine. > > #default action for users > Router::connect('/users/', ar

Makeing Routes work

2008-02-06 Thread sabkaraja
Hi, I have religously followed the routing examples by the masters. But I am not sure how and why its not working for me: controllers users and admin which work fine. #default action for users Router::connect('/users/', array('controller' => 'users', 'action' => 'login')); #default action for a

Re: Admin Routes in combination with standard routes.

2008-01-30 Thread Bo-oz
Works like a charm! care to elaborate? thanks adam. On Jan 30, 3:08 pm, Adam Royle <[EMAIL PROTECTED]> wrote: > Try this: > > $Route->connect('/'.CAKE_ADMIN, array('controller' => 'products', > 'action' > => 'index', CAKE_ADMIN => CAKE_ADMIN)); > > On Jan 30, 11:46 pm, Bo-oz <[EMAIL PROTECTED]>

Re: Admin Routes in combination with standard routes.

2008-01-30 Thread Adam Royle
Try this: $Route->connect('/'.CAKE_ADMIN, array('controller' => 'products', 'action' => 'index', CAKE_ADMIN => CAKE_ADMIN)); On Jan 30, 11:46 pm, Bo-oz <[EMAIL PROTECTED]> wrote: > Hi I've defined the CAKE_ADMIN line in /app/config/core.php > > this works great. > > Only calling:http://domain.co

Admin Routes in combination with standard routes.

2008-01-30 Thread Bo-oz
Hi I've defined the CAKE_ADMIN line in /app/config/core.php this works great. Only calling: http://domain.com/admin resolves in a error that the controller was not defined. Therefor I've tried to define a new route: $Route->connect('/admin', array('controller' => 'products', 'action' => 'index'

Routes syntax - do not understand

2008-01-28 Thread David Zentgraf
Hi, I've googled around, looked through the Group and read the short manual entry for Routing, but I still don't understand the syntax. It'd be nice if somebody could explain in detail how routing works. $Route->connect('/:controller/:action/*', array('controller' => 'SomeController', 'action' =

Re: create dynamic site map from routes?

2008-01-24 Thread Sam Sherlock
I am sure I have seen a cakephp googlesitemap thingie (either a components or a tutorial on making them; I bookmarked it but can't find the bookmark anymore) I am not certain if routes can be used for this; perhaps theres a better way? but info on route is here http://api.cakephp.or

create dynamic site map from routes?

2008-01-24 Thread [EMAIL PROTECTED]
I would like to create a dynamic site map foe my CakePHP 1.2 beta site. Normally I would pull the site map from a cms database of pages. But I do not have a CMS for this site, and thought maybe I could do this using routes or some other knowledge Cake itself holds. Any ideas

Re: trouble with routes

2008-01-14 Thread b logica
gt; > > > -- snip -- > > Route placement > > Just for reference, you should place the /* route LAST in your routes file > > or it will override all of the other routes. posted Sun, Oct 22nd 2006, > > 18:44 by Luke Sheridan > > -- snip -- > > Hrm, I hadn

Re: trouble with routes

2008-01-14 Thread Chris Hartjes
On Jan 14, 2008 4:22 PM, b logica <[EMAIL PROTECTED]> wrote: > > Here's one: > > http://bakery.cakephp.org/articles/view/taking-advantage-of-the-pages-controller > > -- snip -- > Route placement > Just for reference, you should place the /* route LAST in your ro

Re: trouble with routes

2008-01-14 Thread b logica
at other > frameworks do, but not Cake. > Here's one: http://bakery.cakephp.org/articles/view/taking-advantage-of-the-pages-controller -- snip -- Route placement Just for reference, you should place the /* route LAST in your routes file or it will override all of the

Re: trouble with routes

2008-01-14 Thread Chris Hartjes
On Jan 14, 2008 3:53 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I was under the impression that putting a route last would act as a > default and that the particular one I mentioned *must* be last or it > will override all others. It appears to me that the opposite is in > fact happening.

trouble with routes

2008-01-14 Thread [EMAIL PROTECTED]
CakePHP 1.2.0.6311-beta, Apache 2.2.6, PHP 5.2.4 I had routing working pretty well but then started adding some static pages. These are all linked to under the "/about" path and so i placed the files under /app/views/pages/about/. In order to get Cake to display these i have a route like: Router

Re: Problem with custom routes

2008-01-06 Thread J.B.
I still have my problem, and when I print the content of $this->params with: "pr($this->params)" in the app_controller, the $this- >params['week'] and $this->params['year'] still contains the same value (the week value). I have managed to access the year value with $this->params['pass'][0], but I

Re: Problem with custom routes

2008-01-06 Thread [EMAIL PROTECTED]
I solved my problem, it was because I have a function __construct in my app_controller, and I'm checking $this->params['language'] in the function __construct. Moved code to app_controller beforeFilter, and $this- >params['language'] is set. --~--~-~--~~~---~--~~

Re: Problem with custom routes

2008-01-05 Thread [EMAIL PROTECTED]
With cake 1.2, latest SVN Same problem with: Router::connect('/:language/:controller/:action/*', array(), array('language' => '[a-z]{2}')); $this->params['language'] is not more set in controller. On 5 jan, 19:29, "J.B." <[EMAIL PROTECTED]> wrote: > Hello! > I have a problem with a custom rout

Problem with custom routes

2008-01-05 Thread J.B.
Hello! I have a problem with a custom route and accessing the info with $this- >params... My route look like this: Router::connect('/week/:week/:year', array('controller' => 'dates', 'action' => 'week','week' => null, 'year' => null), array('year' => '([12][0-9]{3})', 'week' => '([1-9]|[1-4][0-9]|

Re: Adding new routes from a controller. (Cake 1.2)

2007-12-07 Thread Chris Hawes
ce) I get a list of plugins. I then check to see > if a config file exists for the plugin, and execute the file. > > I would also like to allow the plugin to define routes (could be > dangerous I know). > > Should I include a custom file in bootstrap.php and from there load in

Adding new routes from a controller. (Cake 1.2)

2007-12-07 Thread Chris Hawes
to allow the plugin to define routes (could be dangerous I know). Should I include a custom file in bootstrap.php and from there load in the various plugins routes? Can I use the nice File and Folder classes from a file loaded with bootstrap.php? The long and short of it is, how do I define more

Re: Routes and mod_rewrite

2007-11-13 Thread vlad
I've read all that i could find on Cake Routes, but did not help me. > Maybe someone here can, please :) > > I have to rewrite a website. I have some heavy links with a lot of > words that need to be stripped out. > e.g.: /Hotel__NAME-CITY,judetulDISTRICT.html needs to become

Routes and mod_rewrite

2007-11-13 Thread vlad
Hello to all. I've read all that i could find on Cake Routes, but did not help me. Maybe someone here can, please :) I have to rewrite a website. I have some heavy links with a lot of words that need to be stripped out. e.g.: /Hotel__NAME-CITY,judetulDISTRICT.html needs to become /Hotel-

Re: Routes issue

2007-11-02 Thread AD7six
On Nov 1, 6:43 pm, befidled <[EMAIL PROTECTED]> wrote: > I currently have a controller for Articles which accesses the articles > table in my db for all primary and secondary pages on my site. I'd > like to create a route so that when I call a page, "articles/" is not > part of the URL. For exam

Re: form creation and routes

2007-11-01 Thread [EMAIL PROTECTED]
1). There is > > much to love about this new version.. but I have been a bit thrown off > > by the way the $form->create() method generates its action url in the > > update. > > > I am becoming accustomed to the very nice way that $html->link will > > accept &#

Routes issue

2007-11-01 Thread befidled
I currently have a controller for Articles which accesses the articles table in my db for all primary and secondary pages on my site. I'd like to create a route so that when I call a page, "articles/" is not part of the URL. For example in my about section I've tried to create the route "Router::c

Re: form creation and routes

2007-10-29 Thread dardosordi
ery nice way that $html->link will > accept 'controller' and 'action' ( to create the link ) and would even > take into consideration my routes.. adjusting the url accordingly. > > Not sure if it's possible, but it would be nice if this were > achievable when creatin

form creation and routes

2007-10-28 Thread [EMAIL PROTECTED]
link will accept 'controller' and 'action' ( to create the link ) and would even take into consideration my routes.. adjusting the url accordingly. Not sure if it's possible, but it would be nice if this were achievable when creating a form as well: $form- >create( arra

Re: Using Routes with Admin Routing

2007-10-25 Thread hydra12
ere:http://groups.google.com/group/cake-php/browse_thread/thread/af135e46... > > > I should have spent more than 30 minutes looking for the answer . . . > > > On Oct 25, 9:43 am, hydra12 <[EMAIL PROTECTED]> wrote: > > > > I'm working on a new app, and I'm havi

Re: Routes & Controller Methods Question

2007-10-25 Thread Adam Royle
This might not be what you want to hear, but I did something like this: /events/view/my-event-name/ /events/tellafriend/my-event-name/ /events/video/my-event-name/my-video-name/ At least now I can keep the functionality separate as it should be, and I can change the additional arguments for each

Re: Using Routes with Admin Routing

2007-10-25 Thread hydra12
af135e46... > > I should have spent more than 30 minutes looking for the answer . . . > > On Oct 25, 9:43 am, hydra12 <[EMAIL PROTECTED]> wrote: > > > I'm working on a new app, and I'm having trouble with routes and admin > > routing. I have a route se

Re: Using Routes with Admin Routing

2007-10-25 Thread hydra12
> wrote: > I'm working on a new app, and I'm having trouble with routes and admin > routing. I have a route setup for my non-admin users: > > Router::connect('/', array('controller' => 'tips', 'action' => > 'add')); &

Using Routes with Admin Routing

2007-10-25 Thread hydra12
I'm working on a new app, and I'm having trouble with routes and admin routing. I have a route setup for my non-admin users: Router::connect('/', array('controller' => 'tips', 'action' => 'add')); This works great. When a use

Routes & Controller Methods Question

2007-10-24 Thread Flipflops
I've got a question about best practice - it is about forcing everything in a controller through a single method as a result of wanting nice urls I have a controller called Products (based on a table called products) that also uses a table called product_items (products is actually a table of pro

Re: Case Insensitive Routes

2007-09-14 Thread Troy Gilbert
> Here's the solution for anyone who stumples upon this and has the same > question: Good one-off solution... is there a way to make routing in general case-insensitive? Case-sensitive URLs just feel wrong to me (even though I know that officially, according to spec, they are case-sensitive). I'm

Re: Case Insensitive Routes

2007-09-14 Thread MattC
am, MattC <[EMAIL PROTECTED]> wrote: > Hey all, > I'm tryting to set a couple routes to static pages such as /about. So > far I have: > Router::connect('/about', array('controller' => 'pages', 'action' => > 'display', 

Re: Strange routes/Router::url() behavior

2007-09-13 Thread [EMAIL PROTECTED]
I still don't really know whether this is all by design, but in order to get PaginatorHelper working I had to add elements for 'page' and also 'step', which Paginator uses, in order for links to form correctly. Router::connectNamed(array('step', 'page')); A regex match can be added as the value

Re: Strange routes/Router::url() behavior

2007-09-11 Thread Hellbot
Hi, now you need to declare what named arguments you want in BulletinsController:beforeFilter Router::connectNamed(array('bulletin_id')); 2007/9/11, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > > Thanks, I was not aware of the new explicit nature. > > On Sep 10, 5:15 pm, biesbjerg <[EMAIL PR

Re: Routes + CAKE_ADMIN (admin routing)

2007-09-11 Thread Hellbot
http://groups.google.com/group/cake-php/browse_thread/thread/abec423ee6a9057a 2007/9/11, guigouz <[EMAIL PROTECTED]>: I'm writing a little catalog for a client, and setup Section and > Product controllers with admin routing, so /admin/sections manages > sections and /admin/products manages prod

Routes + CAKE_ADMIN (admin routing)

2007-09-10 Thread guigouz
Hello I'm writing a little catalog for a client, and setup Section and Product controllers with admin routing, so /admin/sections manages sections and /admin/products manages products I want to point /admin to /admin/sections, but I'm struggling with app/ config/routes.php. Already tried: $Route-

Re: Strange routes/Router::url() behavior

2007-09-10 Thread [EMAIL PROTECTED]
Thanks, I was not aware of the new explicit nature. On Sep 10, 5:15 pm, biesbjerg <[EMAIL PROTECTED]> wrote: > Hi, > > Correct way to implement above route would be: > > Router::connectNamed(array('community_id')); > Router::connect('/:community_id/bulletins/:action/*', > array('controller' => 'b

Re: Strange routes/Router::url() behavior

2007-09-10 Thread biesbjerg
Hi, Correct way to implement above route would be: Router::connectNamed(array('community_id')); Router::connect('/:community_id/bulletins/:action/*', array('controller' => 'bulletins'), array('community_id' => '[0-9]+')); On Sep 10, 10:40 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I h

Strange routes/Router::url() behavior

2007-09-10 Thread [EMAIL PROTECTED]
I have been working all morning on this without any luck. This is on Cake 1.2 (branch) / 5626. The only nonstandard thing I'm doing is app and webroot dirs outside the normal locations (and renamed), but that shouldn't make a difference with this. ROUTE $Route->connect('/:community_id/bulletins/

Case Insensitive Routes

2007-09-05 Thread MattC
Hey all, I'm tryting to set a couple routes to static pages such as /about. So far I have: Router::connect('/about', array('controller' => 'pages', 'action' => 'display', 'about')); This works fine for /about, but I w

Re: Quick admin routes question

2007-07-08 Thread wilson
=> true, 'controller' => > > 'photos', 'action' => 'index')); > > > 2007/7/8, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > > > I need to route '/admin' to '/admin/photos/index' in my routes table. >

Re: Quick admin routes question

2007-07-08 Thread wilson
, array(CAKE_ADMIN => true, 'controller' => > 'photos', 'action' => 'index')); > > 2007/7/8, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > > I need to route '/admin' to '/admin/photos/index' in my routes table. &

Re: Quick admin routes question

2007-07-08 Thread wilson
EMAIL PROTECTED]>: > > > I need to route '/admin' to '/admin/photos/index' in my routes table. > > Is this possible? I'm using CakePHP admin routes. > > > Router::connect('/admin', array('controller' => 'photos

Re: Quick admin routes question

2007-07-08 Thread Hellbot
Router::connect('/admin/', array(CAKE_ADMIN => true, 'controller' => 'photos', 'action' => 'index')); 2007/7/8, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > I need to route '/admin' to '/admin/photos/index' in

Quick admin routes question

2007-07-07 Thread [EMAIL PROTECTED]
Hi, I need to route '/admin' to '/admin/photos/index' in my routes table. Is this possible? I'm using CakePHP admin routes. Router::connect('/admin', array('controller' => 'photos', 'action' => 'admin_index&#x

Re: Admin Routes. Your advice?

2007-06-28 Thread [EMAIL PROTECTED]
Look at the manual (http://manual.cakephp.org/chapter/configuration) section 4. Read the first three paragraphs. Grtz Jos On Jun 27, 7:27 am, Contrid <[EMAIL PROTECTED]> wrote: > Hi there, > > I would like to get some feedback on a specific approach I'm taking. I > don't know if this is normal

Admin Routes. Your advice?

2007-06-26 Thread Contrid
Hi there, I would like to get some feedback on a specific approach I'm taking. I don't know if this is normal and if it's good (CakePHP) coding practice, since this is my first CakePHP application. I have added a route in my "/app/config/routes.php" document. It looks like this : $Route -> conn

Re: Routes and Paginator

2007-06-01 Thread byBartus
ikel/page:4" manually, but the > paginator (which uses htmlhelper->link() which itself uses > Route::url()) generates "/Artikel/" for every page url, completely > omitting the page part. i dont have any clue, what the proper route > could be, but what im trying to a

Routes and Paginator

2007-05-31 Thread BenjaminB
) which itself uses Route::url()) generates "/Artikel/" for every page url, completely omitting the page part. i dont have any clue, what the proper route could be, but what im trying to achieve is like this: /Artikel/ -> /articles/index /Artikel/Seite:8 -> /articles/index/page:8

Re: Paginator and custom routes problem (latest 1.2 alpha)

2007-05-31 Thread BenjaminB
same here, nothing helped so far On May 31, 1:09 am, Mirko <[EMAIL PROTECTED]> wrote: > I have exactly the same problem. > All I get is a link with nothing but controller name in it: > > Greets, Mirko --~--~-~--~~~---~--~~ You received this message because you a

Re: Paginator and custom routes problem (latest 1.2 alpha)

2007-05-30 Thread Mirko
I have exactly the same problem. All I get is a link with nothing but controller name in it: Greets, Mirko --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cak

Re: Customizing routes

2007-05-12 Thread Aaron Shafovaloff
2. On May 9, 2:11 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On 5/9/07, Aaron Shafovaloff <[EMAIL PROTECTED]> wrote: > > > > > I'd like to have my controllers function normally at /controller/ > > action, but I'd also like users to be able to acc

Re: Customizing routes

2007-05-09 Thread Chris Hartjes
od > suggestions on where to look on how to customize the routes this way? Does nobody read the manual any more? http://manual.cakephp.org/chapter/configuration Go down to section 3 and that should point you in the right direction. -- Chris Hartjes My motto for 2007: "Just bui

<    1   2   3   4   5   6   >