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

2009-11-19 Thread Avani
text()->getUser()->signOut(); } Thanks Again. On Nov 19, 1:39 pm, Gareth McCumskey 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 wrote:

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

2009-11-18 Thread Avani
Hi friends, In my "before login" pages, there are 3 "tabs" 1. Register (register page) 2. Login (login page) 3. Guest (visit site as guest) Now, here, what I have done is.. when user clicks on "guest" he will be automatically logged in as "guest" user and can access some functionality of the sit

[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 wrote: > Hi friends, > > In my application, I am facing some strange problem > > I have a link  "profile" > >                         Profile

[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" Profile When I run the site, when I click on "profile" link, it goes to "myprojecturl/core.php/" and shows blank page. when I press "refresh" button, it shows profile page prope

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

2009-10-21 Thread Avani
was just a quick way to point you in the > right direction > > > > > > On Wed, Oct 21, 2009 at 9:45 AM, Avani wrote: > > > ya.. it's working > > > Thanks Gareth..  :) > > > On Oct 21, 12:12 pm, Gareth McCumskey wrote: > > > $

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

2009-10-21 Thread Avani
­E) > > $k->getNewCriterion( > sfGuardUserProfilePeer::LAST_NAME,"%".$exploded_query[1]."%",Criteria::LIKE­) > > > > > > On Wed, Oct 21, 2009 at 5:25 AM, Avani wrote: > > > Hi > > > I have 1 table in my project, called "sf_guard_use

[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 q

[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 -isacti

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

2009-10-06 Thread Avani
Oh... Thanks a lot Georg, You guessed correct. Thanks everyone :) On Oct 7, 2:09 pm, Georg Gell 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

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

2009-10-06 Thread Avani
nt know why is the problem?? On Oct 7, 10:05 am, Jeremy Thomerson wrote: > Please provide lines 345 - 365 of > C:\xampp\htdocs\td\apps\core\templates\layout.php would be helpful. > > Jeremy > > On Tue, Oct 6, 2009 at 9:03 PM, Avani wrote: > > > Oh sorry, it was typing

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

2009-10-06 Thread Avani
thing On Oct 7, 9:59 am, Sid Bachtiar wrote: > It should be: > > >   Hola hola hola > > > > > On Wed, Oct 7, 2009 at 2:58 PM, Avani wrote: > > > Hi all, > > > I am working on symfony since last 1 month. Yday I just installed > > symfony to m

[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 if I have used(traditional php syntax) then it is working. Can an

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

2009-09-28 Thread Avani
ctedness of an ORM, but the criterion example I just gave might seem a > bit "kludgy". Both will work however and in my opinion keeping abstraction > is more important than cleanliness so the first option is probably better. > > > > > > On Mon, Sep 28, 2009 at 8:48 AM

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

2009-09-27 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(); $c_i

[symfony-users] Re: Is sfWeatherPlugin Unreliable?

2009-09-18 Thread Avani
nload. > Good luck. > > On Sep 17, 8:01 pm, avani pujara 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 solu

[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 y

[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 ad

[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 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 ge

[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 d

[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] 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 guest.php/signu

[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 wrote: > On Fri, 4 Sep 2009, avani pujara wrote: > >   $this->getRequest()->setError('email',"The username is already taken. > > There is no setErro

[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 = sfGuardUserPeer::doSelect($c

[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 page

[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