[symfony-users] RE: Complex criteria creation - hotel room bookings problem

2008-06-13 Thread Gould, Adrian
checkDate BETWEEN start_date AND end_date ) ORDER BY room_id The eventual purpose is to display a table in the view with rooms and dates booked: Room Date 101 102 103 201 202 203 20080612YNYNYN 20080613YNNNYY 20080614NY

[symfony-users] RE: Complex criteria creation - hotel room bookings problem

2008-06-13 Thread Gould, Adrian
...'); ?/p - the rest of the form / results display is not shown - Still will want to take this a step further and show rooms and dates booked in a grid or matrix as shown below: Room Date 101 102 103 201 202 203 20080612YNYNYN 20080613YNN

[symfony-users] [1.1] Customize asset directories

2008-06-13 Thread Pierre
Hi, I read the cookbook article about how to customize the projects / applications directory structure. But there's one little tiny thing I'm missing: how to customize the web's css js asset directories. We use 'styles' and 'scripts' for those directories, and don't want to break this standard.

[symfony-users] Re: Conception problem... Module / Application

2008-06-13 Thread obalais
Hi, I finally chose Richtermeister's solution. I will apply different layout, template and products list according to a :boutique parameter passed in the url, just before the module/action route.. Thank you all Olivier On 12 juin, 19:02, Richtermeister [EMAIL PROTECTED] wrote: Hey Olivier,

[symfony-users] sfPageFlowPlugin?

2008-06-13 Thread Lee Bolding
Did anybody manage to get the demo working for this? It's still got me stumped :-/ --~--~-~--~~~---~--~~ 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] sfWidgetFormSelect (selected value)

2008-06-13 Thread Dmitry Nesteruk
How can I set selected value for sfWidgetFormSelect? --~--~-~--~~~---~--~~ 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

[symfony-users] template using variables defined in the action class

2008-06-13 Thread Mohammad Ali Safari
Hi I am defining a variable in my action class like this: class myActions extends sfActions { public $var ... I assume that I have access to variable $var in any of my templates, but it is not the case. The only thing I could do is to have $this-foo = $this-var in my corresponding action

[symfony-users] Re: Customize asset directories

2008-06-13 Thread Eno
On Jun 13, 4:05 am, Pierre [EMAIL PROTECTED] wrote: I read the cookbook article about how to customize the projects / applications directory structure. But there's one little tiny thing I'm missing: how to customize the web's css js asset directories. We use 'styles' and 'scripts' for those

[symfony-users] Re: template using variables defined in the action class

2008-06-13 Thread Eno
On Jun 13, 11:13 am, Mohammad Ali Safari [EMAIL PROTECTED] wrote: I am defining a variable in my action class like this: class myActions extends sfActions { public  $var ... I assume that I have access to variable $var in any of my templates, but it is not the case. The only thing I

[symfony-users] Re: Slightly offtopic - CC encryption / decryption

2008-06-13 Thread Richtermeister
Hi all, your points are well taken, and I'm not trying to put the cc numbers into a database for the very same reason.. I do, however, have to put it into the session as part of the checkout process, before I even get to use a payment gateway (after that it'll get obfuscated right away, and I

[symfony-users] Re: template using variables defined in the action class

2008-06-13 Thread Mohammad Ali Safari
Thanks Eno. My exact question is can I define a variable in my action class OUT OF my action FUNCTION and still access it in my template? cheers, --mohammad On Fri, Jun 13, 2008 at 10:57 AM, Eno [EMAIL PROTECTED] wrote: On Jun 13, 11:13 am, Mohammad Ali Safari [EMAIL PROTECTED] wrote: I

[symfony-users] Re: How do I access a validate .yml setting in my template?

2008-06-13 Thread Richtermeister
Hi Daevid, other than parsing the file into an array via the Yaml class I don't think you can get to it. Out of interest, what are you trying to do? Daniel On Jun 12, 2:40 pm, Daevid Vincent [EMAIL PROTECTED] wrote: I asked this before and got no real answer. Is this not possible? Can I not

[symfony-users] Re: Slightly offtopic - CC encryption / decryption

2008-06-13 Thread Nathanael D. Noblet
Richtermeister wrote: Hi all, your points are well taken, and I'm not trying to put the cc numbers into a database for the very same reason.. I do, however, have to put it into the session as part of the checkout process, before I even get to use a payment gateway (after that it'll get

[symfony-users] Re: Slightly offtopic - CC encryption / decryption

2008-06-13 Thread Mohammad Ali Safari
I assume you use the secure protocol (HTTPS) to do all these and store credit card info on server side. What's the problem then in regard to security? --Mohammad On Fri, Jun 13, 2008 at 12:58 PM, Nathanael D. Noblet [EMAIL PROTECTED] wrote: Richtermeister wrote: Hi all, your points are

[symfony-users] Re: Slightly offtopic - CC encryption / decryption

2008-06-13 Thread John L. Singleton
Just a thought, but I'd strongly advise you against storing this kind of information unless you/your company has the kind of legal backing and security infrastructure to support protecting such critical information. I know this doesn't answer your question, but the reality is there the is

[symfony-users] Re: Slightly offtopic - CC encryption / decryption

2008-06-13 Thread James
Why do you assume the key is in the session? If I were going to encrypt something and put it in the session, the key sure would not be along with it, I would use data specific to the user (each user has their own key). based on things like username/zipcode/ipaddress probably a mashup

[symfony-users] Re: How do I access a validate .yml setting in my template?

2008-06-13 Thread Daevid Vincent
*sigh* Thanks for the reply Richtermeister. I thought I was pretty clear in my email below, but just to re-iterate. I'm trying to prevent the redundancy of having to type a string of error message in the Javascript AND in the .yml file. It seems utterly stupid to me that Symfony has all this

[symfony-users] Re: How do I access a validate .yml setting in my template?

2008-06-13 Thread Kris Wallsmith
Hi Daevid, Take a look at the execution filter to see how symfony uses the validation.yml files: http://trac.symfony-project.com/browser/branches/1.0/lib/filter/sfExecutionFilter.class.php#L91 More to your point, isn't duplication of the validation logic a larger DRY concern than duplication

[symfony-users] Re: template using variables defined in the action class

2008-06-13 Thread Kris Wallsmith
Hi Mohammad, The action classes use the PHP magic __set() method, which is only used when an object member has NOT been defined yet. So the answer you're looking for is no. If you'd like to have certain variables set in every action in a module, consider using the -initialize() or - preExecute()

[symfony-users] Re: sfWidgetFormSelect (selected value)

2008-06-13 Thread Kris Wallsmith
Hi Dmitry, I believe default form values are set in one of three ways: * sfForm::__construct(array $defaults) * sfForm::setDefaults(array $defaults) * sfForm::setDefault(string $name, mixed $default) Kris On Jun 13, 6:55 am, Dmitry Nesteruk [EMAIL PROTECTED] wrote: How can I set selected