[symfony-users] Re: Auto-populate a drop down list using Symfony and jQuery????

2009-02-24 Thread Andy Dziahel'
Hi.

Use Firebug http://getfirebug.com/ or another tool to monitor AJAX
queries, or look into app logs to determine whether your request was
actually processed.

I think it is a sort of offtopic.

On Tue, Feb 24, 2009 at 10:07, SeeVik vikramvmalhotra1...@gmail.com wrote:


 Hello all,

 I am creating an application in which I have two drop-down lists, when
 one changes, the contents of the other are changed. Like selecting
 country and states.

 I am using Symfony with Doctrine and want to use jQuery for this
 asynchronous task. here's where I am right now...

 web/js/my_script.js
 ---
 $(document).ready(function() {
  $('select#country').change(function() {
$.ajax({
  url: myModule/myAction?id= + this.value,
  dataType: text/html,
  success: (function(data) {
$('select#states').html(data);
  }) });   });   });

 myModule/actions/actions.class.php
 --
 public function executeMyAction(sfWebRequest $request)
 {
// The static value here will be replaced with logic to
   // generate the real string
$this-list = optionWA/optionoptionCA/option;
 }

 myModule/templates/myActionSuccess.php
 ---
 ?php echo $list ?


 I am stuck up in this where nothing happens when I select a country.
 How can I check whether the url is found by the jQuery or not ?

 Thanks and Regards
 Vikram
 



-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: data-load

2009-02-24 Thread Andy Dziahel'
Hi.

Looks like you just forgot to make `portal_user`.`id` autoincremented.

On Tue, Feb 24, 2009 at 19:02, RaV inad...@gmail.com wrote:

 Hi!

 I have a problem with propel-load-data.
 I wrote my fixture:

 data/fixtures/data.yml:

 PortalUser:
   portuser_1:
 login: login
 password: adf
 name: Rafal
 surname: B
 created_at: 2008-12-26
 updated_at: 2008-12-26
 email: ra...@bednario.glu
 is_admin: true
 created_at: 2008-12-11
 updated_at: 2008-12-11
 Configuration:
   configuration_0:
 name: LOG_DELAY
 value: 5
 comment: 'sdf'
 updated_at: 2009-01-26

 But when i was trying to load this into database, i saw the message:
   Unable to execute INSERT statement. [wrapped: Could not execute update
 [Native Error: ERROR:  null value in column id violates not-null
 constraint] [User Info: INSERT INTO portal_user
 (LOGIN,PASSWORD,NAME,SURNAME,EMAIL,IS_ADMIN,CREATED_AT,UPDATED_AT) VALUES
 ('login','adf','Rafal','B','ra...@bednario.glu','t','2008-12-11
 00:00:00 +0100','2008-12-11 00:00:00 +0100')]]

 I was wondering why my symfony didn't set id automatically. Should I have
 to write it in my  fixture?


 Thank you!

 Rafal


 



-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to escape global site layout for an action?

2009-02-23 Thread Andy Dziahel'
Hi.

$this-setLayout('layoutName')?


On Mon, Feb 23, 2009 at 12:48, SeeVik vikramvmalhotra1...@gmail.com wrote:


 Hello all,

 In one of the actions I have defined in controller, I do not want to
 use the global template file layout.php. How config should I use in
 this situation?

 Like I am creating a webapp and I have a link which opens in new
 window. In this window, I don't want to display the site header and
 footers. But they are included in the layout of the website. How can I
 escape them?

 Thanks and Regards
 Vikram
 



-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to escape global site layout for an action?

2009-02-23 Thread Andy Dziahel'
Hmm. As long as I remember, you may edit modulename/config/view.yml like
this:

firstaction:
   layout:  customLayoutName
 secondaction:
   layout:  customLayoutName


On Mon, Feb 23, 2009 at 13:08, SeeVik vikramvmalhotra1...@gmail.com wrote:


 Hello Andy. Thanks for that handy trick.

 I wanted to know whether there is any way we can escape the layout for
 a set of actions without everytime writing in the action $this-
 setLayout('layoutname');

 Thanks and Regards
 Vikram

 On Feb 23, 7:54 pm, Andy Dziahel' trickster...@gmail.com wrote:
  Hi.
 
  $this-setLayout('layoutName')?
 
 
 
 
 
  On Mon, Feb 23, 2009 at 12:48, SeeVik vikramvmalhotra1...@gmail.com
 wrote:
 
   Hello all,
 
   In one of the actions I have defined in controller, I do not want to
   use the global template file layout.php. How config should I use in
   this situation?
 
   Like I am creating a webapp and I have a link which opens in new
   window. In this window, I don't want to display the site header and
   footers. But they are included in the layout of the website. How can I
   escape them?
 
   Thanks and Regards
   Vikram
 
  --
  With the best regards, Andy.
 



-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to escape global site layout for an action?

2009-02-23 Thread Andy Dziahel'
Vikram,

Looks like I was wrong.

firstaction*Success*:
   layout:  customLayoutName
 secondaction*Success*:
   layout:  customLayoutName


Of course, if you want custom layout for firstactionError.php template, you
shoud refer them in view.yml accordingly.

On Mon, Feb 23, 2009 at 13:08, SeeVik vikramvmalhotra1...@gmail.com wrote:


 Hello Andy. Thanks for that handy trick.

 I wanted to know whether there is any way we can escape the layout for
 a set of actions without everytime writing in the action $this-
 setLayout('layoutname');

 Thanks and Regards
 Vikram

 On Feb 23, 7:54 pm, Andy Dziahel' trickster...@gmail.com wrote:
  Hi.
 
  $this-setLayout('layoutName')?
 
 
 
 
 
  On Mon, Feb 23, 2009 at 12:48, SeeVik vikramvmalhotra1...@gmail.com
 wrote:
 
   Hello all,
 
   In one of the actions I have defined in controller, I do not want to
   use the global template file layout.php. How config should I use in
   this situation?
 
   Like I am creating a webapp and I have a link which opens in new
   window. In this window, I don't want to display the site header and
   footers. But they are included in the layout of the website. How can I
   escape them?
 
   Thanks and Regards
   Vikram
 
  --
  With the best regards, Andy.
 



-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Symfony and Zend Studio for Eclipse?

2009-02-23 Thread Andy Dziahel'
Hi.

Follow this guide -
http://trac.symfony-project.org/wiki/SymfonyAndPDT#Method2:CreatevirtualfolderthatpointstoSymfonylibraries

On Mon, Feb 23, 2009 at 15:21, blue92877 bluepres...@gmail.com wrote:


 Hello,

 I just got a copy of Zend studio for eclipse, and I'm having some
 trouble setting up symfony within.  Is there someone who is familiar
 with this process or is using Zend for their Symfony projects who can
 tell what the best way to set it up would be?

 Thanks
 blue92877
 



-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to display new-line feeds in Symfony??

2009-02-19 Thread Andy Dziahel'
Hi.

Well, if you'll var_dump $list variable, you'll see that it's not an
instance of List (or whatever) - it's instance of
sfOutputEscaperObjectDecorator. So because of that, your
$list-getBody()won't return
'br/' - it'll return '*gt;*br/*lt;*'. To get unescaped value, you should
call $list-getBody(ESC_RAW).

On Thu, Feb 19, 2009 at 11:24, SeeVik vikramvmalhotra1...@gmail.com wrote:


 Hello all,

 I walked into a strange problem. In my database I have stored data
 which contains new-line feeds and I am unable to display them in view.

 I did something like this in my view...
 pre?php echo preg_replace( '/\n/', 'br', $list-getBody() ) ?/
 pre

 What this did was to just display br as it is... I tried putting the
 function inside some helper or a static class as well. That didn't
 work either.

 However when I do like
 pre?php echo 'abcbr123' ?/pre

 It displays the strings on separate lines.

 How do we workaround this?

 Thanks and Regards
 Vikram


 



-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: checking for duplicate entry while validating

2009-02-18 Thread Andy Dziahel'
Hi.

sfPropelUniqueValidator?

On Thu, Feb 19, 2009 at 00:03, Iltar kja...@gmail.com wrote:


 How can I add a validation for fields that have a unique index?
 



-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---