[symfony-users] Re: always keep a variable in URLs

2008-07-13 Thread Mohammad Ali Safari
OK I almost figured it out. There is a config variable sf_relative_url_root that is used when the app is located in somewhere other than the root folder. For my case I need to change sf_relative_url based on the weblog_name. I did this by creating a filter and changing the value there. Notice that

[symfony-users] Re: always keep a variable in URLs

2008-07-13 Thread James
just put them in your routing file as well, they will take precidence. James On Jul 14, 2008, at 12:21 AM, Mohammad Ali Safari wrote: > I still have one big problem. > None of the URLs created by propel admin generator have the > weblog_name. > > Should I work on my .htaccess file? > > --Moh

[symfony-users] Re: always keep a variable in URLs

2008-07-13 Thread Mohammad Ali Safari
I still have one big problem. None of the URLs created by propel admin generator have the weblog_name. Should I work on my .htaccess file? --Mohammad On Sun, Jul 13, 2008 at 3:17 PM, Mohammad Ali Safari < [EMAIL PROTECTED]> wrote: > Oh Ok. This is perhaps the best thing to do. many thanks. > >

[symfony-users] Re: always keep a variable in URLs

2008-07-13 Thread Mohammad Ali Safari
Oh Ok. This is perhaps the best thing to do. many thanks. Tom: That's not possible with my current host provider. cheers, -Mohammad On Sun, Jul 13, 2008 at 3:12 PM, Cece <[EMAIL PROTECTED]> wrote: > > > Routing configuration is for understanding and parsing a given URL. > > My problem is when g

[symfony-users] Re: always keep a variable in URLs

2008-07-13 Thread Cece
> Routing configuration is for understanding and parsing a given URL. > My problem is when generating all these URLs in my links/forms/etc. how can > I make sure the /weblog-name is appeared at the beginning of every URL? Add routing rules like these show_post: url: /:blogname/post/show para

[symfony-users] Re: always keep a variable in URLs

2008-07-13 Thread Tom Haskins-Vaughan
Would it be feasible to create a subdomain for each blog? Mohammad Ali Safari wrote: > Hi > Routing configuration is for understanding and parsing a given URL. > My problem is when generating all these URLs in my links/forms/etc. how > can I make sure the /weblog-name is appeared at the beginnin

[symfony-users] Re: always keep a variable in URLs

2008-07-13 Thread Mohammad Ali Safari
Hi Routing configuration is for understanding and parsing a given URL. My problem is when generating all these URLs in my links/forms/etc. how can I make sure the /weblog-name is appeared at the beginning of every URL? cheers --Mohammad On Sun, Jul 13, 2008 at 2:53 PM, Cece <[EMAIL PROTECTED]> w

[symfony-users] Re: always keep a variable in URLs

2008-07-13 Thread Cece
> I have a weblog system in which the weblog name needs to be kept in every > single URL all around the application. > Ideally, I would like very URL look like http://server/weblogname/... > Is there an easy way to do this? > > For example, should I rewrite link_to and similar functions? You shou