[symfony-users] Re: sfguarduser. How to check before login ?

2009-11-19 Thread Avani
()-signOut(); } Thanks Again. On Nov 19, 1:39 pm, Gareth McCumskey gmccums...@gmail.com wrote: What about doing a pre-filter? http://www.symfony-project.org/book/1_2/06-Inside-the-Controller-Laye... On Thu, Nov 19, 2009 at 6:08 AM, Avani avani.v.puj...@gmail.com wrote: Hi friends

[symfony-users] core.php/ not working

2009-10-28 Thread Avani
Hi friends, In my application, I am facing some strange problem I have a link profile a href=?php echo url_for('profile/index'); ? Profile/a When I run the site, when I click on profile link, it goes to myprojecturl/core.php/ and shows blank page. when I press

[symfony-users] Re: core.php/ not working

2009-10-28 Thread Avani
Hey, this is the problem only with opera, in other browsers, its working ok. On Oct 29, 12:12 pm, Avani avani.v.puj...@gmail.com wrote: Hi friends, In my application, I am facing some strange problem I have a link  profile                         a href=?php echo url_for('profile/index

[symfony-users] Re: Help me for writing criteria

2009-10-21 Thread Avani
::LAST_NAME,%.$exploded_query[1].%,Criteria::LIKE­) On Wed, Oct 21, 2009 at 5:25 AM, Avani avani.v.puj...@gmail.com wrote: Hi I have 1 table in my project, called sf_guard_user_profile. In which, there are 2 fields, 1. first_name 2. last_name I m working on search module

[symfony-users] Re: Help me for writing criteria

2009-10-21 Thread Avani
, Oct 21, 2009 at 9:45 AM, Avani avani.v.puj...@gmail.com wrote: ya.. it's working Thanks Gareth..  :) On Oct 21, 12:12 pm, Gareth McCumskey gmccums...@gmail.com wrote: $exploded_query = explode( , $this-query); $k-getNewCriterion( sfGuardUserProfilePeer::FIRST_NAME

[symfony-users] Help me for writing criteria

2009-10-20 Thread Avani
Hi I have 1 table in my project, called sf_guard_user_profile. In which, there are 2 fields, 1. first_name 2. last_name I m working on search module in table, suppose there is 1 entry firstname = 'John' lastname = 'Lee' In search if any body searches for 'john lee', how to match ? bcoz

[symfony-users] Can not rotate image resized by sfThumbnail Plugin

2009-10-14 Thread Avani
Hi all, I have module of photolibrary in my project. In which, when user upload photo, I have resized the photo using sfThumbnail Plugin. Now, I have a link for rotating photo. For that, I have used code below: $image = sfConfig::get('sf_web_dir').'/images/photo_3_147.jpg.png';

[symfony-users] Join query problem

2009-10-09 Thread Avani
Hi All, I am confused about 1 query in my symfony project. I have 2 tables as shown below. 1. photo -photoid -photoname -userid -tripid (either 0 or related tripid if trip is assigned) 2. Trip -id -tripname

[symfony-users] Re: if (condition): endif: not working

2009-10-07 Thread Avani
Oh... Thanks a lot Georg, You guessed correct. Thanks everyone :) On Oct 7, 2:09 pm, Georg Gell geor...@have2.com wrote: Guessing: you have short_open_tag=1 in php.ini on your pc, but short_open_tag=0 on your laptop. Avani schrieb: Below is my code 345

[symfony-users] if (condition): endif: not working

2009-10-06 Thread Avani
Hi all, I am working on symfony since last 1 month. Yday I just installed symfony to my other laptop. I dont know why I am getting errors in my templates which works for my pc. I am gettting errors everywhere when I used ?php if(condition): endif: ? if I have used ?php if{} ?

[symfony-users] Re: if (condition): endif: not working

2009-10-06 Thread Avani
) : ? something ?php endif; ? On Oct 7, 9:59 am, Sid Bachtiar sid.bacht...@gmail.com wrote: It should be: ?php if (condition): ?   h1Hola hola hola/h1 ?php endif; // with semi colon ? On Wed, Oct 7, 2009 at 2:58 PM, Avani avani.v.puj...@gmail.com wrote: Hi all, I am working on symfony since

[symfony-users] Compare date only from date time field using criteria

2009-09-28 Thread Avani
Hi all, I want your help for comparing date. In my database, I have 1 column named start_time and it's type is datetime. Now, I want to display records by comparing date only. Time need to be ignored while comparing. I dont know how to do this using criteria. $c_iti = new Criteria();

[symfony-users] Re: Compare date only from date time field using criteria

2009-09-28 Thread Avani
opinion keeping abstraction is more important than cleanliness so the first option is probably better. On Mon, Sep 28, 2009 at 8:48 AM, Avani avani.v.puj...@gmail.com wrote: Hi all, I want your help for comparing date. In my database, I have 1 column named start_time and it's type

[symfony-users] Re: Is sfWeatherPlugin Unreliable?

2009-09-18 Thread Avani
. Good luck. On Sep 17, 8:01 pm, avani pujara avani.v.puj...@gmail.com wrote: Hey Frieds, I want to add weather information to my site. I want to use sfWeatherPlugin. But I heard that it's unreliable? is it so? What is good solution to show weather information? Thanks in advance

[symfony-users] Is sfWeatherPlugin Unreliable?

2009-09-17 Thread avani pujara
Hey Frieds, I want to add weather information to my site. I want to use sfWeatherPlugin. But I heard that it's unreliable? is it so? What is good solution to show weather information? Thanks in advance !!! --~--~-~--~~~---~--~~ You received this message because

[symfony-users] Re: how to get current login user id in my commonclass??

2009-09-15 Thread Avani
Hi Olly, Thanks a lot.. It's working :) On Sep 15, 4:29 pm, Oliver Jackson ojack...@valleyt.co.uk wrote: Avani wrote: Hello Everyone, I have one common class for my own functions and I have stored it in lib/common.class.php My problem is, how to get current login userid from

[symfony-users] Disable create button from backend

2009-09-15 Thread Avani
Hi All, I have one functionality in backend for edit contents of static pages. In which, pages are fixed. Admin no need to create new pages. He can only change content of the existing pages. But I dont know how to disable create button on listing page. Can anybody help me please? Thanks in

[symfony-users] how to get current login user id in my commonclass??

2009-09-14 Thread Avani
Hello Everyone, I have one common class for my own functions and I have stored it in lib/common.class.php My problem is, how to get current login userid from that class? I tried 1. $this-getUser()-getProfile()-getUserId(); 2. $sf_user-getProfile()-getUserId(); Both not working. Wht to do?

[symfony-users] drag drop do not auto scroll

2009-09-08 Thread avani pujara
Hi everyone, I have implemented symfony ajax drag drop code into my project. Everything wokrs fine. But my project is not shopping cart. It is to drag details to calender from left side to right side. In my page, left side shows details and right side there are added details of different dates.

[symfony-users] display form error message

2009-09-04 Thread avani pujara
HI All, I have done with Registration form. I want to check duplicate. for this, I have done like: Actions.class.php //check for duplicate username $c_checkduplicate = new Criteria(); $c_checkduplicate-add(sfGuardUserPeer::USERNAME, $this-email); $isduplicate =

[symfony-users] Re: display form error message

2009-09-04 Thread Avani
Hey Eno, I m using 1.1 !!! So, wht should I do for displaying my error message?? On Sep 4, 3:27 pm, Eno symb...@gmail.com wrote: On Fri, 4 Sep 2009, avani pujara wrote:   $this-getRequest()-setError('email',The username is already taken. There is no setError method in sfRequest unless you

[symfony-users] sfcryptocaptcha plugin problem.

2009-09-04 Thread Avani
Hi All, I have registration form in my project. For that, I have used sfcryptocaptcha plugin for captcha. Everything works fine in my local machine. But when I upload files, it is not working in live. It is not displaying captcha image. also not giving any erros. My url is

[symfony-users] Check duplicate for registration

2009-09-03 Thread avani pujara
Hi Everyone, I m very new to symfony. I have created Registration form in my project. But how can I *check for duplicate username*? Can I use any *SFVALIDATOR* for this? OR if I am checking from my action page, after submitting the details, then I want to redirect again to my registration

[symfony-users] Plugin for Multiple Upload

2009-09-02 Thread Avani
Hi all, Anyone know any plugin available in symfony for multiple upload? I want to do that for multiple upload of pics for creating photo album like orkut and facebook.. Any Idea? Pls help me. Thanks in advance. --~--~-~--~~~---~--~~ You received this message