Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
New web router
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Stefan Neculai  
View profile  
 More options Jun 17 2012, 7:52 pm
From: Stefan Neculai <stefan.necu...@gmail.com>
Date: Mon, 18 Jun 2012 02:52:10 +0300
Local: Sun, Jun 17 2012 7:52 pm
Subject: New web router

Hi,

As a part of my GSoC project, I am working with the new router. I have used
the following map and I was wondering if there is an easier way to do it
(without changing the current parseRoute method
from JApplicationWebRouterBase). I am asking this because I will need such
mappings for all type of contents used in the API.

$this->router->addMap('/content', 'content');       match all the content
with the content controller
$this->router->addMap('/content/*', 'content');     match a specific
content with the content controller

--
Thanks,
Stefan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sam Moffatt  
View profile  
 More options Jun 18 2012, 11:38 pm
From: Sam Moffatt <pasa...@gmail.com>
Date: Mon, 18 Jun 2012 20:38:58 -0700
Local: Mon, Jun 18 2012 11:38 pm
Subject: Re: [jplatform] New web router
You might get more help if you provide more details about what you're
doing, what you're trying to solve, why in detail this is a problem
and some background on the project. I certainly have no idea what
you're after, why you think changing parseRoute would provide a
solution or what you mean by "easier way to do it".

Cheers,

Sam Moffatt
http://pasamio.id.au

On Sun, Jun 17, 2012 at 4:52 PM, Stefan Neculai


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stefan Neculai  
View profile  
 More options Jun 19 2012, 3:07 am
From: Stefan Neculai <stefan.necu...@gmail.com>
Date: Tue, 19 Jun 2012 10:07:58 +0300
Local: Tues, Jun 19 2012 3:07 am
Subject: Re: [jplatform] New web router

Hi,

I need to add more rules like the following ones:
$this->router->addMap('/content', 'content');
$this->router->addMap('/content/:content_id', 'content');
$this->router->addMap('/applications', 'applications');
$this->router->addMap('/applications/:application_id', 'applications');
$this->router->addMap('/categories', 'categories');
$this->router->addMap('/categories/:categories_id', 'categories');

I was wondering if there is any way to summarize somehow all these rules in
a single one.

--
Thanks,
Stefan Neculai

Sent from my iPhone

On Jun 19, 2012, at 6:39 AM, Sam Moffatt <pasa...@gmail.com> wrote:

$this->router->addMap('/content', 'content');


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sam Moffatt  
View profile  
 More options Jun 19 2012, 3:22 am
From: Sam Moffatt <pasa...@gmail.com>
Date: Tue, 19 Jun 2012 00:22:41 -0700
Local: Tues, Jun 19 2012 3:22 am
Subject: Re: [jplatform] New web router
You could create a route file and have parsed to add items or
introspect it from the database to do it that way. Perhaps I'm missing
something here. It's six routes with distinct looking parameters,
seems reasonable enough to have six different mappings.

Cheers,

Sam Moffatt
http://pasamio.id.au

On Tue, Jun 19, 2012 at 12:07 AM, Stefan Neculai


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stefan Neculai  
View profile  
 More options Jun 19 2012, 3:25 am
From: Stefan Neculai <stefan.necu...@gmail.com>
Date: Tue, 19 Jun 2012 10:25:24 +0300
Local: Tues, Jun 19 2012 3:25 am
Subject: Re: [jplatform] New web router
There are more routes, not only 6 but all are the same. I asked about
sumarizing them because they are very simillar.

--
Stefan

Sent from my iPhone

On Jun 19, 2012, at 10:23 AM, Sam Moffatt <pasa...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sam Moffatt  
View profile  
 More options Jun 19 2012, 3:46 am
From: Sam Moffatt <pasa...@gmail.com>
Date: Tue, 19 Jun 2012 00:46:05 -0700
Local: Tues, Jun 19 2012 3:46 am
Subject: Re: [jplatform] New web router
They are similar but that doesn't mean they are the same. The new
router aims to solve one of the problems that has consistently dogged
us with the old router which is detangling that which is similar that
appears to be the same but isn't necessarily so. In this paradigm it
is very clear what goes where. This may not necessarily be suitable
for you so you might choose to build your own router that handles
requests in a way that makes more sense for your application.

Cheers,

Sam Moffatt
http://pasamio.id.au

On Tue, Jun 19, 2012 at 12:25 AM, Stefan Neculai


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stefan Neculai  
View profile  
 More options Jun 19 2012, 3:47 am
From: Stefan Neculai <stefan.necu...@gmail.com>
Date: Tue, 19 Jun 2012 10:47:45 +0300
Local: Tues, Jun 19 2012 3:47 am
Subject: Re: [jplatform] New web router
I see.. Many thanks for your help!

--
Stefan

Sent from my iPhone

On Jun 19, 2012, at 10:46 AM, Sam Moffatt <pasa...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Elin Waring  
View profile  
 More options Jun 19 2012, 7:55 am
From: Elin Waring <elin.war...@gmail.com>
Date: Tue, 19 Jun 2012 07:55:16 -0400
Local: Tues, Jun 19 2012 7:55 am
Subject: Re: [jplatform] New web router

Stefan,

Does that mean you are treating categories as something other than content
inside a  unified content model? Is that something specific to your
application's structure?

Elin


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stefan Neculai  
View profile  
 More options Jun 19 2012, 12:32 pm
From: Stefan Neculai <stefan.necu...@gmail.com>
Date: Tue, 19 Jun 2012 19:32:02 +0300
Local: Tues, Jun 19 2012 12:32 pm
Subject: Re: [jplatform] New web router

Hey,

No, I treat them as a content, but I have a specific controller that
extends a basic general content controller. It is needed because of some
API's design constraints.

--
Stefan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »