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

2009-10-07 Thread Georg Gell

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:   !-- show only in trip-profile page
 OR   multimedia pages --
 346:   ?php
 347:  
 if($show_left_sliding_menu == 'yes' || $module ==
 'photolibrary' || $module == 'videolibrary'){ ?
 348:
 349:a ?php if
 ($tab==photolibrary): ? class=current ? endif; ? href=?php
 echo url_for('photolibrary/index'.$multimedia_param); ?img src=/
 images/photo-350:app.png title=Photo Library alt=Photo Library /
 /abr /
 351:
 352:a id=smile ?php if
 ($tab==videolibrary): ? class=current ? endif; ? href=?php
 echo url_for('videolibrary/index'.$multimedia_param); ?img
 353:src=/images/video-app.png title=Video Library alt=Video
 Library //abr /
 354:?php } ?
 355:
 356:
 357:?php
 358:  
 if($show_left_sliding_menu == 'yes') { ?
 359:a href=?php echo url_for
 ('trip/maps?trip_folder_id='.$trip_folder_id_str);?img src=/
 images/map-app.png title=Map alt=map //abr /
 360:?php } ?
 361:
 362:/div
 363:/div
 364:  !-- show only in trip-profile page --
 
 
 Here, if I delete line 349  to 353, then it is working correctly.
 
 Dont know why is the problem??
 
 
 
 
 
 On Oct 7, 10:05 am, Jeremy Thomerson jeremythomer...@gmail.com
 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 avani.v.puj...@gmail.com wrote:

 Oh sorry, it was typing mistake.
 whole project is working in my 1 pc. When I copy the same into my
 other pc, it is giving errors
 Parse error: syntax error, unexpected '}' in C:\xampp\htdocs\td\apps
 \core\templates\layout.php on line 354  everywhere where I have
 used
 ?php  if(condition) : ?
 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 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{}  ?  (traditional php syntax)  then it is
 working.
 Can anybody help me?
 Thanks in advance.
 --
 Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz
  
 

--~--~-~--~~~---~--~~
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: 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:                           !-- show only in trip-profile page
  OR   multimedia pages --
  346:                           ?php
  347:                                                               
  if($show_left_sliding_menu == 'yes' || $module ==
  'photolibrary' || $module == 'videolibrary'){ ?
  348:
  349:                                    a ?php if
  ($tab==photolibrary): ? class=current ? endif; ? href=?php
  echo url_for('photolibrary/index'.$multimedia_param); ?img src=/
  images/photo-350:app.png title=Photo Library alt=Photo Library /
  /abr /
  351:
  352:                                    a id=smile ?php if
  ($tab==videolibrary): ? class=current ? endif; ? href=?php
  echo url_for('videolibrary/index'.$multimedia_param); ?img
  353:src=/images/video-app.png title=Video Library alt=Video
  Library //abr /
  354:                            ?php } ?
  355:
  356:
  357:                            ?php
  358:                                                               
  if($show_left_sliding_menu == 'yes') { ?
  359:                                    a href=?php echo url_for
  ('trip/maps?trip_folder_id='.$trip_folder_id_str);?img src=/
  images/map-app.png title=Map alt=map //abr /
  360:                            ?php } ?
  361:
  362:                            /div
  363:                        /div
  364:                               !-- show only in trip-profile page --

  Here, if I delete line 349  to 353, then it is working correctly.

  Dont know why is the problem??

  On Oct 7, 10:05 am, Jeremy Thomerson jeremythomer...@gmail.com
  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 avani.v.puj...@gmail.com wrote:

  Oh sorry, it was typing mistake.
  whole project is working in my 1 pc. When I copy the same into my
  other pc, it is giving errors
  Parse error: syntax error, unexpected '}' in C:\xampp\htdocs\td\apps
  \core\templates\layout.php on line 354  everywhere where I have
  used
  ?php  if(condition) : ?
  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 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{}  ?  (traditional php syntax)  then it is
  working.
  Can anybody help me?
  Thanks in advance.
  --
  Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz
--~--~-~--~~~---~--~~
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] Strange behaviour when freezing project

2009-10-07 Thread Adrien Mogenet

Hi everyone,

I'm using sf1.2 (trunk), and 2 plugins : sfPropelPlugin and
sfProtocolousPlugin.

Once I `symfony project:freeze /path/to/sf/`, I noticed that both
plugins folders in /web are... linked !

cd web  ls -l :
sfPropelPlugin - ../../../Symfony/1.2/lib/plugins/sfPropelPlugin/web
sfProtoculousPlugin - ../../../Symfony/1.2/lib/plugins/
sfProtoculousPlugin/web


Well, did I forget something ?

--
Adrien Mogenet
http://adrien.frenchcomp.net
http://www.ze-technology.com
--~--~-~--~~~---~--~~
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: if (condition): endif: not working

2009-10-07 Thread Gareth McCumskey
From a best practices point of view I would suggest you never use PHP short
tags as it can cause issues later if you ever use XML documents. Just my 2
cents.

On Wed, Oct 7, 2009 at 8:09 AM, 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:   !-- show only in trip-profile page
  OR   multimedia pages --
  346:   ?php
  347:
  if($show_left_sliding_menu == 'yes' || $module ==
  'photolibrary' || $module == 'videolibrary'){ ?
  348:
  349:a ?php if
  ($tab==photolibrary): ? class=current ? endif; ? href=?php
  echo url_for('photolibrary/index'.$multimedia_param); ?img src=/
  images/photo-350:app.png title=Photo Library alt=Photo Library /
  /abr /
  351:
  352:a id=smile ?php if
  ($tab==videolibrary): ? class=current ? endif; ? href=?php
  echo url_for('videolibrary/index'.$multimedia_param); ?img
  353:src=/images/video-app.png title=Video Library alt=Video
  Library //abr /
  354:?php } ?
  355:
  356:
  357:?php
  358:
  if($show_left_sliding_menu == 'yes') { ?
  359:a href=?php echo url_for
  ('trip/maps?trip_folder_id='.$trip_folder_id_str);?img src=/
  images/map-app.png title=Map alt=map //abr /
  360:?php } ?
  361:
  362:/div
  363:/div
  364:  !-- show only in trip-profile page --
 
 
  Here, if I delete line 349  to 353, then it is working correctly.
 
  Dont know why is the problem??
 
 
 
 
 
  On Oct 7, 10:05 am, Jeremy Thomerson jeremythomer...@gmail.com
  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 avani.v.puj...@gmail.com wrote:
 
  Oh sorry, it was typing mistake.
  whole project is working in my 1 pc. When I copy the same into my
  other pc, it is giving errors
  Parse error: syntax error, unexpected '}' in C:\xampp\htdocs\td\apps
  \core\templates\layout.php on line 354  everywhere where I have
  used
  ?php  if(condition) : ?
  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 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{}  ?  (traditional php syntax)  then it is
  working.
  Can anybody help me?
  Thanks in advance.
  --
  Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz
  
 

 



-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

--~--~-~--~~~---~--~~
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] Own form formatter

2009-10-07 Thread HAUSa

I want to create my own form formatter. But, how can I create it?
I searched the documentation, and at the form chapter it says:

By default, symfony uses an HTML array to display a form. This
behavior can be changed using specific formatters, whether they're
built-in or specifically developed to suit the project. To create a
formatter, you need to create a class as described in Chapter 5.

But, there is no chapter 5 there!
Where can I find this information?
--~--~-~--~~~---~--~~
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: Own form formatter

2009-10-07 Thread Davide Borsatto

The form book is not fully written, and IMHO, it will not be completed
(at least not soon).

My suggestion is to look into the default formatters and see how they
work. If i remember well, they just define the html using object
protected properties, so you can extend the default formatter and
simply override the default values.

BTW in my experience, formatters have almost always been too limited
(except the default table) for a real usage. Almost everytime I have
to define the form structure in a template and simply echoing $form
['field']-render(), renderLabel() ecc, so I usually end up writing a
partial for each form and using it everywhere I need it.

On Oct 7, 10:03 am, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com
wrote:
 I want to create my own form formatter. But, how can I create it?
 I searched the documentation, and at the form chapter it says:

 By default, symfony uses an HTML array to display a form. This
 behavior can be changed using specific formatters, whether they're
 built-in or specifically developed to suit the project. To create a
 formatter, you need to create a class as described in Chapter 5.

 But, there is no chapter 5 there!
 Where can I find this information?
--~--~-~--~~~---~--~~
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: getId() not working on newly saved object

2009-10-07 Thread rooster (Russ)

On Oct 6, 9:41 pm, Josh joshlaro...@gmail.com wrote:
 Hi all:

 I'm still pretty fresh to Symfony so bear with my newbie questions and
 confusions.

 Here's the deal:

 $this-product = new Product; // from BaseProduct::Product

 $obj = $this-product-save();


As far as I can tell - saving a record does not return the record, so
in the case of:

$obj = $this-product-save();
$obj == null.

If you simply use:

$this-product-save();
echo $this-product-getProductId();

You might see something...


--~--~-~--~~~---~--~~
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: Question about abbreviated syntax in YAML files

2009-10-07 Thread tirengarfio

Thanks wiredcs,

On Oct 7, 4:38 am, wiredcs wire...@gmail.com wrote:
 I think the error says it. If you don't specify the one side it won't
 populate that model with the setter for user profile.

Did you read the section Abbreviated syntax (see the link in my
first entry)? As you can see on it the one side is specified just
writing contact_id.


 Use build-all to see what the generator is generating. I find it easier to 
 read and
 understand the doctrine models.

After build-all the only thing i get is:

 doctrine  dropping databases
 doctrine  Successfully dropped database f...nnection doctrine named rs3
 doctrine  creating databases
 doctrine  Successfully created database f...nnection doctrine named rs3
 doctrine  generating model classes
 doctrine  generating sql for models
 doctrine  Generated SQL successfully for models
 doctrine  generating form classes
 tokens/home/aplis_sf/rs3/lib/form/doctrine/BaseFormDoctrine.class.php
 tokens/home/aplis_sf/rs3/lib/form/doc...ugin/sfGuardGroupForm.class.php
 tokens/home/aplis_sf/rs3/lib/form/doc.../BasesfGuardGroupForm.class.php
 tokens/home/aplis_sf/rs3/lib/form/doc...fGuardRememberKeyForm.class.php
 tokens/home/aplis_sf/rs3/lib/form/doc...fGuardUserProfileForm.class.php
 tokens/home/aplis_sf/rs3/lib/form/doc...esfGuardUserGroupForm.class.php
 tokens/home/aplis_sf/rs3/lib/form/doc...sfGuardPermissionForm.class.php
 tokens/home/aplis_sf/rs3/lib/form/doc...e/BasesfGuardUserForm.class.php
 tokens/home/aplis_sf/rs3/lib/form/doc...ardUserPermissionForm.class.php
 tokens/home/aplis_sf/rs3/lib/form/doc...rdGroupPermissionForm.class.php
 tokens/home/aplis_sf/rs3/lib/form/doc...sfGuardPermissionForm.class.php
 tokens/home/aplis_sf/rs3/lib/form/doc...rdGroupPermissionForm.class.php
 tokens/home/aplis_sf/rs3/lib/form/doc...fGuardRememberKeyForm.class.php
 tokens/home/aplis_sf/rs3/lib/form/doc.../sfGuardUserGroupForm.class.php
 tokens/home/aplis_sf/rs3/lib/form/doc...ardUserPermissionForm.class.php
 tokens/home/aplis_sf/rs3/lib/form/doc...lugin/sfGuardUserForm.class.php
 tokens/home/aplis_sf/rs3/lib/form/doc...fGuardUserProfileForm.class.php
 doctrine  generating filter form classes
 tokens/home/aplis_sf/rs3/lib/filter/d...aseFormFilterDoctrine.class.php
 tokens/home/aplis_sf/rs3/lib/filter/d...pPermissionFormFilter.class.php
 tokens/home/aplis_sf/rs3/lib/filter/d...fGuardGroupFormFilter.class.php
 tokens/home/aplis_sf/rs3/lib/filter/d...UserProfileFormFilter.class.php
 tokens/home/aplis_sf/rs3/lib/filter/d...UserProfileFormFilter.class.php
 tokens/home/aplis_sf/rs3/lib/filter/d...pPermissionFormFilter.class.php
 tokens/home/aplis_sf/rs3/lib/filter/d...sfGuardUserFormFilter.class.php
 tokens/home/aplis_sf/rs3/lib/filter/d...RememberKeyFormFilter.class.php
 tokens/home/aplis_sf/rs3/lib/filter/d...rdUserGroupFormFilter.class.php
 tokens/home/aplis_sf/rs3/lib/filter/d...fGuardGroupFormFilter.class.php
 tokens/home/aplis_sf/rs3/lib/filter/d...rPermissionFormFilter.class.php
 tokens/home/aplis_sf/rs3/lib/filter/d...dPermissionFormFilter.class.php
 tokens/home/aplis_sf/rs3/lib/filter/d...rdUserGroupFormFilter.class.php
 tokens/home/aplis_sf/rs3/lib/filter/d...rPermissionFormFilter.class.php
 tokens/home/aplis_sf/rs3/lib/filter/d...RememberKeyFormFilter.class.php
 tokens/home/aplis_sf/rs3/lib/filter/d...dPermissionFormFilter.class.php
 tokens/home/aplis_sf/rs3/lib/filter/d...sfGuardUserFormFilter.class.php
 doctrine  created tables successfully
 doctrine  loading data fixtures from /home/aplis_sf/rs3/data/fixtures


Is this output what you use to read and understand the doctrine
models?


--~--~-~--~~~---~--~~
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: Strange behaviour when freezing project

2009-10-07 Thread Eno

On Wed, 7 Oct 2009, Adrien Mogenet wrote:

 Once I `symfony project:freeze /path/to/sf/`, I noticed that both
 plugins folders in /web are... linked !
 
 cd web  ls -l :
 sfPropelPlugin - ../../../Symfony/1.2/lib/plugins/sfPropelPlugin/web
 sfProtoculousPlugin - ../../../Symfony/1.2/lib/plugins/
 sfProtoculousPlugin/web

Its normal - this is so the plugin's web assets (images, stylesheets, etc) 
are available.



-- 



--~--~-~--~~~---~--~~
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: Strange behaviour when freezing project

2009-10-07 Thread Eno

On Wed, 7 Oct 2009, Adrien Mogenet wrote:

 Once I `symfony project:freeze /path/to/sf/`, I noticed that both
 plugins folders in /web are... linked !
 
 cd web  ls -l :
 sfPropelPlugin - ../../../Symfony/1.2/lib/plugins/sfPropelPlugin/web
 sfProtoculousPlugin - ../../../Symfony/1.2/lib/plugins/
 sfProtoculousPlugin/web

Archive Plug-Ins

Some plug-ins come as a simple archive of files. To install those, just 
unpack the archive into your project's plugins/ directory. If the plug-in 
contains a web/ subdirectory, don't forget to run the 
plugin:publish-assets command to create the corresponding symlink under 
the main web/ folder as shown in listing 17-14. Finally, don't forget to 
clear the cache.


Excerpt from docs:

http://www.symfony-project.org/book/1_2/17-Extending-Symfony#chapter_17_sub_installing_a_plug_in



-- 



--~--~-~--~~~---~--~~
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: is app.yml cascading work in SF1.2?

2009-10-07 Thread Eno

On Sun, 4 Oct 2009, wittygraphy wrote:

 I have the following in the config/app.yml
 all:
   tabs:
 primary: none;
 secondary: none;
 
 and this in the modules/xyz/config/app.yml
 all:
   tabs:
 primary: services;
 secondary: none;
 
 in an action of the module xyz I expected app_tabs_primary to contain
 the value 'services' but it turn out to be 'none' instead.  I
 commented this parameter from config/app.yml and it turns out to be
 undefined in the action.  I also tried to overwrite it by calling
 sfConfig::set('app_tabs_primary', 'services') in the action code and
 it does work as expected.  I am really prefer to set this param in
 app.yml to make the code more readable.  Am I missing some setup to
 get this to work?

DYCC   (Did You Clear Cache?)


-- 



--~--~-~--~~~---~--~~
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] Symfony 1.2: dynamic show hide widget

2009-10-07 Thread eljam

Hello everybody,

I've have a table with 20 fields. Symfony generate for me the form
with the 20 fields. So for now that's good for me. Now i need for each
client to hide or show some field, not all because some of them are
used in a workflow.

About the show hide thing, i need to hide the field object not the
html, so no validator too. I want to make a template thing store in a
database so for new client it's automatic. I've some solution but i
want to know what is the best way.
--~--~-~--~~~---~--~~
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: if (condition): endif: not working

2009-10-07 Thread Jeremy Thomerson
Ah, yes!  Sometimes forget the little things.  I, too, would recommend not
using short open tags.

Jeremy

On Wed, Oct 7, 2009 at 1:38 AM, Avani avani.v.puj...@gmail.com wrote:


 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:   !-- show only in trip-profile page
   OR   multimedia pages --
   346:   ?php
   347:
 if($show_left_sliding_menu == 'yes' || $module ==
   'photolibrary' || $module == 'videolibrary'){ ?
   348:
   349:a ?php if
   ($tab==photolibrary): ? class=current ? endif; ? href=?php
   echo url_for('photolibrary/index'.$multimedia_param); ?img src=/
   images/photo-350:app.png title=Photo Library alt=Photo Library /
   /abr /
   351:
   352:a id=smile ?php if
   ($tab==videolibrary): ? class=current ? endif; ? href=?php
   echo url_for('videolibrary/index'.$multimedia_param); ?img
   353:src=/images/video-app.png title=Video Library alt=Video
   Library //abr /
   354:?php } ?
   355:
   356:
   357:?php
   358:
 if($show_left_sliding_menu == 'yes') { ?
   359:a href=?php echo url_for
   ('trip/maps?trip_folder_id='.$trip_folder_id_str);?img src=/
   images/map-app.png title=Map alt=map //abr /
   360:?php } ?
   361:
   362:/div
   363:/div
   364:   !-- show only in trip-profile page
 --
 
   Here, if I delete line 349  to 353, then it is working correctly.
 
   Dont know why is the problem??
 
   On Oct 7, 10:05 am, Jeremy Thomerson jeremythomer...@gmail.com
   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 avani.v.puj...@gmail.com
 wrote:
 
   Oh sorry, it was typing mistake.
   whole project is working in my 1 pc. When I copy the same into my
   other pc, it is giving errors
   Parse error: syntax error, unexpected '}' in C:\xampp\htdocs\td\apps
   \core\templates\layout.php on line 354  everywhere where I have
   used
   ?php  if(condition) : ?
   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 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{}  ?  (traditional php syntax)  then it
 is
   working.
   Can anybody help me?
   Thanks in advance.
   --
   Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz
 


--~--~-~--~~~---~--~~
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: Strange behaviour when freezing project

2009-10-07 Thread Adrien Mogenet

Thank you both of you !!

--
Adrien Mogenet
http://www.ze-technology.com
http://adrien.frenchcomp.net

On 7 oct, 13:31, Eno symb...@gmail.com wrote:
 On Wed, 7 Oct 2009, Adrien Mogenet wrote:
  Once I `symfony project:freeze /path/to/sf/`, I noticed that both
  plugins folders in /web are... linked !

  cd web  ls -l :
  sfPropelPlugin - ../../../Symfony/1.2/lib/plugins/sfPropelPlugin/web
  sfProtoculousPlugin - ../../../Symfony/1.2/lib/plugins/
  sfProtoculousPlugin/web

 Archive Plug-Ins

 Some plug-ins come as a simple archive of files. To install those, just
 unpack the archive into your project's plugins/ directory. If the plug-in
 contains a web/ subdirectory, don't forget to run the
 plugin:publish-assets command to create the corresponding symlink under
 the main web/ folder as shown in listing 17-14. Finally, don't forget to
 clear the cache.

 Excerpt from docs:

 http://www.symfony-project.org/book/1_2/17-Extending-Symfony#chapter_...

 --
--~--~-~--~~~---~--~~
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: Own form formatter

2009-10-07 Thread Richtermeister

Hey Hausa,

that's fairly easy. Just look at, say, the
sfWidgetFormSchemaFormatterList class and create a class that extends
it.
In that class you can do some major changes just by updating the
template properties, like $rowFormat, $decoratorFormat, etc..

Then just tell your form to use that decorator, say,
sfWidgetFormSchemaFormatterMyList, by saying $form - renderUsing
(MyList);

Or you can use the sfViewableFormPlugin to globally set that decorator
for all or specific forms.

Hope this helps,
Daniel


On Oct 7, 1:03 am, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com
wrote:
 I want to create my own form formatter. But, how can I create it?
 I searched the documentation, and at the form chapter it says:

 By default, symfony uses an HTML array to display a form. This
 behavior can be changed using specific formatters, whether they're
 built-in or specifically developed to suit the project. To create a
 formatter, you need to create a class as described in Chapter 5.

 But, there is no chapter 5 there!
 Where can I find this information?
--~--~-~--~~~---~--~~
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] Problem with subforms

2009-10-07 Thread Marcos Medeiros





Dear Symfonyans,

How can I do to setup/change the value into element of subform in the
save action?
Where can I change or overwrite the code?
My model is a M:1, in this case if the user change the element of
subform and the value is new I need insert into db, but if the value
already exist I need change the current id to new id... How can id do
this???
If my rule allow only change the current value, it's ok, it's work
Please help me


Medeiros


--~--~-~--~~~---~--~~
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] Database Views with Symfony Doctrine

2009-10-07 Thread ridcully

Hi,

how can I use Database Views in Symfony with Doctrine? I need them
because of performance reasons.

My Idee was to create dummys in the model and after building the Model
to drop the dummy tabels and create SQL Views.

Is there a better way to do this?

--~--~-~--~~~---~--~~
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] Optimal PHP Version for Symfony 1.2

2009-10-07 Thread axel at

hello,

I'm still new to symfony and php and need a little help:
what's the most stable configuration for large webprojects for the
moment? symfony 1.2 and php5.2.x or better php5.3.x.

if symfony 1.2  php5.3 is recommendet, can anybody link me a
tutorial how to get plugin:install (pear) working with this
combination

thx for your help

--~--~-~--~~~---~--~~
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] culture aware sfValidatorNumber, what are you using?

2009-10-07 Thread Georg Gell

In german, a decimal number looks like this: 5,2, not 5.2 like PHP is
expecting.
If a user enters a decimal number in a form, sfValidatorNumber rejects it.
I was expecting sfValidatorNumber to use the user culture to resolve
this, but it does not.
I found an old ticket on trac
(http://trac.symfony-project.org/ticket/4071), but obviously nothing
happened.

What are you doing in this case? Has anybody a culture aware
sfValidatorNumber class?

Georg

--~--~-~--~~~---~--~~
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: Optimal PHP Version for Symfony 1.2

2009-10-07 Thread Juan Pablo Romero Bernal

Hi,

 I'm still new to symfony and php and need a little help:
 what's the most stable configuration for large webprojects for the
 moment? symfony 1.2 and php5.2.x or better php5.3.x.

I have some projects running in production environment and i'm using
symfony 1.2.8 + PHP 5.2.6
with good results.

Bye,

-- 
Juan Pablo Romero Bernal
Blog: http://jpromerobx.blogspot.com/

--~--~-~--~~~---~--~~
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] sfLogger - why the eventdispatcher?

2009-10-07 Thread Richtermeister

Hi all,

one thing I was wondering is why all sfLogger variants have to use the
sfEventDispatcher..
it seems that this makes each logger listen to application.log
events.. What if I just want a simple logger that logs results from
some task I'm doing.. I don't neccessarily want application events in
there as well...

Thanks for any pointers.

Daniel
--~--~-~--~~~---~--~~
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] difference between 'new' and 'create' methods generated by sfDoctrineRouteCollection

2009-10-07 Thread Ashok

What is the main difference between 'new' and 'create' methods
generated by sfDoctrineRouteCollection? Where and when should I use
one of the other? Explanation with an example would be great. Thanks


--~--~-~--~~~---~--~~
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: sfLogger - why the eventdispatcher?

2009-10-07 Thread Henning Glatter-Gotz

Daniel,

I had the same requirement you have a few weeks ago. First I started writing
my own logger base class, but it started looking more and more like the
sfLogger class as work progressed, so what I did was create my own logger
base class that extends sfLogger. Yes, it extends sfLogger, however, in my
class' initialize method, where I would normally call the parent initialize
method I don't. This way the event dispatcher is never connected to the
logger class and none of the symfony events are logged.
Might not be the best solution, but I needed practically the same
functionality as the sfLogger and would have simply duplicated the code
almost 1:1 just leaving out the dispatcher connection code.

Cheers
Henning

-Original Message-
From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com]
On Behalf Of Richtermeister
Sent: Wednesday, October 07, 2009 6:33 PM
To: symfony users
Subject: [symfony-users] sfLogger - why the eventdispatcher?


Hi all,

one thing I was wondering is why all sfLogger variants have to use the
sfEventDispatcher..
it seems that this makes each logger listen to application.log
events.. What if I just want a simple logger that logs results from
some task I'm doing.. I don't neccessarily want application events in
there as well...

Thanks for any pointers.

Daniel


--~--~-~--~~~---~--~~
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: difference between 'new' and 'create' methods generated by sfDoctrineRouteCollection

2009-10-07 Thread Eno

On Wed, 7 Oct 2009, Ashok wrote:

 What is the main difference between 'new' and 'create' methods
 generated by sfDoctrineRouteCollection? Where and when should I use
 one of the other? Explanation with an example would be great. Thanks

Im guessing that one is to display the new form and one is to process 
that form when it is submitted.


-- 



--~--~-~--~~~---~--~~
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: difference between 'new' and 'create' methods generated by sfDoctrineRouteCollection

2009-10-07 Thread Dennis Benkert

Exactly. :)

- Dennis

Am 08.10.2009 um 03:57 schrieb Eno symb...@gmail.com:


 On Wed, 7 Oct 2009, Ashok wrote:

 What is the main difference between 'new' and 'create' methods
 generated by sfDoctrineRouteCollection? Where and when should I use
 one of the other? Explanation with an example would be great. Thanks

 Im guessing that one is to display the new form and one is to  
 process
 that form when it is submitted.


 -- 



 

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---