[symfony-users] Re: Breadcrumb best practice

2008-05-19 Thread Balaji Srinivasan

Usually breadcrumbs refer to the full path and NOT the recent history
Balaji

On May 19, 2008, at 10:31 AM, [EMAIL PROTECTED] wrote:

>
> I may be wrong, but what I call "breadcrumb" is a list of the recently
> visited page by the visitor (like in wikis, or in sugarCRM).
> And what you call "breadcrumb" seems to be the full path where the
> user is currently in, what I call "rootline".
>
> What are the "official" terms ?
>
>
> On 19 mai, 14:30, markchicobaby <[EMAIL PROTECTED]> wrote:
>> Ah, I got it.  The Motile breadcrumb is implemented via a helper in
>> sfSimpleForumHelper.php
>>
>> M
>>
>> On May 19, 10:23 pm, markchicobaby <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>>> How about Motilee, it also uses bread crumbs, via a slot.
>>
>>> I can't seem to find any files in the Motilee download resembling  
>>> the
>>> above, I was wondering if anyone knows off the top of their head how
>>> Motile implements their breadcrumbs? (Before I dig too much
>>> further...)
>>
>>> Thank you
> >


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Turning off session auto_start causes flash to not work

2008-05-06 Thread Balaji Srinivasan

Thanks for your reply Eno.

I check if the session exists (ie I create a new session only if  
session_id() returns an empty string).
I didnt know that getAttribute and setAttribute will not work if i  
turn off session auto_start. What should I do to have it persist the  
complete session information?

(I didnt know turning off auto_start also turned off saving session  
data at the end of the request. This might be the explanation why  
flash doesnt work since it also uses the setAttribute, getAttribute  
calls)

Any Symfony developers here that can answer this question?
Thanks
Balaji

On May 6, 2008, at 9:50 PM, Eno wrote:

>
> On Mon, 5 May 2008, Balaji Srinivasan wrote:
>
>> So I turned off session. auto_start in factories.yml.
>> In my preExecute method, I set up a session using session_id() call.
>>
>> Now it looks like the flash parameters are no longer being carried
>> from one call to the next. Also somehow the session itself doesnt get
>> restored on the next call (ie. If I add an attribute to the session
>> using $this->getUser()->setAttribute(), I cannot retrieve it in the
>> next call).
>
> preExecute() gets called for every action, so do you check for an  
> existing
> session to use and use it or create a new one each time?
>
> Im also guessing switching off symfony's session handling means you  
> dont
> get to use methods like getAttribute() and setAttribute(). Probably  
> you'll
> need to write your own methods to handle storing and retrieving  
> session
> data instead of using Symfony's.
>
>
> -- 
>
>
>
> >


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Turning off session auto_start causes flash to not work

2008-05-05 Thread Balaji Srinivasan

Hi There
In my particular app, I need to use a request parameter as a session  
ID. I have to use an existing URL parameter (this is a Facebook App so  
I cannot rewrite URLs etc. I would like to use the user_id that they  
specify as the session ID).

So I turned off session. auto_start in factories.yml.
In my preExecute method, I set up a session using session_id() call.

Now it looks like the flash parameters are no longer being carried  
from one call to the next. Also somehow the session itself doesnt get  
restored on the next call (ie. If I add an attribute to the session  
using $this->getUser()->setAttribute(), I cannot retrieve it in the  
next call).

Can any one help me and point out what I am doing wrong here?
Thanks
Balaji


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Module specific scripts and css files

2008-04-12 Thread Balaji Srinivasan

Thanks. It still pollutes the js, css directories but atleast its just  
one directory under that location. I guess thats the best way to do  
it...
Thanks
Balaji
PS: I dont require the web server to serve those files directly. I was  
just wondering if there was an inbuilt symfony mechanism to publish  
static files.
On Apr 12, 2008, at 11:48 AM, naholyr wrote:

>
> only "web" folder is allowed to be published by your HTTP server.
> so anything in "apps" folder will NEVER get available for the
> browsers, unless you create a dedicated bootstrap.
>
> The easiest way is the plugins' one :
> - create folder "web/myModule" in which you put your "css", "images",
> and "js" folders
> - use absolute paths : instead of "myJS" (which leads to web/js/
> myJS.js") you write "/myModule/js/myJS" (which will lead to "web/
> myModule/js/myJS.js").
>
> On 12 avr, 19:48, Balaji Srinivasan <[EMAIL PROTECTED]> wrote:
>> Hi Everyone
>> Is there a way to have a module specific js and css files? I dont  
>> want
>> to pollute the web/js and web/css directories with all my module
>> specific files. Is there a way to have some js and css files reside  
>> in
>> apps/app/modules/foo/js and apps/app/modules/foo/css?
>> I know i can encode an action that handles the URL
>> foo/getjs/x and returns apps/app/modules/foo/js/x.js
>> But i was wondering if there was a simpler way to do this
>> Thanks
>> Balaji
> >


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Module specific scripts and css files

2008-04-12 Thread Balaji Srinivasan

Hi Everyone
Is there a way to have a module specific js and css files? I dont want  
to pollute the web/js and web/css directories with all my module  
specific files. Is there a way to have some js and css files reside in  
apps/app/modules/foo/js and apps/app/modules/foo/css?
I know i can encode an action that handles the URL
foo/getjs/x and returns apps/app/modules/foo/js/x.js
But i was wondering if there was a simpler way to do this
Thanks
Balaji


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Embedding symfony components in non-symfony web pages

2008-02-17 Thread Balaji Srinivasan

Hi Tom
That works if the full page was served by symfony. We already use  
that. But now we have come to the point where portions of the page  
could be migrated to Symfony. In that case the full page will be  
served by the PHP code but we want portions of it to be rendered by  
Symfony.
Balaji

On Feb 17, 2008, at 1:43 PM, Tom Haskins-Vaughan wrote:

>
> Hi Balaji,
>
> I've thought about this for an app I wrote in PHP that's in use at the
> moment. I was thinking of putting symfony in a sub directory of the  
> web
> root: www.domain.com/symfony/
>
> There were going to be session issues, that I think someone on the  
> list
> suggested possible solutions for, but that I never explored in depth.
>
> The two apps could use the same database.
>
> I know this isn't a comprehensive answer but hope it helps  
> nonetheless.
>
> Tom
>
> Balaji Srinivasan wrote:
>> Hi There
>> I have a current application that was developed in plain PHP. I want
>> to migrate it over to Symfony. Instead of rewriting everything at one
>> shot, I was wondering if there was a way where I could migrate
>> portions of the web page (akin to component-slots) over to symfony  
>> and
>> have it embedded in the legacy webpage.
>> Is there a way to achieve this? This would help in the migration (and
>> I suspect it will also encourage more people to migrate to Symfony).
>>
>> Thanks
>> Balaji
>>
>>
>>>
>>
>
> >


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Embedding symfony components in non-symfony web pages

2008-02-17 Thread Balaji Srinivasan

Hi There
I have a current application that was developed in plain PHP. I want  
to migrate it over to Symfony. Instead of rewriting everything at one  
shot, I was wondering if there was a way where I could migrate  
portions of the web page (akin to component-slots) over to symfony and  
have it embedded in the legacy webpage.
Is there a way to achieve this? This would help in the migration (and  
I suspect it will also encourage more people to migrate to Symfony).

Thanks
Balaji


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: DB connections without Debug toolbar

2008-02-08 Thread Balaji Srinivasan

Sure. I havent worked with symfony plugins before so it might take me  
a bit of time for it.
Let me play with the plugin over the weekend and Ill let you know how  
soon I can get it in.
Thanks
Balaji

On Feb 8, 2008, at 10:48 PM, Kiril Angov wrote:

>
> If you have done so, can you contribute it to  
> sfFacebookPlatformPlugin?
>
> Kiril
>
> Balaji Srinivasan wrote:
>> Hi Mat
>> I have modified the SF Web Toolbar so that it works with Facebook.
>> Get in touch with me if you want a copy of it.
>> Balaji
>>
>> On Feb 8, 2008, at 4:50 AM, Mat wrote:
>>
>>
>>> Hey all,
>>>
>>> I'd quite like to increase the speed of my website (facebook app),
>>> as we are
>>> experiencing what I class as high loads (18k hits/hour), and the
>>> strain on
>>> load times is starting to tell, and its only getting worse (10-20%
>>> growth
>>> daily).
>>>
>>> I've got a quick question, I would typically use the debug toolbar
>>> to work
>>> out the number of database queries per page, however as this is
>>> javascript
>>> based it isn't available to me...(due to facebook format). Is there
>>> any
>>> other quick and easy way to tell the number of db queries per page
>>> so I can
>>> optimise these. My instinct was to look through the logs however I
>>> thought I
>>> would ask here first if there was an easier solution to getting at
>>> the debug
>>> toolbar information without needing javascript. I'd also quite like
>>> to look
>>> at the profiler information as well, however I suspect this isn't
>>> the issue
>>> and my lack of join's in propel statements is.
>>>
>>> Also any other tips for easy optimisations? The plan was to install
>>> a php
>>> optimiser as well, and also to try and disable some of the symfony
>>> code
>>> which isn't needed, (like the helpers we don't use).
>>>
>>> Thanks in Advance.
>>> Mat
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>>>
>>
>>
>
>
> >


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: DB connections without Debug toolbar

2008-02-08 Thread Balaji Srinivasan

Hi Mat
I have modified the SF Web Toolbar so that it works with Facebook.
Get in touch with me if you want a copy of it.
Balaji

On Feb 8, 2008, at 4:50 AM, Mat wrote:

>
> Hey all,
>
> I'd quite like to increase the speed of my website (facebook app),  
> as we are
> experiencing what I class as high loads (18k hits/hour), and the  
> strain on
> load times is starting to tell, and its only getting worse (10-20%  
> growth
> daily).
>
> I've got a quick question, I would typically use the debug toolbar  
> to work
> out the number of database queries per page, however as this is  
> javascript
> based it isn't available to me...(due to facebook format). Is there  
> any
> other quick and easy way to tell the number of db queries per page  
> so I can
> optimise these. My instinct was to look through the logs however I  
> thought I
> would ask here first if there was an easier solution to getting at  
> the debug
> toolbar information without needing javascript. I'd also quite like  
> to look
> at the profiler information as well, however I suspect this isn't  
> the issue
> and my lack of join's in propel statements is.
>
> Also any other tips for easy optimisations? The plan was to install  
> a php
> optimiser as well, and also to try and disable some of the symfony  
> code
> which isn't needed, (like the helpers we don't use).
>
> Thanks in Advance.
> Mat
>
>
>
>
>
> >


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Sharing data between actions and components

2008-01-21 Thread Balaji Srinivasan

I have used a component slot myself. My main layout (which is outside  
of any modules) has a main area and a sidebar area. The sidebar  
content needs to be included potentially from different modules. Thats  
why I wanted to share some data between the main area of the layout  
and the component
Balaji

On Jan 21, 2008, at 7:49 AM, Kiril Angov wrote:

>
> Have you looked into component slots?
>
> http://www.symfony-project.org/book/1_0/07-Inside-the-View-Layer
>
> and search for slots.
>
> Yuretsz wrote:
>> I wrote simple banner system for the site. They inclusion located in
>> global layout. I made all logic in the partial but that doesn't fit  
>> in
>> MVC. And that's haunting me :(
>>
>> On Jan 21, 2008 5:37 PM, Kiril Angov < [EMAIL PROTECTED]
>> > wrote:
>>
>>
>>I think you can only include partials from the global templates/
>>folder
>>(because they are simple include_once() statements). Components  
>> are
>>morel like actions and they need to belong to a module. So I  
>> guess you
>>have to use a partial.
>>
>>Kupo
>>
>>Yuretsz wrote:
>>> I'm just wondering how to include component from the global
>>> application layout?
>>>
>>> On Jan 20, 2008 5:10 AM, Ant Cunningham
>><[EMAIL PROTECTED] > d.com>
>>> >>> wrote:
>>>
>>>
>>>On Saturday 19 January 2008 5:35:33 pm Kiril Angov wrote:
 - >>$data)) ?>
 + >array('data' =>
>>>$data)) ?>
>>>
>>>Thanks for that catch :-)
>>>
>>>

>>
>>
>>
>>>
>
>
> >


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Sharing data between actions and components

2008-01-21 Thread Balaji Srinivasan

I have used a component slot myself. My main layout (which is outside  
of any modules) has a main area and a sidebar area. The sidebar  
content needs to be included potentially from different modules. Thats  
why I wanted to share some data between the main area of the layout  
and the component
Balaji

On Jan 21, 2008, at 7:49 AM, Kiril Angov wrote:

>
> Have you looked into component slots?
>
> http://www.symfony-project.org/book/1_0/07-Inside-the-View-Layer
>
> and search for slots.
>
> Yuretsz wrote:
>> I wrote simple banner system for the site. They inclusion located in
>> global layout. I made all logic in the partial but that doesn't fit  
>> in
>> MVC. And that's haunting me :(
>>
>> On Jan 21, 2008 5:37 PM, Kiril Angov < [EMAIL PROTECTED]
>> > wrote:
>>
>>
>>I think you can only include partials from the global templates/
>>folder
>>(because they are simple include_once() statements). Components  
>> are
>>morel like actions and they need to belong to a module. So I  
>> guess you
>>have to use a partial.
>>
>>Kupo
>>
>>Yuretsz wrote:
>>> I'm just wondering how to include component from the global
>>> application layout?
>>>
>>> On Jan 20, 2008 5:10 AM, Ant Cunningham
>><[EMAIL PROTECTED] > d.com>
>>> >>> wrote:
>>>
>>>
>>>On Saturday 19 January 2008 5:35:33 pm Kiril Angov wrote:
 - >>$data)) ?>
 + >array('data' =>
>>>$data)) ?>
>>>
>>>Thanks for that catch :-)
>>>
>>>

>>
>>
>>
>>>
>
>
> >


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Sharing data between actions and components

2008-01-19 Thread Balaji Srinivasan

I find it perverse that we need to modify the request to hold data for  
within the request.
It would be great if the lifecycle of the $this->setVar() was the  
request and was shared between all the components, actions and  
templates.

Putting it in flash also seems workable but then it pollutes the next  
request.
Balaji

On Jan 19, 2008, at 10:02 AM, Fabian Lange wrote:

>
> Use Request or Flash Parameter Holder for that
> .: Fabian
>
> -Original Message-
> From:
> [EMAIL PROTECTED]
> om
> [mailto:[EMAIL PROTECTED]
> groups.com] On Behalf Of Balaji Srinivasan
> Sent: Samstag, 19. Januar 2008 18:47
> To: symfony-users@googlegroups.com
> Subject: [symfony-users] Re: Sharing data between actions and  
> components
>
>
> Thanks Lee.
> This is what I mean.
>
> I have a page with a main part and a side bar.
> When the action method is called (say its executeDoStuff() I do the
> following:
>
> public function executeDoStuff() {
>   $id = $this->getRequestParameter('id');
>   $data = DataPeer::retrieveByPK($id);
>   $this->setVar('data', $data);
>   return sfView::SUCCESS;
> }
>
> Now the template doStuff.php can use the data. Later when the sidebar
> component gets called I need to be able to access the retrieved data
> above.
>
> public function executeSidebar() {
>   $data = $this->getVar('data');
>   // do stuff
>   return sfView::SUCCESS;
> }
>
> The reason the two things are split as components (instead of just
> partials) is that I need to do some processing on the data before
> rendering the sidebar.
> Any suggestions?
> Thanks
> Balaji
>
>
> >


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Sharing data between actions and components

2008-01-19 Thread Balaji Srinivasan

Thanks Lee.
This is what I mean.

I have a page with a main part and a side bar.
When the action method is called (say its executeDoStuff() I do the  
following:

public function executeDoStuff() {
$id = $this->getRequestParameter('id');
$data = DataPeer::retrieveByPK($id);
$this->setVar('data', $data);
return sfView::SUCCESS;
}

Now the template doStuff.php can use the data. Later when the sidebar  
component gets called I need to be able to access the retrieved data  
above.

public function executeSidebar() {
$data = $this->getVar('data');
// do stuff
return sfView::SUCCESS;
}

The reason the two things are split as components (instead of just  
partials) is that I need to do some processing on the data before  
rendering the sidebar.
Any suggestions?
Thanks
Balaji

On Jan 19, 2008, at 5:15 AM, Lee Bolding wrote:

>
> Not sure exactly what you mean, but look in the documentation  
> regarding
> partials - it sounds like this will solve your problem :)
>
> Lee Bolding
>
> w: http://www.leesbian.net
>
> -Original Message-
> From: symfony-users@googlegroups.com [mailto:symfony-users@googlegroups.com 
> ]
> On Behalf Of Balaji Srinivasan
> Sent: 19 January 2008 03:38
> To: symfony-users@googlegroups.com
> Subject: [symfony-users] Sharing data between actions and components
>
>
> Hi Everyone
> I am relatively new to symfony and am trying to figure out how to
> navigate around components and actions etc.
>
> I have a layout that has a main area where the content is and a
> sidebar where some related information needs to be displayed. I need
> to be able to share some data between the action and the component. Is
> there a standard way to do that?
>
> Any help would be appreciated
> Thanks
> Balaji
>
>
>
>
> --~--~-~--~~~---~--~~
> You received this message because you are subscribed to the Google  
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to [EMAIL PROTECTED]
> For more options, visit this group at http:/


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Sharing data between actions and components

2008-01-18 Thread Balaji Srinivasan

Hi Everyone
I am relatively new to symfony and am trying to figure out how to  
navigate around components and actions etc.

I have a layout that has a main area where the content is and a  
sidebar where some related information needs to be displayed. I need  
to be able to share some data between the action and the component. Is  
there a standard way to do that?

Any help would be appreciated
Thanks
Balaji

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Is there any way to terminate an action in preExecute?

2008-01-18 Thread Balaji Srinivasan

Thanks Zoltan. That worked
Balaji

On Jan 7, 2008, at 2:43 AM, Zoltán Németh wrote:

>
> 2008. 01. 4, p�ntek keltez�ssel 12.15-kor Balaji Srinivasan ezt  
> �rta:
>> Hi there
>> I am trying to terminate an action in preExecute. I tried returning
>> sfView::NONE from it but it didnt work.
>> Basically I want to check a condition. If that condition is not  
>> met, I
>> want to render a text block into the response and then terminate the
>> action. But right now even after returning sfView::NONE it still goes
>> to execute the action.
>>
>> Is there any way of terminating the action without having to throw an
>> exception or redirecting/forwarding to another URL?
>
> you have to throw sfStopException.
> if you also want to send response before, you have to do that  
> manually.
> like
> $this->getResponse()->setContent($content);
> $this->getResponse()->setStatusCode(200);
> $this->getResponse()->sendHttpHeaders();
> $this->getResponse()->sendContent();
> throw new sfStopException();
>
> greets
> Zolt�n N�meth
>
>> Thanks
>> Balaji
>>
>>>
>
>
> >


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Is there any way to terminate an action in preExecute?

2008-01-04 Thread Balaji Srinivasan

That is possible. But I would have to do this check in all the  
actions, which defeats the purpose of having a preExecute
Balaji

On Jan 4, 2008, at 12:56 PM, Haris Zukanovic' wrote:

>
> Can you  set a flag in form of a member var and then exit the action  
> in
> it's executeAction()
>
> Balaji Srinivasan wrote:
>> Hi there
>> I am trying to terminate an action in preExecute. I tried returning
>> sfView::NONE from it but it didnt work.
>> Basically I want to check a condition. If that condition is not  
>> met, I
>> want to render a text block into the response and then terminate the
>> action. But right now even after returning sfView::NONE it still goes
>> to execute the action.
>>
>> Is there any way of terminating the action without having to throw an
>> exception or redirecting/forwarding to another URL?
>> Thanks
>> Balaji
>>
>>>
>>
>
>
> >


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Is there any way to terminate an action in preExecute?

2008-01-04 Thread Balaji Srinivasan

Hi there
I am trying to terminate an action in preExecute. I tried returning  
sfView::NONE from it but it didnt work.
Basically I want to check a condition. If that condition is not met, I  
want to render a text block into the response and then terminate the  
action. But right now even after returning sfView::NONE it still goes  
to execute the action.

Is there any way of terminating the action without having to throw an  
exception or redirecting/forwarding to another URL?
Thanks
Balaji

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Approaches to handling SSL?

2007-12-31 Thread Balaji Srinivasan

There is a section on security in TheBook
http://www.symfony-project.org/book/1_0/06-Inside-the-Controller-Layer#Action%20Security
Check out:  Listing 6-37 - Secure Communication Filter

Wouldnt this work for you?
Balaji

On Dec 31, 2007, at 9:00 AM, Charley Tiggs wrote:

>
> Fixing the bugs in sfSSLRequirementPlugin requires that I a)  
> understand
> how plugins work in general b) understand how filters work and c)
> understand how the plugin was intended to work in terms of broader use
> to actually go in and create the patch/fix.
>
> The above three assume that I have the time to develop the necessary
> knowledge to get in and fix it.  I don't.  So, I'm seeking a quick,
> interim fix until I have the time.
>
> Charley (who is still on the learning curve for symfony)
>
> [EMAIL PROTECTED] said on Monday, December 31, 2007:
>
>
>>
>> Why not use sfSSLRequirementPlugin, and if the bugs really are a
>> concern, fix them and contribute the fixes? ;)
>>
>> Why reinvent the wheel? (or invent your own 'standard' that will be
>> deprecated very shortly?).
>>
>> As always - be pragmatic :)
>>
>> On 31 Dec 2007, at 15:46, Charley Tiggs wrote:
>>
>>>
>>> Hello folks!
>>>
>>> I'm in the position of having to use SSL on some parts of my
>>> website but
>>> not others.  I'm wondering if folks have a means of ensuring SSL is
>>> present when it needs to be and not present when it's not required?
>>>
>>> I found the sfSslRequirementPlugin but it has some open bugs that
> make
>>> me hesitant to use it.
>>>
>>> My current plan is to use the preExecute() method of each module and
>>> make sure SSL is on/off as needed.  But I'm hoping there's a more
>>> elegant solution than that.
>>>
>>> Thanks in advance for any input,
>>>
>>> Charley
>>>

>>
>>
>>>
>
> >


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---