Re: [symfony-users] Can't get app.yml working for me

2010-09-01 Thread Sid Bachtiar
Have you clear-cache? e.g.: ./symfony cc after the app.yml is updated?

Or may be you mean to do:

sfConfig::get('app_mbc_organisation_id');

On Thu, Sep 2, 2010 at 1:10 PM, Jochen Daum jdau...@gmail.com wrote:
 Hi,

 I have /config/app.yml:

 # You can find more information about this file on the symfony website:
 # http://www.symfony-project.org/reference/1_4/en/11-App

 # default values
 all:
  mbc:
    organisation_id: 1

  mail:
    method: native


 and in a doctrine form class, use:

 $x = sfConfig::get('app_mbc');

 But $x is always null, what do I do wrong?


 Kind Regards,

 Jochen

 --
 If you want to report a vulnerability issue on symfony, please send it to 
 security at symfony-project.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




-- 
Blue Horn Ltd - System Development
http://bluehorn.co.nz

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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


Re: [symfony-users] Re: Escape %2f in URL solution

2010-07-19 Thread Sid Bachtiar
You could always extract the variable manually from $_SERVER['REQUEST_URI']

On Tue, Jul 20, 2010 at 8:06 AM, Christian Schaefer cae...@gmail.com wrote:
 Hi Javier,

 I examined this for a short while and came to the conclusion that
 either you have to drop the requirement of having slashes in your
 parameter and find another solution or do the slightly unelegant
 str_replace().

 Read more about it here:
 http://test.ical.ly/2010/07/20/how-you-run-into-problems-with-redirects-when-route-parameters-need-to-have-slashes-in-them/

 Cheers
 /Christian


 On Wed, Mar 10, 2010 at 9:40 PM, Richtermeister nex...@gmail.com wrote:
 Hey Javier,

 I've come across this solution (simple string replace) a couple of
 times, and it works well for me so far, so I guess it's ok.

 Daniel


 On Mar 10, 10:03 am, Javier Sanchez javija...@gmail.com wrote:
 Hi all

 This is my problem.

 When i want to route with a parametrer slash / like :var =
 subprojectslug/pageslug symfony encoded slash to %2f and give a 404
 error because apache desactivate the AllowEncodedSlashes for security

 I activate AllowEncodedSlashes On

 But i can't match url in a redirect and the URL is too ugly.

 Solution with AllowEncodedSlashes Off , go to core: sfRouting.class

 protected function fixGeneratedUrl($url, $absolute = false)
 {
 ...
 $url = str_ireplace('%2F', '/', $url);

     return $url;

 }

 This works... but, is a good solution? there are a better solution? is
 a dangerous fix and can affect to my project in other side?

 Thx
 Javier Sanchez Lopez

 --
 If you want to report a vulnerability issue on symfony, please send it to 
 security at symfony-project.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


 --
 If you want to report a vulnerability issue on symfony, please send it to 
 security at symfony-project.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




-- 
Blue Horn Ltd - System Development
http://bluehorn.co.nz

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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] How to use template.filter_parameters event to change CSRF error message?

2010-07-14 Thread Sid Bachtiar
Hi,

I would like to change the CSRF error message and someone (Kris W)
pointed out that I should use template.filter_parameters event.

Could Kris or someone please give me more clues?

Thanks,

Sid
-- 
Blue Horn Ltd - System Development
http://bluehorn.co.nz

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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: How to use template.filter_parameters event to change CSRF error message?

2010-07-14 Thread Sid Bachtiar
Never mind, I found the answer in
http://www.symfony-project.org/more-with-symfony/1_4/en/14-Playing-with-Symfony-Config-Cache

On Thu, Jul 15, 2010 at 10:40 AM, Sid Bachtiar sid.bacht...@gmail.com wrote:
 Hi,

 I would like to change the CSRF error message and someone (Kris W)
 pointed out that I should use template.filter_parameters event.

 Could Kris or someone please give me more clues?

 Thanks,

 Sid
 --
 Blue Horn Ltd - System Development
 http://bluehorn.co.nz




-- 
Blue Horn Ltd - System Development
http://bluehorn.co.nz

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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: How to use template.filter_parameters event to change CSRF error message?

2010-07-14 Thread Sid Bachtiar
http://bluehorn.co.nz/2010/07/15/how-to-change-csrf-attack-message-in-symfony-1-2/

On Thu, Jul 15, 2010 at 11:25 AM, Sid Bachtiar sid.bacht...@gmail.com wrote:
 Never mind, I found the answer in
 http://www.symfony-project.org/more-with-symfony/1_4/en/14-Playing-with-Symfony-Config-Cache

 On Thu, Jul 15, 2010 at 10:40 AM, Sid Bachtiar sid.bacht...@gmail.com wrote:
 Hi,

 I would like to change the CSRF error message and someone (Kris W)
 pointed out that I should use template.filter_parameters event.

 Could Kris or someone please give me more clues?

 Thanks,

 Sid
 --
 Blue Horn Ltd - System Development
 http://bluehorn.co.nz




 --
 Blue Horn Ltd - System Development
 http://bluehorn.co.nz




-- 
Blue Horn Ltd - System Development
http://bluehorn.co.nz

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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


Re: [symfony-users] Re: why not host symfony1.4 on shared-hosting?

2010-05-29 Thread Sid Bachtiar
10 Euro or 10 USD? The site uses $ sign.

If it is USD $10, that's a good deal. But how long have you been with them?

On Sat, May 29, 2010 at 11:32 PM, Alexandru-Emil Lupu
gang.al...@gmail.com wrote:
 Well ... you can try a VPS for a start.

 I have a provider that gives me 10 E / month the smallest packet
 http://www.intovps.com/

 Alecs

 On Sat, May 29, 2010 at 2:29 PM, Sela Yair tzi...@gmail.com wrote:

 what is the cheapest i can get for a dedicated server?

 On 29 May 2010 14:20, comb sa...@gmx.net wrote:

 Thanks for your detailed answers pghotariu  rooster (Russ),

 I have a managed server for my business projects, but for a more or
 less private page I have a shared host, too. They use mod_php5 +
 chroot jails + open_basedir and no ssh. So this is ok with me. The
 mentioned performance issues seems to be not symfony-related.
 My deployment isn't critical, since it's a small page, with decent
 updates! :)

 Thank you!!


 On 29 Mai, 12:46, rooster (Russ) russmon...@gmail.com wrote:
  The biggest issue is security... You have a cache folder with 777
  permissions which anyone else on the same host can write to and
  execute arbitrary PHP code.
 
  Some shared hosting providers get round this by using chroot jails and
  a number of other tricks, but you need to make sure the one you are
  using also takes these measures.
 
  Try navigating to /home and seeing if you can list the other home
  folders... Then think about guessing /home/somewebsitename/cache/
  frontend/.../etc
 
  Also if the cache folders not 777 but are owned by the web user
  (normally www-data or something like that) then are the other users of
  the shared system using the same user? I could write a php script on
  my site which runs as the same user and uses file_put_contents to
  throw php files into your cache folder (if I can guess the path) since
  my script also runs as www-data.
 
  There are a bunch of posts about this stuff, have a look around - best
  to find a hosting provider that gives you a virtual server so you are
  isolated from the other users, or at least takes measures to protect
  you from the kind of issues above (by giving each user their own
  Apache user/process for example).
 
  Russ.
 
  On May 29, 9:46 am, comb sa...@gmx.net wrote:
 
   Hi!
 
   Obiously it takes some tweaks to run symfony 1.4 on a shared host,
   but
   what's wrong with it?
   One can add a .htaccess files to prevent unauthorized access for the
   hole symfony project folder, another one for the web/-directory to
   enable normal access there and then pointhttp://domain.comtothe
   web/-dir.
   Why not?
 
   The only thing I can imagine is that the uploads mostly have to be
   done by hand, but that's ok with me since it'll usually be a small
   project if it runs on a shared host.
 
 

 --
 If you want to report a vulnerability issue on symfony, please send it to
 security at symfony-project.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

 --
 If you want to report a vulnerability issue on symfony, please send it to
 security at symfony-project.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



 --
 Have a nice day!

 Alecs
 Certified ScrumMaster

 P.S. If you are on a list, please don't contact me privatelly, unless i have
 allowed to. Further messages will be ignored.

 There are no cannibals alive! I have ate the last one yesterday ...
 I am on web:  http://www.alecslupu.ro/
 I am on twitter: http://twitter.com/alecslupu
 I am on linkedIn: http://www.linkedin.com/in/alecslupu
 Tel: (+4)0722 621 280

 --
 If you want to report a vulnerability issue on symfony, please send it to
 security at symfony-project.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




-- 
Blue Horn Ltd - System Development
http://bluehorn.co.nz

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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 

[symfony-users] Doctrine documentation is gone??

2010-05-14 Thread Sid Bachtiar
Hi,

I can't seem to find Doctrine's documentation anymore. Anyone else
having the same problem?

-- 
Blue Horn Ltd - System Development
http://bluehorn.co.nz

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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


Re: [symfony-users] Doctrine documentation is gone??

2010-05-14 Thread Sid Bachtiar
I went to http://www.doctrine-project.org/

From there I could not get to any of the documentation ... but now I
just checked it and it seems to be ok (strange)

On Sat, May 15, 2010 at 11:29 AM, Jonathan Wage jonw...@gmail.com wrote:
 Hi,
 What URLs are you trying to access? The site URLs were restructured. I tried
 to route the old URLs but I may have missed some.
 - jon

 On Fri, May 14, 2010 at 6:53 PM, Sid Bachtiar sid.bacht...@gmail.com
 wrote:

 Hi,

 I can't seem to find Doctrine's documentation anymore. Anyone else
 having the same problem?

 --
 Blue Horn Ltd - System Development
 http://bluehorn.co.nz

 --
 If you want to report a vulnerability issue on symfony, please send it to
 security at symfony-project.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



 --
 Jonathan H. Wage (+1 415 992 5468)
 Open Source Software Developer  Evangelist
 sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org

 You should follow me on Twitter: http://www.twitter.com/jwage

 You can contact Jonathan about Doctrine, Symfony and Open-Source or for
 training, consulting, application development, or business related questions
 at jonathan.w...@sensio.com

 --
 If you want to report a vulnerability issue on symfony, please send it to
 security at symfony-project.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




-- 
Blue Horn Ltd - System Development
http://bluehorn.co.nz

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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] nahoMail, symfony 1.4, and swift

2010-05-02 Thread Sid Bachtiar
Hi,

Seems like the new version of swift (version 4?) included in symfony
1.4 (in lib/vendor) isn't compatible with nahoMail (due to radical
changes to swift).

How can I use an older version of swift instead? I tried placing an
older version of swift in the project lib folder, but symfony keeps
using the one included in the symfony/lib/vendor

Regards,

Sid
-- 
Blue Horn Ltd - System Development
http://bluehorn.co.nz

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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] How to send email?

2010-05-02 Thread Sid Bachtiar
Should be simple, but for the life of me, I just can't figure out how
to do this simple thing with Symfony 1.4 and the new version of swift
that comes with it.

-- 
Blue Horn Ltd - System Development
http://bluehorn.co.nz

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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: How to send email?

2010-05-02 Thread Sid Bachtiar
Never mind, it was old swift lying around in the project! I deleted it
and now I can execute the following codes to send email:

$mailer = $this-getMailer();
/* @var $mailer sfMailer */

$mailer-composeAndSend(
$form-getValue('email'),
sfConfig::get('app_site_inquiry_address'),
Message from the online contact form,
$body);

On Mon, May 3, 2010 at 11:58 AM, Sid Bachtiar sid.bacht...@gmail.com wrote:
 Should be simple, but for the life of me, I just can't figure out how
 to do this simple thing with Symfony 1.4 and the new version of swift
 that comes with it.

 --
 Blue Horn Ltd - System Development
 http://bluehorn.co.nz




-- 
Blue Horn Ltd - System Development
http://bluehorn.co.nz

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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] Symfony 1.2 how to make session never expires until browser is closed?

2010-03-25 Thread Sid Bachtiar
Hi all,

I couldn't seem to find how to do this.

Does anyone know how to set user timeout to never expires until the
browser window is closed (like PHP behavior)?

Symfony 1.2 + Propel

Cheers,

Sid
-- 
Blue Horn Ltd - System Development
http://bluehorn.co.nz

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


Re: [symfony-users] Credentials problem

2010-03-25 Thread Sid Bachtiar
Your security.yml needs to specify the required credentials, for example:

default:
  is_secure: on
  credentials: admin

Then don't forget to clear cache

On Thu, Mar 25, 2010 at 11:24 PM, wueb webmaster@gmail.com wrote:
 Hey

 I have credentials for each module i build.

 For example:

 # Module abc have the security.yml:
 all:
  credentials: 6

 But i can access my module abc even without the credential 6.


 The results of the hasCredential are strange too, because i always get
 1 from them, even if i remove the credential. Example:

 $this-addCredential(xpto);
 echo $this-hasCredential(xpto); // prints 1
 $this-removeCredential(xpto);
 echo $this-hasCredential(xpto); // prints 1


 What is happening?

 PS: My default security.yml have:

 default:
  is_secure: true

 --
 If you want to report a vulnerability issue on symfony, please send it to 
 security at symfony-project.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

 To unsubscribe from this group, send email to 
 symfony-users+unsubscribegooglegroups.com or reply to this email with the 
 words REMOVE ME as the subject.




-- 
Blue Horn Ltd - System Development
http://bluehorn.co.nz

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


Re: [symfony-users] Credentials problem

2010-03-25 Thread Sid Bachtiar
Another thing...

I think you confuse authentication and credential.

is_secure is only checking whether the user has logged in or not
(authentication), it doesn't check the credentials.

A user can still logged in (authenticated) without having any credential.

On Thu, Mar 25, 2010 at 11:26 PM, Sid Bachtiar sid.bacht...@gmail.com wrote:
 Your security.yml needs to specify the required credentials, for example:

 default:
  is_secure: on
  credentials: admin

 Then don't forget to clear cache

 On Thu, Mar 25, 2010 at 11:24 PM, wueb webmaster@gmail.com wrote:
 Hey

 I have credentials for each module i build.

 For example:

 # Module abc have the security.yml:
 all:
  credentials: 6

 But i can access my module abc even without the credential 6.


 The results of the hasCredential are strange too, because i always get
 1 from them, even if i remove the credential. Example:

 $this-addCredential(xpto);
 echo $this-hasCredential(xpto); // prints 1
 $this-removeCredential(xpto);
 echo $this-hasCredential(xpto); // prints 1


 What is happening?

 PS: My default security.yml have:

 default:
  is_secure: true

 --
 If you want to report a vulnerability issue on symfony, please send it to 
 security at symfony-project.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

 To unsubscribe from this group, send email to 
 symfony-users+unsubscribegooglegroups.com or reply to this email with the 
 words REMOVE ME as the subject.




 --
 Blue Horn Ltd - System Development
 http://bluehorn.co.nz




-- 
Blue Horn Ltd - System Development
http://bluehorn.co.nz

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


Re: [symfony-users] Re: Credentials problem

2010-03-25 Thread Sid Bachtiar
It should be 'default' I think, not 'all'.

On Thu, Mar 25, 2010 at 11:36 PM, wueb webmaster@gmail.com wrote:
 My security.yml on the application or inside the module? I already
 have.

 Right now they are like this:

 #application security.yml
 default:
  is_secure: on

 #module security.yml
 all:
  credentials: 6

 I try what you suggest and nothing happened unfortunally. I still can
 access module withouth credential 6.

 --
 If you want to report a vulnerability issue on symfony, please send it to 
 security at symfony-project.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

 To unsubscribe from this group, send email to 
 symfony-users+unsubscribegooglegroups.com or reply to this email with the 
 words REMOVE ME as the subject.




-- 
Blue Horn Ltd - System Development
http://bluehorn.co.nz

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


[symfony-users] Re: Symfony 1.2 how to make session never expires until browser is closed?

2010-03-25 Thread Sid Bachtiar
I've found a solution

http://bluehorn.co.nz/2010/03/26/how-to-make-symfony-session-to-never-timeout/

On Thu, Mar 25, 2010 at 10:01 PM, Sid Bachtiar sid.bacht...@gmail.com wrote:
 Hi all,

 I couldn't seem to find how to do this.

 Does anyone know how to set user timeout to never expires until the
 browser window is closed (like PHP behavior)?

 Symfony 1.2 + Propel

 Cheers,

 Sid
 --
 Blue Horn Ltd - System Development
 http://bluehorn.co.nz




-- 
Blue Horn Ltd - System Development
http://bluehorn.co.nz

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


Re: [symfony-users] how to create a copy of symfony app using a different database

2010-03-22 Thread Sid Bachtiar
execute: php symfony cc

On Tue, Mar 23, 2010 at 1:22 AM, Peter Peltonen
peter.pelto...@gmail.com wrote:
 A newbie question: how do I create a copy of symfony app using a
 different database? Here is what I tried:

 1) copied my symfony 1.2.12 application to another dir to make a copy of it.

 2) did a dump of the MySQL database used by the original symfony app
 and created a new db where I inserted the data from the dump

 3) For the new symfony application I changed the new database name in
 config/databases.yml

 4) Tried inserting data using a form in thew new app

 = Problem: the data was inserted in the original symfony app's db,
 not into the new one

 Best regards,
 Peter

 --
 If you want to report a vulnerability issue on symfony, please send it to 
 security at symfony-project.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

 To unsubscribe from this group, send email to 
 symfony-users+unsubscribegooglegroups.com or reply to this email with the 
 words REMOVE ME as the subject.




-- 
Blue Horn Ltd - System Development
http://bluehorn.co.nz

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


Re: [symfony-users] Payment Gateway and Paypal

2010-03-01 Thread Sid Bachtiar
There is a plugin, but I usually just rolled out my own with library
provided by Paypal.

On Tue, Mar 2, 2010 at 2:20 PM, Arthur Ccube arthurcc...@gmail.com wrote:
 Hi Guys,

 I am working on a e Commerce website which has payments via Visa and
 Payment.

 What is the common way to do it in symfony?

 Thanks a lot!
 Arthur

 --
 If you want to report a vulnerability issue on symfony, please send it to 
 security at symfony-project.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




-- 
Blue Horn Ltd - System Development
http://bluehorn.co.nz

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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


Re: [symfony-users] Form decorator

2010-02-23 Thread Sid Bachtiar
You attach your decorator class to your form, e.g.:

class yourForm extends sfForm
{
  function configure()
  {
/* configure your fields */

$decorator = new yourFormFormatter($this-widgetSchema);
$this-widgetSchema-addFormFormatter('custom', $decorator);
$this-widgetSchema-setFormFormatterName('custom');
  }
}

On Tue, Feb 23, 2010 at 8:55 PM, Gareth McCumskey gmccums...@gmail.com wrote:
 Just a question if I overwrite the formatRow method how do I
 return the newly formatted row to wherever

 eg

 public function formatRow($label, $field, $errors = array(), $help =
 '', $hiddenFields = null)
 {
  /*Do stuff to make $field from
  input maxlength=50 type=text name=test[first_name]
  id=test_first_name /
  into
  spaninput maxlength=50 type=text name=test[first_name]
  id=test_first_name /*/

  //Now what?
 }

 On Tue, Feb 23, 2010 at 9:43 AM, Sid Bachtiar sid.bacht...@gmail.com wrote:
 Actually I got very curious and did an experiment myself.Parameter
 $field turns out to be a string like:

 'input maxlength=50 type=text name=test[first_name]
 id=test_first_name /'

 So I guess the solution would be a little bit hacky, involving some
 regex to detect which field it is and give it a different format
 (e.g.: add span prefix on one field and append /span on the second
 field) :-\

 On Tue, Feb 23, 2010 at 8:23 PM, Sid Bachtiar sid.bacht...@gmail.com wrote:
 If you look in sfWidgetFormSchemaFormatter class, you could probably
 override method:

 public function formatRow($label, $field, $errors = array(), $help =
 '', $hiddenFields = null)

 detect the special field through the $field parameter and give it a
 different formatting.

 On Tue, Feb 23, 2010 at 8:21 PM, Sid Bachtiar sid.bacht...@gmail.com 
 wrote:
 Oh I just understood why you can't do it LOL sorry

 On Tue, Feb 23, 2010 at 8:20 PM, Sid Bachtiar sid.bacht...@gmail.com 
 wrote:
 Why can't you do something like this in template:

 ?php echo $form['not_special_1']-renderRow(); ?

 labelWe are special:/label
 span
  ?php echo $form['special_a']-render(); ?
  ?php echo $form['special_b']-render(); ?
 /span

 ?php echo $form['not_special_2']-renderRow(); ?

 On Tue, Feb 23, 2010 at 8:09 PM, Gareth McCumskey gmccums...@gmail.com 
 wrote:
 All I really want to do is add a span around two widgets
 (spanwidget1 /widget2 //span). I cannot do this in the
 template because the template is designed to display many different
 form types so the form class needs to define the exact structure of
 the form.

 On Tue, Feb 23, 2010 at 9:07 AM, Sid Bachtiar sid.bacht...@gmail.com 
 wrote:
 Don't know about the documentation. I had to look around myself to
 learn about it.

 Take a look at this example from my blog:
 http://bluehorn.co.nz/2009/08/31/symfony-12-sfform-formatter-to-add-stars-on-required-fields/

 On Tue, Feb 23, 2010 at 7:57 PM, Gareth McCumskey 
 gmccums...@gmail.com wrote:
 Hi guys,

 I have looked around for the documentation related to creating your
 own form decorators but the reference to it in the forms book for
 symfony 1.2 says look in Chapter 5 but there is no chapter 5 o.O

 Any pointers to where I could find the info would be appreciated.

 --
 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-us...@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.





 --
 Blue Horn Ltd - System Development
 http://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-us...@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.





 --
 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-us...@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.





 --
 Blue Horn Ltd - System Development
 http://bluehorn.co.nz




 --
 Blue Horn Ltd - System Development
 http://bluehorn.co.nz




 --
 Blue Horn Ltd - System Development
 http://bluehorn.co.nz




 --
 Blue Horn Ltd - System Development
 http://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-us...@googlegroups.com.
 To unsubscribe from this group, send email to 
 symfony-users

Re: [symfony-users] Form decorator

2010-02-23 Thread Sid Bachtiar
 and I know the names can cause some giggles but hey :P

LOL ... so ... any interesting website project lately? :P

Happy coding and bye for now.

On Tue, Feb 23, 2010 at 9:20 PM, Gareth McCumskey gmccums...@gmail.com wrote:
 Well just to conclude this, I saw an example on one of the symfony
 docs about overwriting the formatRow method.

 Firstly, my big thanks to you Sid as I would not have gotten this far
 without your help  the community again has come to the rescue.

 Now for anyone that may find this useful in future here is how it
 looks in the end:

 My form consists of some dynamic form fields created based on values
 sent in an array when the form is constructed:

 public function __construct($extra_inputs = array())
        {
                $this-extra_inputs = $extra_inputs;
                parent::__construct();
        }

 In addition I had to create my own custom widget which is essentially
 just an ajax link to an action that forwards the value of one input
 box to the action, adds that value to a session array, sends the
 session array to the form using the $extra_inputs parameter above and
 redisplays the form in the div with the new input box for that value
 added.

 So, my difficulty was that each new extra_input needed to use that
 ajax link widget again alongside it but would forward to a Remove
 action to remove that input from the session variable and hence from
 the form. What I needed was that each new dynamic extra_input and its
 associated Remove ajax link widget to be displayed one per line.

 My decorator class hence looks like such and I know the names can
 cause some giggles but hey :P :

 class mailAnalByRecip extends sfWidgetFormSchemaFormatter
 {
        protected
    $rowFormat = \n%error%\nspan class=\formRow\\nspan
 class=\formLabel\%label%/span\nspan
 class=\formField\%field%\n%help%/span/span\n%hidden_fields%,
    $helpFormat = 'span class=fieldHelp%help%/span',
    $errorRowFormat = span\n%errors%br //span\n,
    $errorListFormatInARow = ul%errors%/ul\n,
    $errorRowFormatInARow =  li class=\error\darr; %error%
 darr;/li\n,
    $namedErrorRowFormatInARow = li class=\error\darr; %error%
 darr;/li\n,
    $decoratorFormat = %content%;

        protected $fields_to_format = array();

        public function __construct(sfWidgetFormSchema $widgetSchema,
 $fields_to_format)
        {
                $this-fields_to_format = $fields_to_format;
                parent::__construct($widgetSchema);
        }

        public function formatRow($label, $field, $errors = array(), $help =
 '', $hiddenFields = null)
        {
                foreach ($this-fields_to_format as $field_name)
                {
                        if (strpos($field, $field_name) !== false  
 strpos($field,
 'type=text') !== false)
                        {
                                $field = 'span class=field_row'.$field;
                        }
                        else if (strpos($field, $field_name) !== false  
 strpos($field,
 'a') !== false)
                        {
                                $field = $field.'/span';
                        }
                }

                $row = parent::formatRow($label, $field, $errors, $help, 
 $hiddenFields);

                return $row;
        }
 }


 And in my form class at the very end of the configure() method:

 $decorator = new mailAnalByRecip($this-widgetSchema, $this-extra_inputs);
   $this-widgetSchema-addFormFormatter('custom', $decorator);
   $this-widgetSchema-setFormFormatterName('custom');

 So there we go. A form class that dynamically creates widgets based on
 values in an array, as well as dynamically creating a custom ajax link
 widget and keeping the input and its ajax link widget associated
 visually using a custom form decorator class to add spans before and
 after the two widgets.

 WHEW! That was one HELLUVA learning experience LOL

 On Tue, Feb 23, 2010 at 10:09 AM, Sid Bachtiar sid.bacht...@gmail.com wrote:
 You attach your decorator class to your form, e.g.:

 class yourForm extends sfForm
 {
  function configure()
  {
    /* configure your fields */

    $decorator = new yourFormFormatter($this-widgetSchema);
    $this-widgetSchema-addFormFormatter('custom', $decorator);
    $this-widgetSchema-setFormFormatterName('custom');
  }
 }

 On Tue, Feb 23, 2010 at 8:55 PM, Gareth McCumskey gmccums...@gmail.com 
 wrote:
 Just a question if I overwrite the formatRow method how do I
 return the newly formatted row to wherever

 eg

 public function formatRow($label, $field, $errors = array(), $help =
 '', $hiddenFields = null)
 {
  /*Do stuff to make $field from
  input maxlength=50 type=text name=test[first_name]
  id=test_first_name /
  into
  spaninput maxlength=50 type=text name=test[first_name]
  id=test_first_name /*/

  //Now what?
 }

 On Tue, Feb 23, 2010 at 9:43 AM, Sid Bachtiar sid.bacht...@gmail.com 
 wrote:
 Actually I got very curious and did an experiment myself.Parameter
 $field turns out

Re: [symfony-users] Form decorator

2010-02-22 Thread Sid Bachtiar
Don't know about the documentation. I had to look around myself to
learn about it.

Take a look at this example from my blog:
http://bluehorn.co.nz/2009/08/31/symfony-12-sfform-formatter-to-add-stars-on-required-fields/

On Tue, Feb 23, 2010 at 7:57 PM, Gareth McCumskey gmccums...@gmail.com wrote:
 Hi guys,

 I have looked around for the documentation related to creating your
 own form decorators but the reference to it in the forms book for
 symfony 1.2 says look in Chapter 5 but there is no chapter 5 o.O

 Any pointers to where I could find the info would be appreciated.

 --
 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-us...@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.





-- 
Blue Horn Ltd - System Development
http://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-us...@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.



Re: [symfony-users] Form decorator

2010-02-22 Thread Sid Bachtiar
Why can't you do something like this in template:

?php echo $form['not_special_1']-renderRow(); ?

labelWe are special:/label
span
  ?php echo $form['special_a']-render(); ?
  ?php echo $form['special_b']-render(); ?
/span

?php echo $form['not_special_2']-renderRow(); ?

On Tue, Feb 23, 2010 at 8:09 PM, Gareth McCumskey gmccums...@gmail.com wrote:
 All I really want to do is add a span around two widgets
 (spanwidget1 /widget2 //span). I cannot do this in the
 template because the template is designed to display many different
 form types so the form class needs to define the exact structure of
 the form.

 On Tue, Feb 23, 2010 at 9:07 AM, Sid Bachtiar sid.bacht...@gmail.com wrote:
 Don't know about the documentation. I had to look around myself to
 learn about it.

 Take a look at this example from my blog:
 http://bluehorn.co.nz/2009/08/31/symfony-12-sfform-formatter-to-add-stars-on-required-fields/

 On Tue, Feb 23, 2010 at 7:57 PM, Gareth McCumskey gmccums...@gmail.com 
 wrote:
 Hi guys,

 I have looked around for the documentation related to creating your
 own form decorators but the reference to it in the forms book for
 symfony 1.2 says look in Chapter 5 but there is no chapter 5 o.O

 Any pointers to where I could find the info would be appreciated.

 --
 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-us...@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.





 --
 Blue Horn Ltd - System Development
 http://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-us...@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.





 --
 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-us...@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.





-- 
Blue Horn Ltd - System Development
http://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-us...@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.



Re: [symfony-users] Form decorator

2010-02-22 Thread Sid Bachtiar
Oh I just understood why you can't do it LOL sorry

On Tue, Feb 23, 2010 at 8:20 PM, Sid Bachtiar sid.bacht...@gmail.com wrote:
 Why can't you do something like this in template:

 ?php echo $form['not_special_1']-renderRow(); ?

 labelWe are special:/label
 span
  ?php echo $form['special_a']-render(); ?
  ?php echo $form['special_b']-render(); ?
 /span

 ?php echo $form['not_special_2']-renderRow(); ?

 On Tue, Feb 23, 2010 at 8:09 PM, Gareth McCumskey gmccums...@gmail.com 
 wrote:
 All I really want to do is add a span around two widgets
 (spanwidget1 /widget2 //span). I cannot do this in the
 template because the template is designed to display many different
 form types so the form class needs to define the exact structure of
 the form.

 On Tue, Feb 23, 2010 at 9:07 AM, Sid Bachtiar sid.bacht...@gmail.com wrote:
 Don't know about the documentation. I had to look around myself to
 learn about it.

 Take a look at this example from my blog:
 http://bluehorn.co.nz/2009/08/31/symfony-12-sfform-formatter-to-add-stars-on-required-fields/

 On Tue, Feb 23, 2010 at 7:57 PM, Gareth McCumskey gmccums...@gmail.com 
 wrote:
 Hi guys,

 I have looked around for the documentation related to creating your
 own form decorators but the reference to it in the forms book for
 symfony 1.2 says look in Chapter 5 but there is no chapter 5 o.O

 Any pointers to where I could find the info would be appreciated.

 --
 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-us...@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.





 --
 Blue Horn Ltd - System Development
 http://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-us...@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.





 --
 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-us...@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.





 --
 Blue Horn Ltd - System Development
 http://bluehorn.co.nz




-- 
Blue Horn Ltd - System Development
http://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-us...@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.



Re: [symfony-users] Form decorator

2010-02-22 Thread Sid Bachtiar
If you look in sfWidgetFormSchemaFormatter class, you could probably
override method:

public function formatRow($label, $field, $errors = array(), $help =
'', $hiddenFields = null)

detect the special field through the $field parameter and give it a
different formatting.

On Tue, Feb 23, 2010 at 8:21 PM, Sid Bachtiar sid.bacht...@gmail.com wrote:
 Oh I just understood why you can't do it LOL sorry

 On Tue, Feb 23, 2010 at 8:20 PM, Sid Bachtiar sid.bacht...@gmail.com wrote:
 Why can't you do something like this in template:

 ?php echo $form['not_special_1']-renderRow(); ?

 labelWe are special:/label
 span
  ?php echo $form['special_a']-render(); ?
  ?php echo $form['special_b']-render(); ?
 /span

 ?php echo $form['not_special_2']-renderRow(); ?

 On Tue, Feb 23, 2010 at 8:09 PM, Gareth McCumskey gmccums...@gmail.com 
 wrote:
 All I really want to do is add a span around two widgets
 (spanwidget1 /widget2 //span). I cannot do this in the
 template because the template is designed to display many different
 form types so the form class needs to define the exact structure of
 the form.

 On Tue, Feb 23, 2010 at 9:07 AM, Sid Bachtiar sid.bacht...@gmail.com 
 wrote:
 Don't know about the documentation. I had to look around myself to
 learn about it.

 Take a look at this example from my blog:
 http://bluehorn.co.nz/2009/08/31/symfony-12-sfform-formatter-to-add-stars-on-required-fields/

 On Tue, Feb 23, 2010 at 7:57 PM, Gareth McCumskey gmccums...@gmail.com 
 wrote:
 Hi guys,

 I have looked around for the documentation related to creating your
 own form decorators but the reference to it in the forms book for
 symfony 1.2 says look in Chapter 5 but there is no chapter 5 o.O

 Any pointers to where I could find the info would be appreciated.

 --
 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-us...@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.





 --
 Blue Horn Ltd - System Development
 http://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-us...@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.





 --
 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-us...@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.





 --
 Blue Horn Ltd - System Development
 http://bluehorn.co.nz




 --
 Blue Horn Ltd - System Development
 http://bluehorn.co.nz




-- 
Blue Horn Ltd - System Development
http://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-us...@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.



Re: [symfony-users] Form decorator

2010-02-22 Thread Sid Bachtiar
Actually I got very curious and did an experiment myself.Parameter
$field turns out to be a string like:

'input maxlength=50 type=text name=test[first_name]
id=test_first_name /'

So I guess the solution would be a little bit hacky, involving some
regex to detect which field it is and give it a different format
(e.g.: add span prefix on one field and append /span on the second
field) :-\

On Tue, Feb 23, 2010 at 8:23 PM, Sid Bachtiar sid.bacht...@gmail.com wrote:
 If you look in sfWidgetFormSchemaFormatter class, you could probably
 override method:

 public function formatRow($label, $field, $errors = array(), $help =
 '', $hiddenFields = null)

 detect the special field through the $field parameter and give it a
 different formatting.

 On Tue, Feb 23, 2010 at 8:21 PM, Sid Bachtiar sid.bacht...@gmail.com wrote:
 Oh I just understood why you can't do it LOL sorry

 On Tue, Feb 23, 2010 at 8:20 PM, Sid Bachtiar sid.bacht...@gmail.com wrote:
 Why can't you do something like this in template:

 ?php echo $form['not_special_1']-renderRow(); ?

 labelWe are special:/label
 span
  ?php echo $form['special_a']-render(); ?
  ?php echo $form['special_b']-render(); ?
 /span

 ?php echo $form['not_special_2']-renderRow(); ?

 On Tue, Feb 23, 2010 at 8:09 PM, Gareth McCumskey gmccums...@gmail.com 
 wrote:
 All I really want to do is add a span around two widgets
 (spanwidget1 /widget2 //span). I cannot do this in the
 template because the template is designed to display many different
 form types so the form class needs to define the exact structure of
 the form.

 On Tue, Feb 23, 2010 at 9:07 AM, Sid Bachtiar sid.bacht...@gmail.com 
 wrote:
 Don't know about the documentation. I had to look around myself to
 learn about it.

 Take a look at this example from my blog:
 http://bluehorn.co.nz/2009/08/31/symfony-12-sfform-formatter-to-add-stars-on-required-fields/

 On Tue, Feb 23, 2010 at 7:57 PM, Gareth McCumskey gmccums...@gmail.com 
 wrote:
 Hi guys,

 I have looked around for the documentation related to creating your
 own form decorators but the reference to it in the forms book for
 symfony 1.2 says look in Chapter 5 but there is no chapter 5 o.O

 Any pointers to where I could find the info would be appreciated.

 --
 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-us...@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.





 --
 Blue Horn Ltd - System Development
 http://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-us...@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.





 --
 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-us...@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.





 --
 Blue Horn Ltd - System Development
 http://bluehorn.co.nz




 --
 Blue Horn Ltd - System Development
 http://bluehorn.co.nz




 --
 Blue Horn Ltd - System Development
 http://bluehorn.co.nz




-- 
Blue Horn Ltd - System Development
http://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-us...@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.



Re: [symfony-users] CSRF attack detected when using sfGuardDoctrinePlugin

2010-02-15 Thread Sid Bachtiar
You might want to try this

1. Login
2. Logout
3. Open login page
4. Leave the browser alone until the session expired (e.g.: default is
30 minutes I think, so leave it for an hour to be sure)
5. Try to login

I think this is a problem with CSRF and session. I actually disable
CSRF protection on login form because of this.

On Tue, Feb 16, 2010 at 12:57 AM, jean-christophe zulian
jean-christophe.zul...@liip.ch wrote:
 Hi Michal,

 You actually may be right, this problem might be related to the browser or 
 session information. For some reason we haven't be able to reproduce this 
 problem since this morning and we are doing exactly the same thing as before 
 (login, logout and login again).

 Cheers,
 Jean-christophe


 kOn Fri, 12 Feb 2010 19:48:19 +0100
 Michał Piotrowski mkkp...@gmail.com wrote:

 Hi,

 2010/2/11 jean-christophe zulian jean-christophe.zul...@liip.ch:
  Hi list,
 
  After setting up the sfGuardDoctrine plugin for our project we
  created a login page in the same fashion as it is done on the
  jobeet tutorial.
 
  When coming on the login page for the first time and entering
  username/password the login procedure works fine. If we logout and
  enter the username/password again we get a 'CSRF attack' message
  displayed above the form. This message will be displayed until we
  refresh the page.
 
  We have tried to investigate a bit on why this was happening but
  couldn't figure it out.
 
  Would anybody have any idea about why this is happening?
 
  Many thanks,
  Jean-christophe
 

 I have seen a similar problem with Opera browser. In my case it seems
 to be browser related.

 Path is very simple - login, browse some pages, logout, login. No
 problems on Firefox, Chrome, IE8. Warning about CSRF attack shows only
 in Opera.

 Sigh.

 Regards,
 Michal



 --




-- 
Blue Horn Ltd - System Development
http://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-us...@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.



Re: [symfony-users] Able to rename a project?

2010-02-15 Thread Sid Bachtiar
I think you can just rename the folder, but the safest thing to do is
to do text search of any occurrence of your project name in all files
in the project.

On Tue, Feb 16, 2010 at 10:21 AM, Darren884 darren...@gmail.com wrote:
 Is it possible to rename a Symfony project? If so is it easy?

 --
 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@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.





-- 
Blue Horn Ltd - System Development
http://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-us...@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.



Re: [symfony-users] sfValidatorAnd ignores 'required' settings of its components

2010-02-09 Thread Sid Bachtiar
Put the required option on the sfValidatorAnd, e.g.:

'title' = new sfValidatorAnd(
array(
  new sfValidatorCallback(array('callback' = array($this, 'stripTags'))),
  new sfValidatorString(array('max_length' = 50))
)
, array('required' = false)
)

On Wed, Feb 10, 2010 at 1:33 AM, Hong Kil Dong fetfru...@gmail.com wrote:
 I face with such a problem - sfValidatorAnd completely ignores
 'required' settings of its components.

 As an examle, for such a field:

 'title' = new sfWidgetFormInput()
 ...
 'title' = new sfValidatorAnd(
 array(
 new sfValidatorCallback(array('required' = false, 'callback' =
 array($this, 'stripTags'))),
 new sfValidatorString(array('required' = false, 'max_length' = 50))
 ))

 it generates Required. validation error. How can I get rid of this
 error ?

 --
 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@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.





-- 
Blue Horn Ltd - System Development
http://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-us...@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] sfShop demo?

2010-02-09 Thread Sid Bachtiar
Has anyone used sfShop in their project? Any live site?

-- 
Blue Horn Ltd - System Development
http://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-us...@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.



Re: [symfony-users] weird ness

2010-02-09 Thread Sid Bachtiar
symfony cc?

On Wed, Feb 10, 2010 at 4:09 AM, erikms erik.stok...@gmail.com wrote:
 Hi all,
 I am developing an application in symphony 1.2
 the schema has a table named Orders, that has a 1-many relation to
 the table Products.
 This always worked.
 I can see the definition in the lib/model/base/Orders.class.php
 But all of a sudden my pages fail with the error
 Unknown method Orders-getProduct()

 First this happened in the dev environment., I did a lot of things,
 then suddenly it worked again... in dev
 Now I have it on the production server, and nothing seems to work


 permissions? did that
 check code? like 10 times, but maybe not in the right place (HELP?)
 trashed all on the server, complete reupload? no difference
 any ideas? anyone? please? completely stumped here
 -Erik

 --
 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@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.





-- 
Blue Horn Ltd - System Development
http://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-us...@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.



Re: [symfony-users] AJAX Helpers

2010-02-08 Thread Sid Bachtiar
Learn to use jQuery! Seriously, it's very easy to replace those
functions with plain jQuery.

On Tue, Feb 9, 2010 at 8:20 PM, DEEPAK BHATIA toreachdee...@gmail.com wrote:
 Hi,

 It seems link_to_remote and form_remote_tag has been deprectaed in Symfony
 1.4. How do we achieve this functionality in Symfony 1.4.

 The Jobeet tutorial for 1.4 discusses briefly about AJAX.

 Thanks in advance.

 Regards

 Deepak Bhatia

 --
 You received this message because you are subscribed to the Google Groups
 symfony users group.
 To post to this group, send email to symfony-us...@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.




-- 
Blue Horn Ltd - System Development
http://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-us...@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.



Re: [symfony-users] Route making automatic database calls

2010-02-07 Thread Sid Bachtiar
Could it be that there's code that is executed to make sure the ids
are valid ids?

On Mon, Feb 8, 2010 at 1:33 PM, Eno symb...@gmail.com wrote:
 On Sun, 7 Feb 2010, HiDDeN wrote:

 I have this route:

 product:
   url:     /:slug-:id.html
   param:   { module: info, action: index }
   options: { model: Product, type: object, segment_separators: ['/',
 '.', '-'] }

 And I'm using this link_to inside a foreach (it's a list of products
 urls):

 ?php echo link_to($product['title'], @product?slug={$product['slug']}
 id={$product['id']}) ?

 My list contains 50 products, and so there are 50 calls to the
 database to retrieve each product. I don't know why... because I just
 want to generate urls.

 If you run the app in dev mode you should be able to click on the debig
 toolbar and see the exact queries. Can you show the queries? Does your
 product schema include the slug field?



 --


 --
 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@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.





-- 
Blue Horn Ltd - System Development
http://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-us...@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.



Re: [symfony-users] Routing Question

2010-02-05 Thread Sid Bachtiar
Routing does not need table and model, it refers to module and action.

For example for url www.mywebsite.com/welcome, in your routing.yml
you would have something like:

welcome:
  url: /welcome
  param: { module: default, action: welcome }



On Sat, Feb 6, 2010 at 5:21 PM, Shawn electricbonf...@gmail.com wrote:
 I am trying to create a portfolio website and have a few questions
 about routing.
 On this site there will be 3 pages, Welcome, Projects, Contact. The
 Projects page will reference the projects table and models. I am
 cabable of creating the routing for this, however, The welcome and
 contact pages will not reference any model or table. I am confused as
 to how to go about create static pages and their routing?

 Any Suggestions?

 Thanks,
 Shawn

 --
 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@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.





-- 
Blue Horn Ltd - System Development
http://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-us...@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.



Re: [symfony-users] MVC - where to put complex application code in symfony

2010-02-01 Thread Sid Bachtiar
You could always create your own business logic classes and call them
from controller.

On Tue, Feb 2, 2010 at 2:46 AM, Tom Ptacnik to...@tomor.cz wrote:
 Hi,

 I want to ask you where you put complex application code when
 developing with symfony (some bigger applications).

 When I don't develope with symfony faramework I've got this tiers:

 - Model classes (only beans - attributes and getters setters, this
 class doesn't do anything by itself)
 - DAO classes - store Models into database, creating models from
 database ( add(), edit(), delete(), list(), )
 - Application classes - application code - the logic of the
 application which isn't suitable (too big/complicated, or wanted to be
 reused) for controllers
   - what to do when deleting object (e.g. I want to send an email
 before, and delete two images), adding objects...
   - application of user restrictions while accesing to the objects -
 using DAO classes for accesing into database
   - many methods names are same as those in DAO classes - insert(),
 edit(), delete()..., but many of them do much more logic before
 calling methods from DAO class
 - Controllers - they create an application logic - call the methods of
 the Application classes and send some objects and variables into
 teplates (controllers call only Application classes, never DAO classes
 directly)
 - Templates (classic templates)

 So it's:  Templates - Controllers - Application classes - DAO , and
 this all tiers use a Model objects


 In symfony it's:  Templates - Controllers - Model(objects and table
 classes)

 If I have a simple application it's ok to put all app code into the
 Models, but if I want to create a little bigger application I'm afraid
 of too fat Models ...

 Where do you store more complicated application logic? Do you have it
 all in the 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-us...@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.





-- 
Blue Horn Ltd - System Development
http://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-us...@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] sfSuperCache for Symfony 1.2?

2010-01-30 Thread Sid Bachtiar
Hi,

Any reason there is no release of this plugin for Symfony 1.2? Is the
one for 1.3 compatible with Symfony 1.2?

Thanks,
Sid
-- 
Blue Horn Ltd - System Development
http://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-us...@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] How to disable sfWebDebug in dev environment?

2010-01-14 Thread Sid Bachtiar
Hi,

Can I run the website in 'dev' without sfWebDebug? I've set debug to
false in the index.php but it's still there.

-- 
Blue Horn Ltd - System Development
http://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-us...@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.




Re: [symfony-users] Offbeat: open source vs closed source technologies

2010-01-09 Thread Sid Bachtiar
But you still have a chance with open source because the source is
available. With closed source, if the company decided to not continue
the product or not fix a bug, then that's the end of it.

Another advantage is the licensing. Most open source comes with
generic open source licensing that everyone understands. With closed
source, unless you have a lawyer, you have no chance in understanding
the full extent of what you agreeing when you use the product. This is
a big deal for small to medium companies.

Open source with premium support is the way to go, because you get the
best of both worlds. You get open source product, and you get
commercial support.

On Sun, Jan 10, 2010 at 1:14 AM, Lee Bolding l...@leesbian.net wrote:

 On 9 Jan 2010, at 03:32, Parijat Kalia wrote:

 I like the DIY for a bug in open source vs a dead end to a bug in closed 
 source as a really solid example.

 Can you give a more concrete example? yes, theoretically that's correct - but 
 in the PHP world, code isn't compiled.

 If you've paid for custom development, you should also receive the source 
 code for anything that is compiled.

 How many of you would have the ability to fix a Linux kernel bug if you found 
 one?

 How many people saw the critical bugs with PHP 5.2.7, and rather than fix 
 them themselves, waited for the next release?

 Yes, these bug fixes can be made - but just because the source is available, 
 that doesn't mean you have the ability to, or will pay for somebody else to 
 fix them.

 Have we seen any bugfixes to PHP4 after PHP 4.4.9?

 Your point is valid, but only under certain circumstances - only where the 
 end result is a compiled product, and the source is not available. And it's 
 only then ratified when you also have the ability to fix the bug - if you 
 don't, it makes no difference as to the availability of the source.




 --
 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@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.







-- 
Blue Horn Ltd - System Development
http://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-us...@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.




Re: [symfony-users] Offbeat: open source vs closed source technologies

2010-01-08 Thread Sid Bachtiar
 If your server goes
 bump in the night, who you gonna call?

 We have our own support team to call :-)

 Yes, but a salaried employee is more expensive than raising a ticket on a 
 case-by-case basis with the likes of Zend (or buying a support contract to 
 begin with)

Seriously, you'd call Zend/Microsoft in the middle of the night to fix
your server that goes bump?

On Sat, Jan 9, 2010 at 3:20 AM, Lee Bolding l...@leesbian.net wrote:

 On 8 Jan 2010, at 13:43, Eno wrote:

 On Fri, 8 Jan 2010, Lee Bolding wrote:

 The whole IIS/windows server licensing issue is also beginning to
 disappear - if you want a well supported, enterprise grade, stable and
 scalable PHP environment, you'll likely want Zend Server - which costs
 around the same as a Windows Server license. Apache, lighttp, nginx
 etc are all free, but who actually supports them? If your server goes
 bump in the night, who you gonna call?

 We have our own support team to call :-)

 Yes, but a salaried employee is more expensive than raising a ticket on a 
 case-by-case basis with the likes of Zend (or buying a support contract to 
 begin with)
 --
 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@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.







-- 
Blue Horn Ltd - System Development
http://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-us...@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.




Re: [symfony-users] Offbeat: open source vs closed source technologies

2010-01-08 Thread Sid Bachtiar
And are you talking about your real experience or you're just hypothesizing?

On Sat, Jan 9, 2010 at 3:51 AM, Lee Bolding l...@leesbian.net wrote:

 On 8 Jan 2010, at 14:40, Sid Bachtiar wrote:

 If your server goes
 bump in the night, who you gonna call?

 We have our own support team to call :-)

 Yes, but a salaried employee is more expensive than raising a ticket on a 
 case-by-case basis with the likes of Zend (or buying a support contract to 
 begin with)

 Seriously, you'd call Zend/Microsoft in the middle of the night to fix
 your server that goes bump?

 Obviously, try a reboot or whatever first - the response time of even an hour 
 makes it worth trying basic stuff before calling them, but if it's looking 
 like something more serious, then yes.

 Besides, with a support contract that says I can (and not get charged extra 
 for it) why the hell wouldn't I?

 Spending 10's of thousands of dollars on a salaried employee to do that, when 
 Zend will already do it is crazy. Zend have employees all over the world, so 
 it doesn't matter what time of day it is. Can you guarantee your SysAdmin 
 will even wake up and answer the phone? or won't be out drinking or something 
 else?

 As I said before - risk register. Reduce the risk whenever you can (this is 
 why we also remove code whenever we can - less support risk, less risk of 
 bugs etc), this approach usually doesn't cost any extra - it's just a shift 
 in mentality.
 --
 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@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.







-- 
Blue Horn Ltd - System Development
http://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-us...@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.




Re: [symfony-users] is anyone else having trouble with url_for()?

2010-01-04 Thread Sid Bachtiar
Could be the dot in URL issue?
http://bluehorn.co.nz/2008/12/04/how-to-handle-dot-in-symfony-url/

On Tue, Jan 5, 2010 at 8:44 AM, lawrence lawrence.krub...@gmail.com wrote:

 We are having a serious problem with url_for() on our site. Sometimes
 it does not correctly render the HTML. I saw it myself, but only in
 Google Chrome. But then our customers began reporting it in FireFox:

 --

 I noticed it happening a few times in various locations, on the top
 experts “+” bit and under the sponsor . When I’ve just looked the
 following has appeared on the front page:

    ?
 ui=2view=attth=1257035cb4bc9c21attid=0.1disp=attdrealattid=ii_1257035cb4bc9c21zw

    I’ve attached the ‘view source’ of that page. I haven’t been
 through it but thought it may help you track the error down.

 --

 This is a very intermittent problem - if you hit refresh it will
 disappear.

 I believe the problem is also true of all the form rendering widgets.
 A customer just tried to pay, via the form that sends them to PayPal,
 and they ran into this error:

 We cannot process this transaction because there is a problem with
 the PayPal email address supplied by the seller. Please contact the
 seller to resolve the problem. If this payment is for an eBay listing,
 you can contact the seller via the Ask Seller a Question link on the
 listing page. When you have the correct email address, payment can be
 made at www.paypal.com.

 I exchanged email with the customer and they re-described the same
 problem that other customers have complained of.

 As I say, the problem is very intermittent. A true heisenbug. If you
 look at the site, you probably won't see anything wrong:

 http://www.wpquestions.com/

 But enough customers have complained that this has become a serious
 problem for us.

 Not sure what to do. I plan to tear out every use of url_for() and
 simply hardcode the URLs, but I can't get rid of the form widgets. At
 the very least, I need to populate forms with whatever values are
 appropriate to the circumstances.


 Is anyone else having this problem?

 --

 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@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.






-- 
Blue Horn Ltd - System Development
http://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-us...@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.




Re: [symfony-users] Error message format

2009-12-30 Thread Sid Bachtiar
I just tried it and it works really well! Thank you! :)

On Wed, Dec 30, 2009 at 10:35 PM, Alexandru-Emil Lupu
gang.al...@gmail.com wrote:
 in my Form class object i ave added :



  public function getErrors($v = '')
  {
    foreach ($this-getErrorSchema() as $field=$error )
    {
      foreach ($error-getErrors() as $currentError)
      {
        $v .= 'li'.sprintf(In the quot;%squot; tab you have an
 error:br strong%s/strong, $field ,
 $currentError-getMessage()).'/li';
      }
    }
    return $v;
  }

 After that, in my view i have added :

    ?php if ($form-hasErrors()):?
    div id=contact_form_errors
      ul?php echo $form-getErrors()?/ul
    /div
    ?php endif;?

 As my implementation has different tabs, your output (copy pasted from me)
 will output you some error messages like:

 In the Contact tab you have an error: Name: required

 Alecs

 On Wed, Dec 30, 2009 at 11:02 AM, Alexandru-Emil Lupu gang.al...@gmail.com
 wrote:
 I have done something like that. I will post my solution later today, as i
 haven't yet start my computer
 Alecs

 sent via htc magic

 On Dec 30, 2009 1:37 AM, Sid Bachtiar sid.bacht...@gmail.com wrote:

 Hi all,

 I embedded a form inside another form, and I try to print errors (of
 all the forms combined) like this in the template:


                  ?php foreach ($form-getErrorSchema()-getErrors()
 as $error): ?
                    *?php echo $error-getMessage(); ?br/
                  ?php endforeach; ?

 It is able to print all the errors as expected so that's good. But for
 the embedded form fields, the required error message always show:

 *0 [Reply to Sid is missing.]

 Instead of just:

 * Reply to Sid is missing

 The 0 is the field name. I want to get rid of it (and the brackets)
 and tried many ways without success.

 Does anyone know how to just print the error message without the field
 name and the brackets??

 Cheers,

 Sid
 --
 Blue Horn Ltd - System Development
 http://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-us...@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.






 --
 Have a nice day!
 Alecs

 As programmers create bigger  better idiot proof programs, so the universe
 creates bigger  better idiots!
 I am on web:  http://www.alecslupu.ro/
 I am on twitter: http://twitter.com/alecslupu
 I am on linkedIn: http://www.linkedin.com/in/alecslupu
 Tel: (+4)0748.543.798


 --

 You received this message because you are subscribed to the Google Groups
 symfony users group.
 To post to this group, send email to symfony-us...@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.




-- 
Blue Horn Ltd - System Development
http://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-us...@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] Error message format

2009-12-29 Thread Sid Bachtiar
Hi all,

I embedded a form inside another form, and I try to print errors (of
all the forms combined) like this in the template:


  ?php foreach ($form-getErrorSchema()-getErrors()
as $error): ?
*?php echo $error-getMessage(); ?br/
  ?php endforeach; ?

It is able to print all the errors as expected so that's good. But for
the embedded form fields, the required error message always show:

*0 [Reply to Sid is missing.]

Instead of just:

* Reply to Sid is missing

The 0 is the field name. I want to get rid of it (and the brackets)
and tried many ways without success.

Does anyone know how to just print the error message without the field
name and the brackets??

Cheers,

Sid
-- 
Blue Horn Ltd - System Development
http://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-us...@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.




Re: [symfony-users] Bonjour - nouvel utilisateur a un probleme 'unable to write cache file'

2009-11-19 Thread Sid Bachtiar
Hi Malcolm,

Nice to meet you :D

Some of us could probably help if we could speak French

2009/11/19 Malcolm malkaz...@gmail.com:
 Bonjour a tous!

 Avant que vous ne me sautiez dessus - le probleme est un peu plus
 complexe qu'au premier regard.

 Je dois travailler sur un projet existant, sous Symfony 1.021.
 J'ai acquis la le projet du SVN.  Etant sous Mac os, et mon disque dur
 etant formate en case-insensitive, j'ai du monter un disk image
 formatte en case sensitive et etablir le projet la dessus pour que le
 svn checkout puisse reussir.

 J'ai verifier les permissions des dossier cache et log - ils sont
 777.  Je n'arrive pas a determiner pourquoi je continue a obtenir
 l'erreur:

 [sfCacheException]
 Unable to write cache file /Volumes/devImage/bubadub/cache/frontend/
 dev/config/config_config_handlers.yml.php.
 stack trace

    * at ()
      in SF_ROOT_DIR/lib/symfony/cache/sfFileCache.class.php line
 538 ...
             535.
             536.     if (!$fp = @fopen($tmpFile, 'wb'))
             537.     {
             538.       throw new sfCacheException(sprintf('Unable to
 write cache file %s.', $path.$file));
             539.     }
             540.
             541.     if ($this-readControl)

 -

 D'autres infos qui peuvent vous etre utiles: j'ai voulu tenter le
 tutorial Jobeet, sous Symfony 1.2, et j'arrive a servir le virtual
 host sans problemes, sans erreurs.
 De meme pour un autre projet installe avec symfony 1.2.

 Autre detail, quant je vais dans le dossier immediatement au dessus de
 la ou syfony tente d'ecrire le fichier /Volumes/devImage/bubadub/cache/
 frontend/dev/config/config_config_handlers.yml.php, j'y trouve ce qui
 ressemble a des fichiers temporaires nommes:

 config_config_handlers.yml.php5FLkgi
 config_config_handlers.yml.phphLeNYq

 etc

 a chaque tentative, un nouveau fichier temporaire s'ecrit.

 Je serai bien content de savoir ce qui freine mon progres, ici!

 Merci d'avance et au plaisir de decouvrir plus de symfony!

 Malcolm

 --

 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/symfony-users?hl=.






-- 
Blue Horn Ltd - System Development
http://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-us...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




Re: [symfony-users] Not quite symfony but very related (and cool)

2009-11-19 Thread Sid Bachtiar
Hahaha, very nice ... thanks for the link

On Fri, Nov 20, 2009 at 1:31 PM, a...@speedypin.com a...@speedypin.com wrote:
 http://www.youtube.com/watch?v=a0qMe7Z3EYgfeature=player_embeddedaia=true

 Dudes pretty cool, very funny, good info presented well/authentic.

 I just wanted to share, hopefully all Symfony developers are upper
 crust developers of the industry so may find this worth a view. (I
 certainly like it and I am a Symfony developer)

 This is a troll disclamer!: Trolls don't tell me this isn't the right
 google group to post this, as I already acknowledged that in my
 subject, (give me a little freedom, )

 Sombody should pay this guy (just like somebody should be paying
 Sensio Labs for $ymfony).

 --

 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/symfony-users?hl=.






-- 
Blue Horn Ltd - System Development
http://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-us...@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=.




[symfony-users] Re: How to declare an array of input field with sfForm?

2009-11-16 Thread Sid Bachtiar

Hi,

Thanks for all the responses.

In the end I use embedForm :)

On Tue, Nov 17, 2009 at 7:45 AM, Jesse B. Hannah je...@jbhannah.net wrote:

 One way to do this is with embedded forms. A good example is available
 at http://trac.symfony-project.org/ticket/4906#comment:13, but here's
 a quick rundown of it:

 $form = new sfForm();
 for ($i = 1; $i = 5; $i++) {
  $form-widgetSchema[$i] = new sfWidgetFormInputFile();
  $form-widgetSchema-setLabel($i, 'File ' . $i);
 }
 $this-embedForm('upload', $form);
 $this-widgetSchema-setLabel('upload', 'Upload files');

 How this will look in the view (you can use the debug inspector in
 1.3) is there'll be a field $form['upload'], and then each file widget
 will be $form['upload'][1] through $form['upload'][5]. You can also
 start with just one input widget and then use jQuery to add more input
 widgets to the embedded form (I can't give an example right now
 because I'm still figuring out how to do this).

 A couple more pages with some good discussion on embedded forms:

 http://blog.barros.ws/2009/01/01/using-embedformforeach-in-symfony-part-ii/
 (focuses on multiple embedded forms using embedFormForEach, but still
 a good overview of the concept)
 http://www.symfony-project.org/blog/2008/11/12/call-the-expert-customizing-sfdoctrineguardplugin

 --jbh

 Jesse B. Hannah

 On Nov 14, 1:02 pm, Sid Bachtiar sid.bacht...@gmail.com wrote:
 Hi,

 How to declare an array of input field in sfForm? Is this where
 embedded form come in?

 In this case I want to use jquery MultiUpload library but it works by
 creating upload fields with the same field name, so when the form is
 uploaded, it will be as array.

 Cheers,

 Sid
 --
 Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz

 




-- 
Blue Horn Ltd - System Development
http://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] How to declare an array of input field with sfForm?

2009-11-14 Thread Sid Bachtiar

Hi,

How to declare an array of input field in sfForm? Is this where
embedded form come in?

In this case I want to use jquery MultiUpload library but it works by
creating upload fields with the same field name, so when the form is
uploaded, it will be as array.

Cheers,

Sid
-- 
Blue Horn Ltd - System Development
http://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] Symfony 1.4

2009-11-10 Thread Sid Bachtiar

Hi,

I want to use 1.4 but I can not find the branch in the SVN? From
reading around seems it is just 1.3 minus deprecated features, so
where can I read the list of deprecated features?

Cheers,

Sid
-- 
Blue Horn Ltd - System Development
http://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: Symfony 1.4

2009-11-10 Thread Sid Bachtiar

sfCompat10Plugin: By deprecating this plugin, we also deprecate all
other elements in the framework that rely on this plugin to work (1.0
admin generator, and 1.0 form system)

I guess that includes propel-init-admin :-\

I hope something similar/better exists by now. Last time I tried the
sfForm one (can't remember the command now) and it was hard to figure
out how to do things ... spent hours with no luck trying to do
something that would otherwise be very very easy to do with
propel-init-admin

On Wed, Nov 11, 2009 at 11:03 AM, Sid Bachtiar sid.bacht...@gmail.com wrote:
 Cheers

 On Wed, Nov 11, 2009 at 11:02 AM, Gábor Fási maerl...@gmail.com wrote:

 http://www.symfony-project.org/tutorial/1_3/en/deprecated

 On Tue, Nov 10, 2009 at 22:54, Sid Bachtiar sid.bacht...@gmail.com wrote:

 Hi,

 I want to use 1.4 but I can not find the branch in the SVN? From
 reading around seems it is just 1.3 minus deprecated features, so
 where can I read the list of deprecated features?

 Cheers,

 Sid
 --
 Blue Horn Ltd - System Development
 http://bluehorn.co.nz

 


 




 --
 Blue Horn Ltd - System Development
 http://bluehorn.co.nz




-- 
Blue Horn Ltd - System Development
http://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: How to select thumbnail of sfAssetLibraryPlugin from tinyMCE ?

2009-11-08 Thread Sid Bachtiar

Never mind, there's actually a feature for that in the sfAssetsPlugin
but was not working correctly. I've modified the plugin a little and
now working really well.

On Sun, Nov 8, 2009 at 10:48 PM, Crafty_Shadow vankat...@gmail.com wrote:

 There is no straightforward way to do that, the only thing I can think
 of is modify sfAssetPlugin's image browser for tiny to include an
 extra button for every image that would return the path to the
 thumbnail. It shouldn't be more than a few lines of html/js

 On Nov 7, 11:32 am, Sid Bachtiar sid.bacht...@gmail.com wrote:
 Hi all,

 I've got sfAssetLibraryPlugin working with tinyMCE, all good. But I
 can't figure out how one is supposed to be able to select the
 thumbnail when browsing from tinyMCE. I seem to only be able to insert
 the original image uploaded instead of the thumbnail. Any idea?

 --
 Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz
 




-- 
Blue Horn Ltd - System Development
http://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] How to select thumbnail of sfAssetLibraryPlugin from tinyMCE ?

2009-11-07 Thread Sid Bachtiar

Hi all,

I've got sfAssetLibraryPlugin working with tinyMCE, all good. But I
can't figure out how one is supposed to be able to select the
thumbnail when browsing from tinyMCE. I seem to only be able to insert
the original image uploaded instead of the thumbnail. Any idea?

-- 
Blue Horn Ltd - System Development
http://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: setters and getters on doctrine

2009-11-01 Thread Sid Bachtiar

+1

I'm frustrated too with Doctrine's lack of setters and getters.

At least have the field names as constants or something like that.
Something to help developers to access the fields without looking them
up manually or try to remember them.

On Sun, Nov 1, 2009 at 9:42 PM, Alexandru-Emil Lupu
gang.al...@gmail.com wrote:
 Hi!
 I have a question ...

 Why does not Doctrine creates setters and getters as function in the base
 classes ? I mean is impossible that a developer know all the fields from a
 project... If that developer uses an autocomplete capable editor, the work
 inside a model class  it would be (actually it is) painfull.

 Currently, i am trying to swhitch from propel to doctrine an this is one of
 the things that i am finding quite hard to do.
 For example, i have a table that has around 15 fields, and around 10 fields
 depends on the rest 5. That means is quite time consuming to go in the
 schema file, get the name for the fields, then go and implementing a
 function that does the calcs.

 I do not want to complain about doctrine, but i consider this is one of the
 things that might get me and maybe others frustrated about this.

 I guess that if would be implemented, then more propel users will find it
 more easier to switch to Doctrine.

 I guess Jonathan or Fabien could make a poll for this, and we could see the
 results before starting any action.

 Alecs

 --
 As programmers create bigger  better idiot proof programs, so the universe
 creates bigger  better idiots!
 I am on web:  http://www.alecslupu.ro/
 I am on twitter: http://twitter.com/alecslupu
 I am on linkedIn: http://www.linkedin.com/in/alecslupu
 Tel: (+4)0748.543.798


 




-- 
Blue Horn Ltd - System Development
http://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: Project Management / Support tools

2009-11-01 Thread Sid Bachtiar

Mantis?

On Mon, Nov 2, 2009 at 9:52 AM, Lee Bolding l...@leesbian.net wrote:

 Hi Gang,

 Can anybody recommend a good project management and support tool along
 the lines of BaseCamp or CodeBase?

 What I'm after specifically, is something that operates in 2 modes - a
 public facing mode that allows customers to report and browse
 outstanding bugs etc (but not assign them, or see who they are
 assigned to), and a backend that allows us to assign bugs internally
 and integrates the bug tracker with a version control system, so that
 we can link specific commits to tickets (like Trac does). Also,
 ideally I would be able to host it myself, and easily be able to make
 repositories and projects either public (for open source projects) or
 private (for commercial projects).

 I know Trac can do most of this, but it's a real PITA to set up - and
 setting it up badly gives the public access to browse your repository,
 which ain't good. Both BaseCamp and CodeBase have the backend part
 covered, but don't have a public frontend where your customers can
 report bugs (and I can't host myself).

 Any suggestions?

 Thanks...

 




-- 
Blue Horn Ltd - System Development
http://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: Production routing vs. dev environment routing.

2009-10-28 Thread Sid Bachtiar
1. Did you clear cache? ./symfony cc
2. Do you have mod_rewrite enabled on your production server?


On Thu, Oct 29, 2009 at 8:56 AM, Zach zach...@gmail.com wrote:


 I've been stuck on this for quite some time and hope someone can help
 me. It's probably something simple that I am overlooking (and I hope
 it is) but I can't figure it out.

 I am integrating PayPal Payments Pro Recurring Billing using Express
 Checkout. I have already successfully integrated Recurring Billing
 using Direct Payment.

 Everything is working fine except I need certain parameters to process
 the payment after the user is directed back to my site from paypal. So
 I specify the return url to include those parameters like this
 $returnUrl = https://mysite/payment/param/$value/param2/$value2;;

 when paypal redirects to this url it appends a few parameters of it's
 own so I end up with something like this:


 https://mysite/payment/param/$value/param2/$value2?token=valuePayerID=value

 I wasn't sure if this would work, but it did just fine until I
 moved to my other testing server and tried it in the production
 environment instead of frontend_dev.php.
 Now I just get a 404 not found. But if I insert frontend_dev.php into
 the url it works fine.
 How can I get this to work in the production environment?

 Summary:

 Works:

 https://mysite/frontend_dev.php/payment/param/$value/param2/$value2?token=valuePayerID=value

 Doesn't Work:

 https://mysite/payment/param/$value/param2/$value2?token=valuePayerID=value

 Thank you for you help,
 Zach
 



-- 
Blue Horn Ltd - System Development
http://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: Production routing vs. dev environment routing.

2009-10-28 Thread Sid Bachtiar
 2. yes... I have RewriteEngine On in the .htaccess (that enables
mod_rewrite right?)

Not just there. Your apache web server must have it enabled.

If you're on linux: sudo a2enmod rewrite

then restart apache

On Thu, Oct 29, 2009 at 9:23 AM, Zach zach...@gmail.com wrote:


 Thanks for the fast reply!

 1. yes I did symfony cc
 2. yes... I have RewriteEngine On in the .htaccess (that enables
 mod_rewrite right?)

 On Oct 28, 3:07 pm, Sid Bachtiar sid.bacht...@gmail.com wrote:
  1. Did you clear cache? ./symfony cc
  2. Do you have mod_rewrite enabled on your production server?
 
 
 
 
 
  On Thu, Oct 29, 2009 at 8:56 AM, Zach zach...@gmail.com wrote:
 
   I've been stuck on this for quite some time and hope someone can help
   me. It's probably something simple that I am overlooking (and I hope
   it is) but I can't figure it out.
 
   I am integrating PayPal Payments Pro Recurring Billing using Express
   Checkout. I have already successfully integrated Recurring Billing
   using Direct Payment.
 
   Everything is working fine except I need certain parameters to process
   the payment after the user is directed back to my site from paypal. So
   I specify the return url to include those parameters like this
   $returnUrl = https://mysite/payment/param/$value/param2/$value2;;
 
   when paypal redirects to this url it appends a few parameters of it's
   own so I end up with something like this:
 
  https://mysite/payment/param/$value/param2/$value2?token=valuePayerI.
 ..
 
   I wasn't sure if this would work, but it did just fine until I
   moved to my other testing server and tried it in the production
   environment instead of frontend_dev.php.
   Now I just get a 404 not found. But if I insert frontend_dev.php into
   the url it works fine.
   How can I get this to work in the production environment?
 
   Summary:
 
   Works:
 
  https://mysite/frontend_dev.php/payment/param/$value/param2/$value2?t.
 ..
 
   Doesn't Work:
 
  https://mysite/payment/param/$value/param2/$value2?token=valuePayerI.
 ..
 
   Thank you for you help,
   Zach
 
  --
  Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz
 



-- 
Blue Horn Ltd - System Development
http://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: Email address in URL leads to problem

2009-10-19 Thread Sid Bachtiar

http://bluehorn.co.nz/2008/12/04/how-to-handle-dot-in-symfony-url/

On Tue, Oct 20, 2009 at 1:47 PM, Steve Sanyal steve.san...@gmail.com wrote:

 Just a clarification.  This is a routing issue.  It does not seem like
 symfony can parse the URL properly because it includes an email
 address as one of the parameters.

 Regards,
 Steve

 On Oct 19, 8:30 pm, Steve Sanyal steve.san...@gmail.com wrote:
 Hi,

 In my registration module, I have a URL which has the username
 embedded in it.  However, if the username itself is an email address
 it does not seem that this approach works:

 https://myapp/frontend_dev.php/registration/test%40example.com/xsdfsd...

 I get the following error:

 Empty module and/or action after parsing the URL

 Has anyone encountered this and is there a remedy other than not
 allowing usernames with email addresses in them?

 Thanks,
 Steve
 




-- 
Blue Horn Ltd - System Development
http://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] How to use sync with cron?

2009-10-15 Thread Sid Bachtiar

Hi,

How can I set the symfony sync for cron? E.g.: specifying the user's
password so that it won't require manually entering password.

Cheers,

Sid

--~--~-~--~~~---~--~~
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 use sync with cron?

2009-10-15 Thread Sid Bachtiar

Thanks, exactly what I was thinking! I followed it and it works really well :)

On Thu, Oct 15, 2009 at 11:48 PM, Gábor Fási maerl...@gmail.com wrote:

 You can use ssh keys to login without a password.
 This tutorial uses rsync over ssh to backup, scheduled via cron:
 http://troy.jdmz.net/rsync/index.html

 On Thu, Oct 15, 2009 at 12:42, Sid Bachtiar sid.bacht...@gmail.com wrote:

 Hi,

 How can I set the symfony sync for cron? E.g.: specifying the user's
 password so that it won't require manually entering password.

 Cheers,

 Sid

 


 




-- 
Blue Horn Ltd - System Development
http://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] is sfMediaLibraryPlugin compatible with Symfony 1.2 (Propel)?

2009-10-13 Thread Sid Bachtiar

Hi,

Does anyone know if sfMediaLibraryPlugin works with Symfony 1.2
(Propel)? It's flagged as Symfony 1.1, but 1.1 and 1.2 are quite
similar.

Kind regards,

Sid

--~--~-~--~~~---~--~~
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 sfMediaLibraryPlugin compatible with Symfony 1.2 (Propel)?

2009-10-13 Thread Sid Bachtiar

I just tried sfMediaLibraryPlugin, could not get it to work!

For anyone else reading this, use sfAssetLibraryPlugin instead if you
are using Symfony 1.2 (Propel) with TinyMCE 3.

Apply the following patch to get rid of the Javascript error:
http://trac.symfony-project.org/attachment/ticket/3750/sfAssetsLibrary_tinymce3_justneeded_changes.patch

When executing ./symfony asset:create-root, specify the application ... e.g.:

./symfony asset:create-root --application=backend

On Tue, Oct 13, 2009 at 8:04 PM, Alexandru-Emil Lupu
gang.al...@gmail.com wrote:
 Sid, AFAIK you can use it ... you might have some small problems, but i
 doubt  it .
 And yes ... is working with propel ... It is not ORM related ..
 browse this:
 http://trac.symfony-project.org/browser/plugins/sfMediaLibraryPlugin
 Alecs

 On Tue, Oct 13, 2009 at 9:04 AM, Sid Bachtiar sid.bacht...@gmail.com
 wrote:

 Hi,

 Does anyone know if sfMediaLibraryPlugin works with Symfony 1.2
 (Propel)? It's flagged as Symfony 1.1, but 1.1 and 1.2 are quite
 similar.

 Kind regards,

 Sid





 --
 As programmers create bigger  better idiot proof programs, so the universe
 creates bigger  better idiots!
 I am on web:  http://www.alecslupu.ro/
 I am on twitter: http://twitter.com/alecslupu
 I am on linkedIn: http://www.linkedin.com/in/alecslupu
 Tel: (+4)0748.543.798


 




-- 
Blue Horn Ltd - System Development
http://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: Get updated fields from Form

2009-10-12 Thread Sid Bachtiar

The only way that I know is to detect before you save. For example:

class Ninja extends BaseNinja
{
  public function save($con=null)
  {
$age_modified = $this-isColumnModified(NinjaPeer::AGE);
$gender_modified = $this-isColumnModified(NinjaPeer::GENDER);

// do something with the above flags

return parent::save($con);
  }
}

On Mon, Oct 12, 2009 at 9:53 PM, Tomasz Ignatiuk
tomek.ignat...@gmail.com wrote:

 Does anyone know if there is in Symfony a function that returns
 updated fileds after saving a form? Or how to do it? I use Propel. In
 Propel doUpdate returns no of changed row, but not field names.
 




-- 
Blue Horn Ltd - System Development
http://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: how to install a symfony website

2009-10-08 Thread Sid Bachtiar

A generic installer would be something like:

- System checks environment requirements, the usual: php version,
apache version, mod rewrite, gd (plugins may add more requirements)
- User enter database name, user, password
- System creates necessary database structures (table, etc, etc)
- System check that cache, log, and upload folder are writable
(plugins may register additional folder)

I'm sure there'll be a couple more, but they would still be pretty generic.

Yes, a Symfony app can be more specialised and more complex, but I'd
say most Symfony apps we develop can use such generic installer almost
out of the box. Just like so many projects have benefited from
sfGuardPlugin, even though not necessarily that ALL projects use
sfGuardPlugin.

On Fri, Oct 9, 2009 at 12:25 AM, Gareth McCumskey gmccums...@gmail.com wrote:
 No it wouldn't. Wordpress is a CRM system at its heart and thats really all
 its there for. symfony is much lower level than that and you cannot have a
 generic installer created for it because there are far too many possible
 variables to consider and so many different ways you can develop an
 application with symfony that a single installer would never be able to meet
 all the demands of the developers.

 THATS why symfony is popular, because it isn't a CRM application, and it
 allows you to do far more the way you want for your own needs, including how
 you want to deploy it.

 On Wed, Oct 7, 2009 at 1:16 AM, Sid Bachtiar sid.bacht...@gmail.com wrote:

  sf provides all the parts to make installers - you just need to glue 'em
  together.

 Correct! And it would make it easier to spread Symfony to the mass if
 it has a generic installer built in.

 I know, I know, what don't I build it myself? I'd like to, but at the
 moment I'm pretty stretched out.

 But it also good to talk about it first, someone might points out why
 this is difficult, etc, etc.

 A Symfony open source project called Siwapp (an invoicing system)
 tried/tries/trying to have this kind of installer (www.siwapp.org).

 Kind regards,

 Sid

 On Wed, Oct 7, 2009 at 12:09 PM, david da...@inspiredthinking.co.uk
 wrote:
 
  Wordpress is an application, Symfony is a framework that you can use to
  build applications.
  sf provides all the parts to make installers - you just need to glue 'em
  together.
 
  On Wed, 07 Oct 2009 00:32:18 +0200, Jake Barnes lkrub...@geocities.com
  wrote:
 
 
 
 
  On Oct 5, 2:54 am, Eno symb...@gmail.com wrote:
  On Mon, 5 Oct 2009, Sid Bachtiar wrote:
   I was trying to look something more for non-developer.
 
   Let's say I developed a website then when I give the source code to
   my
   client (who isn't computer illiterate, but is not familiar with
   Symfony); at the moment I'll have to teach them a lot of things on
   how
   to install/deploy, symfony commands (clear cache), how to change
   database settings, and so on.
 
  Frankly, what you're asking makes no sense. Deploying a web site is
  not
  something you can just give to someone who is not technical.
 
 
  One of the big weaknesses of Symfony is that it can not be deployed as
  easily as WordPress. The fact that non-technical people have an easy
  time installing WordPress gives WordPress much of its presence on the
  web scene.
 
 
 
 
 
 
 
 
  
 
 
  --
  Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
 
  
 



 --
 Blue Horn Ltd - System Development
 http://bluehorn.co.nz





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

 




-- 
Blue Horn Ltd - System Development
http://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: how to install a symfony website

2009-10-08 Thread Sid Bachtiar

Generic doesn't mean it will cater for all situation. If it can cater
for even 50% of all projects, it will be a very successful generic
tool.

On Fri, Oct 9, 2009 at 3:54 AM, Gareth McCumskey gmccums...@gmail.com wrote:
 To answer your comments:

 - symfony project:permissions sets all correct permissions
 - There is a symfony script check_configuration.php as a part of the library
 that can be run to check that all required dependencies are met.
 - symfony configure:database allows you to change connection settings for a
 database
 - symfony propel:build-* and insert-* functions do all the db-admin you need

 But what if your specific application wanted to do only a subset of these?
 What if you have other directories set by other libraries you use, that need
 different permissions? What about multiple databases? What if you need to
 have a specific PHP module installed for functionality that you have
 included? There are many more caveats. Its not really as simple as you make
 it sound. And all of those differences I just mentioned occur with an
 application we have just recently made available to our customers.

 I am not attacking you, just trying to point out why a generic deployment
 script would be a difficult thing to do as no two projects are alike.

 On Thu, Oct 8, 2009 at 1:42 PM, Sid Bachtiar sid.bacht...@gmail.com wrote:

 A generic installer would be something like:

 - System checks environment requirements, the usual: php version,
 apache version, mod rewrite, gd (plugins may add more requirements)
 - User enter database name, user, password
 - System creates necessary database structures (table, etc, etc)
 - System check that cache, log, and upload folder are writable
 (plugins may register additional folder)

 I'm sure there'll be a couple more, but they would still be pretty
 generic.

 Yes, a Symfony app can be more specialised and more complex, but I'd
 say most Symfony apps we develop can use such generic installer almost
 out of the box. Just like so many projects have benefited from
 sfGuardPlugin, even though not necessarily that ALL projects use
 sfGuardPlugin.

 On Fri, Oct 9, 2009 at 12:25 AM, Gareth McCumskey gmccums...@gmail.com
 wrote:
  No it wouldn't. Wordpress is a CRM system at its heart and thats really
  all
  its there for. symfony is much lower level than that and you cannot have
  a
  generic installer created for it because there are far too many possible
  variables to consider and so many different ways you can develop an
  application with symfony that a single installer would never be able to
  meet
  all the demands of the developers.
 
  THATS why symfony is popular, because it isn't a CRM application, and it
  allows you to do far more the way you want for your own needs, including
  how
  you want to deploy it.
 
  On Wed, Oct 7, 2009 at 1:16 AM, Sid Bachtiar sid.bacht...@gmail.com
  wrote:
 
   sf provides all the parts to make installers - you just need to glue
   'em
   together.
 
  Correct! And it would make it easier to spread Symfony to the mass if
  it has a generic installer built in.
 
  I know, I know, what don't I build it myself? I'd like to, but at the
  moment I'm pretty stretched out.
 
  But it also good to talk about it first, someone might points out why
  this is difficult, etc, etc.
 
  A Symfony open source project called Siwapp (an invoicing system)
  tried/tries/trying to have this kind of installer (www.siwapp.org).
 
  Kind regards,
 
  Sid
 
  On Wed, Oct 7, 2009 at 12:09 PM, david da...@inspiredthinking.co.uk
  wrote:
  
   Wordpress is an application, Symfony is a framework that you can use
   to
   build applications.
   sf provides all the parts to make installers - you just need to glue
   'em
   together.
  
   On Wed, 07 Oct 2009 00:32:18 +0200, Jake Barnes
   lkrub...@geocities.com
   wrote:
  
  
  
  
   On Oct 5, 2:54 am, Eno symb...@gmail.com wrote:
   On Mon, 5 Oct 2009, Sid Bachtiar wrote:
I was trying to look something more for non-developer.
  
Let's say I developed a website then when I give the source code
to
my
client (who isn't computer illiterate, but is not familiar with
Symfony); at the moment I'll have to teach them a lot of things
on
how
to install/deploy, symfony commands (clear cache), how to change
database settings, and so on.
  
   Frankly, what you're asking makes no sense. Deploying a web site is
   not
   something you can just give to someone who is not technical.
  
  
   One of the big weaknesses of Symfony is that it can not be deployed
   as
   easily as WordPress. The fact that non-technical people have an easy
   time installing WordPress gives WordPress much of its presence on
   the
   web scene.
  
  
  
  
  
  
  
  
   
  
  
   --
   Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
  
   
  
 
 
 
  --
  Blue Horn Ltd - System Development
  http://bluehorn.co.nz
 
 
 
 
 
  --
  Gareth McCumskey
  http

[symfony-users] Re: how to install a symfony website

2009-10-08 Thread Sid Bachtiar

That's nice ... 1.3 eh?

Thanks for the info :)

On Fri, Oct 9, 2009 at 3:58 AM, david da...@inspiredthinking.co.uk wrote:

 The current installer option pretty much allows all that now very simply
 via the installer and a terminal window.
 Unless you're thinking of something along the lines of a web installer or
 have some other scenario in mind.

 You just need to supplement things with a bootstrap.sh script that:
 - creates lib/vendor
 - downloads/extracts or svn export
 http://svn.symfony-project.com/branches/version
 - calls symfony generate:project --installer=[PATH|URL]/sfInstaller.php

 sfInstaller.php does the rest
 (http://www.symfony-project.org/blog/2009/06/10/new-in-symfony-1-3-project-creation-customization).
 You can prompt the user for everything you need (DB name, username, etc)
 and call any tasks (Doctrine:build-all-reload, project:permissions).

 The only option that might be missing is that there isn't a check_config
 task from within the framework/installer - so you can't run a self-check.




 On Thu, 08 Oct 2009 13:42:57 +0200, Sid Bachtiar sid.bacht...@gmail.com
 wrote:


 A generic installer would be something like:

 - System checks environment requirements, the usual: php version,
 apache version, mod rewrite, gd (plugins may add more requirements)
 - User enter database name, user, password
 - System creates necessary database structures (table, etc, etc)
 - System check that cache, log, and upload folder are writable
 (plugins may register additional folder)

 I'm sure there'll be a couple more, but they would still be pretty
 generic.

 Yes, a Symfony app can be more specialised and more complex, but I'd
 say most Symfony apps we develop can use such generic installer almost
 out of the box. Just like so many projects have benefited from
 sfGuardPlugin, even though not necessarily that ALL projects use
 sfGuardPlugin.

 On Fri, Oct 9, 2009 at 12:25 AM, Gareth McCumskey gmccums...@gmail.com
 wrote:
 No it wouldn't. Wordpress is a CRM system at its heart and thats really
 all
 its there for. symfony is much lower level than that and you cannot
 have a
 generic installer created for it because there are far too many possible
 variables to consider and so many different ways you can develop an
 application with symfony that a single installer would never be able to
 meet
 all the demands of the developers.

 THATS why symfony is popular, because it isn't a CRM application, and it
 allows you to do far more the way you want for your own needs,
 including how
 you want to deploy it.

 On Wed, Oct 7, 2009 at 1:16 AM, Sid Bachtiar sid.bacht...@gmail.com
 wrote:

  sf provides all the parts to make installers - you just need to glue
 'em
  together.

 Correct! And it would make it easier to spread Symfony to the mass if
 it has a generic installer built in.

 I know, I know, what don't I build it myself? I'd like to, but at the
 moment I'm pretty stretched out.

 But it also good to talk about it first, someone might points out why
 this is difficult, etc, etc.

 A Symfony open source project called Siwapp (an invoicing system)
 tried/tries/trying to have this kind of installer (www.siwapp.org).

 Kind regards,

 Sid

 On Wed, Oct 7, 2009 at 12:09 PM, david da...@inspiredthinking.co.uk
 wrote:
 
  Wordpress is an application, Symfony is a framework that you can use
 to
  build applications.
  sf provides all the parts to make installers - you just need to glue
 'em
  together.
 
  On Wed, 07 Oct 2009 00:32:18 +0200, Jake Barnes
 lkrub...@geocities.com
  wrote:
 
 
 
 
  On Oct 5, 2:54 am, Eno symb...@gmail.com wrote:
  On Mon, 5 Oct 2009, Sid Bachtiar wrote:
   I was trying to look something more for non-developer.
 
   Let's say I developed a website then when I give the source code
 to
   my
   client (who isn't computer illiterate, but is not familiar with
   Symfony); at the moment I'll have to teach them a lot of things
 on
   how
   to install/deploy, symfony commands (clear cache), how to change
   database settings, and so on.
 
  Frankly, what you're asking makes no sense. Deploying a web site is
  not
  something you can just give to someone who is not technical.
 
 
  One of the big weaknesses of Symfony is that it can not be deployed
 as
  easily as WordPress. The fact that non-technical people have an easy
  time installing WordPress gives WordPress much of its presence on
 the
  web scene.
 
 
 
 
 
 
 
 
  
 
 
  --
  Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
 
  
 



 --
 Blue Horn Ltd - System Development
 http://bluehorn.co.nz





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

 






 --
 Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

 




-- 
Blue Horn Ltd - System Development
http://bluehorn.co.nz

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send

[symfony-users] Re: how to install a symfony website

2009-10-06 Thread Sid Bachtiar

Yeah, I'm thinking:

1. Have install.php on web folder and lock it or delete it after
installation is successful
2. Requirements checking if the environment has everything required
(plugins should be able to add requirement check too)
3. Let end user enters database information (like in Wordpress)
4. Click 'Install'

OK I'm sure it's not that easy, but I think it is doable.

Part of the check would be to check if non-public folder (non web
folder) can be protected (made non-public), e.g.: htaccess, etc, etc.

Regards,

Sid Bachtiar
-- 
Blue Horn Ltd - System Development
http://bluehorn.co.nz


On Wed, Oct 7, 2009 at 11:32 AM, Jake Barnes lkrub...@geocities.com wrote:



 On Oct 5, 2:54 am, Eno symb...@gmail.com wrote:
 On Mon, 5 Oct 2009, Sid Bachtiar wrote:
  I was trying to look something more for non-developer.

  Let's say I developed a website then when I give the source code to my
  client (who isn't computer illiterate, but is not familiar with
  Symfony); at the moment I'll have to teach them a lot of things on how
  to install/deploy, symfony commands (clear cache), how to change
  database settings, and so on.

 Frankly, what you're asking makes no sense. Deploying a web site is not
 something you can just give to someone who is not technical.


 One of the big weaknesses of Symfony is that it can not be deployed as
 easily as WordPress. The fact that non-technical people have an easy
 time installing WordPress gives WordPress much of its presence on the
 web scene.








 


--~--~-~--~~~---~--~~
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 install a symfony website

2009-10-06 Thread Sid Bachtiar

 sf provides all the parts to make installers - you just need to glue 'em
 together.

Correct! And it would make it easier to spread Symfony to the mass if
it has a generic installer built in.

I know, I know, what don't I build it myself? I'd like to, but at the
moment I'm pretty stretched out.

But it also good to talk about it first, someone might points out why
this is difficult, etc, etc.

A Symfony open source project called Siwapp (an invoicing system)
tried/tries/trying to have this kind of installer (www.siwapp.org).

Kind regards,

Sid

On Wed, Oct 7, 2009 at 12:09 PM, david da...@inspiredthinking.co.uk wrote:

 Wordpress is an application, Symfony is a framework that you can use to
 build applications.
 sf provides all the parts to make installers - you just need to glue 'em
 together.

 On Wed, 07 Oct 2009 00:32:18 +0200, Jake Barnes lkrub...@geocities.com
 wrote:




 On Oct 5, 2:54 am, Eno symb...@gmail.com wrote:
 On Mon, 5 Oct 2009, Sid Bachtiar wrote:
  I was trying to look something more for non-developer.

  Let's say I developed a website then when I give the source code to my
  client (who isn't computer illiterate, but is not familiar with
  Symfony); at the moment I'll have to teach them a lot of things on how
  to install/deploy, symfony commands (clear cache), how to change
  database settings, and so on.

 Frankly, what you're asking makes no sense. Deploying a web site is not
 something you can just give to someone who is not technical.


 One of the big weaknesses of Symfony is that it can not be deployed as
 easily as WordPress. The fact that non-technical people have an easy
 time installing WordPress gives WordPress much of its presence on the
 web scene.








 


 --
 Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

 




-- 
Blue Horn Ltd - System Development
http://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-06 Thread Sid Bachtiar

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 Development
http://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: how to install a symfony website

2009-10-05 Thread Sid Bachtiar

Of course not. I'm talking about someone technical, who knows how to
install the like of Wordpress, and other popular PHP, but not familiar
with Symfony, nor want/need to learn development in Symfony.

On Mon, Oct 5, 2009 at 7:54 PM, Eno symb...@gmail.com wrote:

 On Mon, 5 Oct 2009, Sid Bachtiar wrote:

 I was trying to look something more for non-developer.

 Let's say I developed a website then when I give the source code to my
 client (who isn't computer illiterate, but is not familiar with
 Symfony); at the moment I'll have to teach them a lot of things on how
 to install/deploy, symfony commands (clear cache), how to change
 database settings, and so on.

 Frankly, what you're asking makes no sense. Deploying a web site is not
 something you can just give to someone who is not technical.



 --



 




-- 
Blue Horn Ltd - System Development
http://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] how to install a symfony website

2009-10-04 Thread Sid Bachtiar

Hi all,

I'm wondering if there is a documentation for non-developer (e.g.:
system admin) on how to install a website developed in Symfony.

-- 
Blue Horn Ltd - System Development
http://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: how to install a symfony website

2009-10-04 Thread Sid Bachtiar

I was trying to look something more for non-developer.

Let's say I developed a website then when I give the source code to my
client (who isn't computer illiterate, but is not familiar with
Symfony); at the moment I'll have to teach them a lot of things on how
to install/deploy, symfony commands (clear cache), how to change
database settings, and so on.

I was just trying to find something more non-developer friendly, but
may be I don't know what I'm looking for, or that the 'non-developer'
just have to learn a bit more about Symfony.

On Mon, Oct 5, 2009 at 2:15 PM, Eno symb...@gmail.com wrote:

 On Mon, 5 Oct 2009, Sid Bachtiar wrote:

 I'm wondering if there is a documentation for non-developer (e.g.:
 system admin) on how to install a website developed in Symfony.

 Its in the usual place:

 http://www.symfony-project.org/book/1_2/16-Application-Management-Tools#chapter_16_deploying_applications



 --



 




-- 
Blue Horn Ltd - System Development
http://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: what plugins or code do symfony developers prefer for image cropping?

2009-09-29 Thread Sid Bachtiar

Linux box only (using netpbm, fast):
http://www.symfony-project.org/plugins/pkImageConverterPlugin

Linux and Windows (using GD, slower):
http://www.symfony-project.org/plugins/sfThumbnailPlugin

On Wed, Sep 30, 2009 at 1:26 PM, lawrence lkrub...@geocities.com wrote:


 A client has asked me to build an image gallery. I'm curious what code
 or plugins Symfony developers typically use for this (assuming there
 is any typical usage).

 Have developers here used the eCropPlugin, and do you have an opinion
 about it?

 http://www.symfony-project.org/plugins/eCropPlugin/prototype
 




-- 
Blue Horn Ltd - System Development
http://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: what plugins or code do symfony developers prefer for image cropping?

2009-09-29 Thread Sid Bachtiar

Sorry, didn't realize he asked for all in one cropping rather than a
library to crop/resize images. eCrop is what I use too.

On Wed, Sep 30, 2009 at 3:15 PM, Jake Barnes lkrub...@geocities.com wrote:



 On Sep 29, 8:36 pm, Sid Bachtiar sid.bacht...@gmail.com wrote:
 Linux box only (using netpbm, 
 fast):http://www.symfony-project.org/plugins/pkImageConverterPlugin

 Linux and Windows (using GD, 
 slower):http://www.symfony-project.org/plugins/sfThumbnailPlugin


 sfThumbnail facillitates cropping? I did not know that. Somehow I read
 through the docs on sfThumbnail and missed that. I use sfThumbnail to
 resize my images, but I didn't realize it could crop.

 I should say, I just tried the eCrop plugin and it works great. Very
 simple to use, very straightforward.








 On Wed, Sep 30, 2009 at 1:26 PM, lawrence lkrub...@geocities.com wrote:

  A client has asked me to build an image gallery. I'm curious what code
  or plugins Symfony developers typically use for this (assuming there
  is any typical usage).

  Have developers here used the eCropPlugin, and do you have an opinion
  about it?

 http://www.symfony-project.org/plugins/eCropPlugin/prototype

 --
 Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz
 




-- 
Blue Horn Ltd - System Development
http://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] SEO, symfony forward, and redirect

2009-09-28 Thread Sid Bachtiar

Hi all,

Let say I have URL like:

http://mydomain.com/people/james-brown

When there more than 1 person with slug 'james-brown',  I want to
display a list. But when there is only one person, I want to either
redirect or symfony forward to something like
http://mydomain.com/person/1234

In this situation, SEO wise, which one do you think is better? To
redirect or to use Symfony forward?

Cheers,

Sid
-- 
Blue Horn Ltd - System Development
http://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: sf_data-get, only with key ??

2009-09-26 Thread Sid Bachtiar

You should not declare variable inside the template, unless the
variable is for template stuffs (color, style, etc).

If it is data, you should declare it at least in your action.

On Sun, Sep 27, 2009 at 9:32 AM, greg saturn1...@hotmail.com wrote:

 Hello i need to do

 ?php echo $sf_data-get('post', ESC_XSSSAFE) ?
  (i have download the plugin xssSafe etc...)

 But my problem is that :
 post is a key and it works only if the key is created in the action
 like
 $this-post = $val;

 But me i need to create my variable in the template.

 templatesucess.php

 $post = 'lalal';
 ?php echo $sf_data-get('post', ESC_XSSSAFE) ? //don't works !!

 So what can i do ??

 Thank you




 




-- 
Blue Horn Ltd - System Development
http://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: Symfony has definitely become too complicated framework

2009-09-25 Thread Sid Bachtiar

As Fabien pointed out, sfForm is similar to Zend Form, Django, etc. So
Symfony isn't alone with this approach.

In general, someone not familiar with OOP and MVC will definitely
struggling at first, not just with Symfony. No shortcut here, web
developer just needs to learn best practices.

And you can still use old style form if you'd like, nothing stopping you.

 I mean, it's insane in this point of view that sf can't make it easyer to
 build a login form (let's ignore the plugin)

Without something like sfGuardPlugin, login form isn't simple.

On Fri, Sep 25, 2009 at 9:39 PM, Sid Ferreira sid@gmail.com wrote:
 I was thinking about this, while making a sf1.0 project... and indeed
 dispite of how good the new things in 1.2, it really got really complex.
 In some ways, to a new commer, use symfony isn't a good idea he doesn't need
 only to use MVC and ORM anymore, he needs to learn (and almost master) the
 symfony forms to the very first project.
 I mean, it's insane in this point of view that sf can't make it easyer to
 build a login form (let's ignore the plugin)... Almost against the 'KISS'
 principle.
 I think symfony is an expert weapon, but it is almost 'no newbies
 allowed'...
 ps: I hope I made my self clear about it.

 On Fri, Sep 25, 2009 at 04:20, Alexandru-Emil Lupu gang.al...@gmail.com
 wrote:

 Gareth, i might even say old php 3.. in php4 there were any oop layering
 in progress ..

 Fabien, if i remember right (haven't work to much with Rails) symfony
 folder structure is much alike with Ruby on Rails. By the way. Please close
 this non sense thread.

 Alecs

 On Fri, Sep 25, 2009 at 10:04 AM, Gareth McCumskey gmccums...@gmail.com
 wrote:

 We recently hired a junior PHP developer, fresh out of college, getting
 his first taste of using PHP AND symfony in a production environment. We
 pretty much had to throw him in the deep end with using symfony and the
 associated documentation and give him work to do.

 Guess what? Because of symfony's abstracted nature and the ability for
 developers to focus on business logic, he is resolving bugs and adding new
 features all the time. The only time he stops to ask my help with anything
 is when it has to do with our OWN code implemented in symfony and NOT the
 framework itself. To me , thats evidence enough that the framework and its
 structure is not difficult to learn and get into for a new user who is
 willing to take the time and learn it.

 If we had built our application without symfony we would still be very
 far away from a releasable product costing the company more and more money.

 All of your responses show someone who is stuck in the old PHP4
 procedural line of thinking where its create functionality line by line and
 you are apparently not willing to invest the relaistically small amount of
 time required to use symfony.

 On Fri, Sep 25, 2009 at 3:34 AM, bghost bggho...@gmail.com wrote:

 And? Where you saw any recommendation to use th tags outside
 thead ??
 I never said that any developer is stupid here. But now I have changed
 my opinion
 under the pressure of your arguments.

 Anyway, finally I would say this:

 Most of you are calling for some alleged benefits that are hidden
 behind terms
 like re-usable, re-factoring or developer can concentrate on
 business logic ... bla ... bla .. bla

 1st

 What does it mean to do something re-usable? Do you really need to
 spend
 too much time on that if it will eventually be used once or just a few
 times?
 I heard many times: Yes, make it re-usable...yes, yes,
 yes..hmake it
 re-usable! even if that is justified or not.

 2nd

 What is the limit? How deep a developer should go with the re-
 factoring?
 Is it necessary to split templates into numerous small fragments and
 thus make
 them an extremely confusing and difficult to track? I heard many
 times: Yes,
 re-factore it ...yes, yes, yes..hre-factore it! even if that
 is justified or not.

 3rd

 Most of you said that Symfony Framework enables developers to
 concentrate
 on business logic? Yes, that's OK. I just wanted to warn that in these
 efforts,
 Symfony developers are exaggerating a bit, which resulted with the
 intricate
 logic of the Symfony framework that hides the flow of the application
 to the level
 where it is very difficult to understand and monitor the application.

 This is my last post here.

 WBR,
 Ghost3D


 On Sep 25, 2:52 am, Jeremy Thomerson jeremythomer...@gmail.com
 wrote:
  I've avoided responding on this thread to this point because your rude
  foul-mouthed criticism is ridiculously ignorant and malicious.  But,
  since
  you once again call all developers here stupid, please be quickly
  proven
  wrong by reading the INTRODUCTION TO TABLES by the W3C.  If you
  don't know
  who the W3C is, please try to do a little research.
 
  http://www.w3.org/TR/html401/struct/tables.html#h-11.1
 
  Jeremy
 
  On Thu, Sep 24, 2009 at 7:27 PM, bghost bggho...@gmail.com wrote:
 
   Ok Eno,
 
   I 

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-25 Thread Sid Bachtiar

The helpers are still there. Just not included by default. I think you
need to ?php use_helper('Form'); ? or include it other way.

On Fri, Sep 25, 2009 at 10:21 PM, Sid Ferreira sid@gmail.com wrote:
 Actually I do like and use a lot of forms.
 Im just looking as a new commer.
 It isn't cause (framework name here) does something that everyone must to
 do.
 Maybe let the forms helper there, unused, as a way to new users learn before
 really get into symfony.
 Making it easyer.

 On Fri, Sep 25, 2009 at 07:16, michael.pie...@googlemail.com
 michael.pie...@googlemail.com wrote:

 Sid Ferreira, and everyone complaining about the new forms, you don't
 have to use them for simple things!
 Just post your raw html form to an action, handle it with
 getPostParameter() and do something with it.

 It is NOT TRUE that you have to learn a lot of stuff just to do simple
 things.

 I don't use sfGuard, i don't use the generator, i don't use object
 routing. I had the choice to learn and use them, or to do it my way.
 And that's what i like about symfony.

 Michael


 On 25 Sep., 11:39, Sid Ferreira sid@gmail.com wrote:
  I was thinking about this, while making a sf1.0 project... and indeed
  dispite of how good the new things in 1.2, it really got really
  complex.In
  some ways, to a new commer, use symfony isn't a good idea he doesn't
  need
  only to use MVC and ORM anymore, he needs to learn (and almost master)
  the
  symfony forms to the very first project.
 
  I mean, it's insane in this point of view that sf can't make it easyer
  to
  build a login form (let's ignore the plugin)... Almost against the
  'KISS'
  principle.
 
  I think symfony is an expert weapon, but it is almost 'no newbies
  allowed'...
 
  ps: I hope I made my self clear about it.
 
  On Fri, Sep 25, 2009 at 04:20, Alexandru-Emil Lupu
  gang.al...@gmail.comwrote:
 
 
 
 
 
   Gareth, i might even say old php 3.. in php4 there were any oop
   layering in
   progress ..
 
   Fabien, if i remember right (haven't work to much with Rails) symfony
   folder structure is much alike with Ruby on Rails. By the way. Please
   close
   this non sense thread.
 
   Alecs
 
   On Fri, Sep 25, 2009 at 10:04 AM, Gareth McCumskey
   gmccums...@gmail.comwrote:
 
   We recently hired a junior PHP developer, fresh out of college,
   getting
   his first taste of using PHP AND symfony in a production environment.
   We
   pretty much had to throw him in the deep end with using symfony and
   the
   associated documentation and give him work to do.
 
   Guess what? Because of symfony's abstracted nature and the ability
   for
   developers to focus on business logic, he is resolving bugs and
   adding new
   features all the time. The only time he stops to ask my help with
   anything
   is when it has to do with our OWN code implemented in symfony and NOT
   the
   framework itself. To me , thats evidence enough that the framework
   and its
   structure is not difficult to learn and get into for a new user who
   is
   willing to take the time and learn it.
 
   If we had built our application without symfony we would still be
   very far
   away from a releasable product costing the company more and more
   money.
 
   All of your responses show someone who is stuck in the old PHP4
   procedural
   line of thinking where its create functionality line by line and you
   are
   apparently not willing to invest the relaistically small amount of
   time
   required to use symfony.
 
   On Fri, Sep 25, 2009 at 3:34 AM, bghost bggho...@gmail.com wrote:
 
   And? Where you saw any recommendation to use th tags outside
   thead ??
   I never said that any developer is stupid here. But now I have
   changed
   my opinion
   under the pressure of your arguments.
 
   Anyway, finally I would say this:
 
   Most of you are calling for some alleged benefits that are hidden
   behind terms
   like re-usable, re-factoring or developer can concentrate on
   business logic ... bla ... bla .. bla
 
   1st
 
   What does it mean to do something re-usable? Do you really need to
   spend
   too much time on that if it will eventually be used once or just a
   few
   times?
   I heard many times: Yes, make it re-usable...yes, yes,
   yes..hmake it
   re-usable! even if that is justified or not.
 
   2nd
 
   What is the limit? How deep a developer should go with the re-
   factoring?
   Is it necessary to split templates into numerous small fragments and
   thus make
   them an extremely confusing and difficult to track? I heard many
   times: Yes,
   re-factore it ...yes, yes, yes..hre-factore it! even if
   that
   is justified or not.
 
   3rd
 
   Most of you said that Symfony Framework enables developers to
   concentrate
   on business logic? Yes, that's OK. I just wanted to warn that in
   these
   efforts,
   Symfony developers are exaggerating a bit, which resulted with the
   intricate
   logic of the Symfony framework that hides the flow of the
   

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-24 Thread Sid Bachtiar

Seriously, if you had not posted this, we'd still think you're a smart
guy, who just doesn't like Symfony's way of doing things.

But now, well ... familiar with the quote below?

Better to remain silent and be thought a fool than to open one's
mouth and remove all doubt

On Fri, Sep 25, 2009 at 3:04 AM, bghost bggho...@gmail.com wrote:

 This is generated HTML code that I got after inserting the language
 component within a table cell:

 td?php include_component('language', 'language') ?/td

 where component 'language' is a component that uses Symfony WEB forms:
 (from Jobeet tutorial):


 form action=/change_language
  input name=symfony value=25f22a4d2133d1428b9bd2fb7c475162
 type=hidden
 /form
 /td
 /tr
 tr
  thlabel for=languageLanguage/label/th
  tdselect name=language id=language
 option value=en selected=selectedEnglish/option
 option value=frFrench/option
 /select

 This is nightmare for all WEB designers.

 WBR,
 Ghost3D

 On Sep 24, 11:32 am, Matt Robinson m...@lazycat.org wrote:
 On Sep 23, 12:29 pm, bghost bggho...@gmail.com wrote:

  First:
  [..] So you complicate some tasks in the Symfony
  framework that already was simple and good.

 Well, that's certainly an opinion.

  Second:
  Almost 90% of the code that generates the Symfony framework
  developer need to modify or re-write

 If the generated CRUD isn't helpful, don't use it. It's a tiny part of
 the framework that has a very specific use. You're complaining that
 your swiss army knife is rubbish because the corkscrew is a really bad
 tool for cutting string.

  Third:
  The result of all this is a complex directory structure, many empty
  classes that only contain a skeleton and just inherits one of the base
  classes, and finally the CRUD code that always must be re-written.

 It's not complicated, it's deep. The rules are very simple. So what if
 you don't need the base-class inheritance style for 90% of the time?
 It doesn't stop you doing anything else, it isn't slower, and when you
 need it, it's really, really nice to have. You're complaining that
 some things are complicated, but refusing to learn why. Don't wave
 your ignorance around as if it's somehow a good thing; it's offensive.

  And to get all that, the programmer must learn a bunch of different
  configuration and command line options.

 Can, not must.

  And when a programmer, after a painstaking setup and configuration
  of various options and parameters, finally gets the generated code,
  he must re-write 90% of the generated code.

 I call bullshit, sir. You're on a mailing list *full* of people who
 are proof that this is a lie.
 




-- 
Blue Horn Ltd - System Development
http://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: Symfony has definitely become too complicated framework

2009-09-24 Thread Sid Bachtiar

Probably because table is easier for majority of developers.

Those who dislike table are usually advanced enough to change the
default settings

I think that's the reason

On Fri, Sep 25, 2009 at 10:35 AM, Lee Bolding l...@leesbian.net wrote:

 Hmmm... I'm kind of inclined to agree that using tables is just bad,
 regardless of whether or not the opening table tag is missing.

 Any reason Symfony doesn't default to using dl/dd/dt like Zend_Form
 does? (that's about the only good thing I have to say about Zend_Form)

 Wouldn't that be more flexible?

 On 24 Sep 2009, at 23:11, Eno wrote:


 On Thu, 24 Sep 2009, bghost wrote:

 This is bad formatted HTML - where is table tag? Using tr, th
 and td without table - terrible !

 As the example in the docs show, *you* must supply that:

 http://www.symfony-project.org/forms/1_2/en/01-Form-Creation#chapter_01_sub_displaying_the_form



 --



 


 




-- 
Blue Horn Ltd - System Development
http://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: Symfony has definitely become too complicated framework

2009-09-24 Thread Sid Bachtiar

Hello moderator,

Can we please lock this thread? This thread has been going on far too
long. I'd say borderline trolling. This is getting really annoying.

We can't teach bghost all the basics in this one long thread.

bghost, if you still think you know what you're talking about, I dare
you to post your real name / website / company name.

Also bghost, Imagine if someone comes to you and tell you that HTML
syntax is stupid, what's with all the tags ( and ), why can't we
just use plain English text. That would be what I feel about your
posts here. Please spend more time learning or find other career/job.

On Fri, Sep 25, 2009 at 12:52 PM, Jeremy Thomerson
jeremythomer...@gmail.com wrote:
 I've avoided responding on this thread to this point because your rude
 foul-mouthed criticism is ridiculously ignorant and malicious.  But, since
 you once again call all developers here stupid, please be quickly proven
 wrong by reading the INTRODUCTION TO TABLES by the W3C.  If you don't know
 who the W3C is, please try to do a little research.

 http://www.w3.org/TR/html401/struct/tables.html#h-11.1

 Jeremy

 On Thu, Sep 24, 2009 at 7:27 PM, bghost bggho...@gmail.com wrote:

 Ok Eno,

 I visited that link and I did not thrilled because I found something
 wrong again:

 form action=/frontend_dev.php/contact/submit method=POST
  table

    !-- Beginning of generated code by ?php echo $form ?
  --
    tr
      thlabel for=nameName/label/th
      tdinput type=text name=name id=name //td
    /tr
    tr
      thlabel for=emailEmail/label/th
      tdinput type=text name=email id=email //td
    /tr
    tr
      thlabel for=messageMessage/label/th
      tdtextarea rows=4 cols=30 name=message id=message/
 textarea/td
    /tr
    !-- End of generated code by ?php echo $form ?
  --

    tr
      td colspan=2
        input type=submit /
      /td
    /tr
  /table
 /form

 So, what is the problem here:

 th tag within the HTML table should never be used
 outside thead /thead, because each web browser
 could interpreted this in different ways! Now I understand
 better why most of you loves the Symfony Form
 framework - most obviously does not even basic
 knowledge of the HTML.

 WBR,
 Ghost3D


 On Sep 25, 12:11 am, Eno symb...@gmail.com wrote:
  On Thu, 24 Sep 2009, bghost wrote:
   This is bad formatted HTML - where is table tag? Using tr, th
   and td without table - terrible !
 
  As the example in the docs show, *you* must supply that:
 
  http://www.symfony-project.org/forms/1_2/en/01-Form-Creation#chapter_...
 
  --



 




-- 
Blue Horn Ltd - System Development
http://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: Symfony has definitely become too complicated framework

2009-09-24 Thread Sid Bachtiar

 This is my last post here.

I'm so glad! GOOD BYE!!!

On Fri, Sep 25, 2009 at 1:34 PM, bghost bggho...@gmail.com wrote:

 And? Where you saw any recommendation to use th tags outside
 thead ??
 I never said that any developer is stupid here. But now I have changed
 my opinion
 under the pressure of your arguments.

 Anyway, finally I would say this:

 Most of you are calling for some alleged benefits that are hidden
 behind terms
 like re-usable, re-factoring or developer can concentrate on
 business logic ... bla ... bla .. bla

 1st

 What does it mean to do something re-usable? Do you really need to
 spend
 too much time on that if it will eventually be used once or just a few
 times?
 I heard many times: Yes, make it re-usable...yes, yes,
 yes..hmake it
 re-usable! even if that is justified or not.

 2nd

 What is the limit? How deep a developer should go with the re-
 factoring?
 Is it necessary to split templates into numerous small fragments and
 thus make
 them an extremely confusing and difficult to track? I heard many
 times: Yes,
 re-factore it ...yes, yes, yes..hre-factore it! even if that
 is justified or not.

 3rd

 Most of you said that Symfony Framework enables developers to
 concentrate
 on business logic? Yes, that's OK. I just wanted to warn that in these
 efforts,
 Symfony developers are exaggerating a bit, which resulted with the
 intricate
 logic of the Symfony framework that hides the flow of the application
 to the level
 where it is very difficult to understand and monitor the application.

 This is my last post here.

 WBR,
 Ghost3D


 On Sep 25, 2:52 am, Jeremy Thomerson jeremythomer...@gmail.com
 wrote:
 I've avoided responding on this thread to this point because your rude
 foul-mouthed criticism is ridiculously ignorant and malicious.  But, since
 you once again call all developers here stupid, please be quickly proven
 wrong by reading the INTRODUCTION TO TABLES by the W3C.  If you don't know
 who the W3C is, please try to do a little research.

 http://www.w3.org/TR/html401/struct/tables.html#h-11.1

 Jeremy

 On Thu, Sep 24, 2009 at 7:27 PM, bghost bggho...@gmail.com wrote:

  Ok Eno,

  I visited that link and I did not thrilled because I found something
  wrong again:

  form action=/frontend_dev.php/contact/submit method=POST
   table

     !-- Beginning of generated code by ?php echo $form ?
   --
     tr
       thlabel for=nameName/label/th
       tdinput type=text name=name id=name //td
     /tr
     tr
       thlabel for=emailEmail/label/th
       tdinput type=text name=email id=email //td
     /tr
     tr
       thlabel for=messageMessage/label/th
       tdtextarea rows=4 cols=30 name=message id=message/
  textarea/td
     /tr
     !-- End of generated code by ?php echo $form ?
   --

     tr
       td colspan=2
         input type=submit /
       /td
     /tr
   /table
  /form

  So, what is the problem here:

  th tag within the HTML table should never be used
  outside thead /thead, because each web browser
  could interpreted this in different ways! Now I understand
  better why most of you loves the Symfony Form
  framework - most obviously does not even basic
  knowledge of the HTML.

  WBR,
  Ghost3D

  On Sep 25, 12:11 am, Eno symb...@gmail.com wrote:
   On Thu, 24 Sep 2009, bghost wrote:
This is bad formatted HTML - where is table tag? Using tr, th
and td without table - terrible !

   As the example in the docs show, *you* must supply that:

  http://www.symfony-project.org/forms/1_2/en/01-Form-Creation#chapter_...

   --
 




-- 
Blue Horn Ltd - System Development
http://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: Symfony has definitely become too complicated framework

2009-09-23 Thread Sid Bachtiar

Feel free to use other framework if you think that Symfony isn't for
you, but saying it is too complicated isn't doing yourself any favor.

If you have specific ideas to improve Symfony, feel free to share them
with the mailing list or join the dev mailing list. Symfony isn't
perfect and there are things that many users here agree. But again, be
specific.

Alternatively, you could start a fork of Symfony, I wouldn't recommend
it but it is an option. After all Symfony itself started as a fork of
Mojavi, read http://www.symfony-project.org/about

On Wed, Sep 23, 2009 at 4:30 AM, bghost bggho...@gmail.com wrote:

 As I said at the beginning:

 Symfony has become too complicated. Also, Symfony folder structure
 has become too complicated. Definitely, the learning of principles on
 which Symfony working is painful and unprofitable. If you really want
 to
 see, which means fast, easy and effective PHP framework, then take a
 look on the following link:

 http://www.yiiframework.com/

 WBR,
 Ghost3D

 On Sep 21, 3:31 pm, Sid Bachtiar sid.bacht...@gmail.com wrote:
 XD



 On Tue, Sep 22, 2009 at 1:28 AM, dziobacz aaabbbcccda...@gmail.com wrote:

  I would like to say that Symfony is very, very good and future
  framework. Thx Symfony I could learn very fast ASP.NET MVC (not
  ASP.NET but ASP.NET MVC) - these two frameworks have got many similar
  things.
  While Zend Framework is far, far away Symfony and ASP.NET MVS. In Zend
  you must almost everything creat by yourself !! For example you must
  modify Bootstrap file and write there strange code to enable
  layout !!! Symfony is the best !! :)

  On 21 Wrz, 10:58, CaffeineInc simon@gmail.com wrote:
  I think symfony is brilliant, If you need a framework which can scale
  to enterprise level websites with fast prototyping and a flexible ORM,
  then you don't need anything else. If you think it's complicated, then
  maybe you're in the wrong place.

  If you want to build a small website with everything pre-configured,
  I'd probably stick with something like SilverStripe.

  P.s slagging off the framework in 2-3 lines is not very constructive
  for the users forum.

  On Sep 18, 6:09 pm, bghost bggho...@gmail.com wrote:

   No, the crux of what I wanted to say is:

   Users should not spend more time to learn how some Web Framework
   works but they need to learn a programming language. Any framework
   should be only an auxiliary tool, not an entire small science.
   So, simplicity and speed should be paramount.

   WBR,
   Ghost3D

   On Sep 18, 5:30 pm, Sid Ferreira sid@gmail.com wrote:

The most easy thing to understand is something that doesn't need
documentation and I believe that THIS is the point that BGhost is  
talking
about.I don't want launch a rocket in 30 days, I want my gallery 
ready in
12 minutes...

On Fri, Sep 18, 2009 at 12:26, Thomas Rabaix 
thomas.rab...@gmail.comwrote:

 Symfony has many components, each of them are :

    - easy to understand
    - easy to configure
    - very well documented

 Now, the only thing complicated is to know how all these components 
 play
 together. This is the tricky part, but symfony default 
 configuration will be
 fine for many projects.

 You just need to go further ... if you have already create/try to 
 implement
 a framework, you will see that symfony has all STABLE the pieces 
 you need.
 Try to use an IDE : netbeans or eclipse, these two IDE are great to 
 navigate
 across the code and understand it.

 On Fri, Sep 18, 2009 at 5:04 PM, bghost bggho...@gmail.com wrote:

 Hi Fabien,

 - With the introduction of the Doctrine ORM, number of parameters
  and configuration options are increased manifold. Therefore, the
 developer
  must first learn all about the Doctrine ORM. Is that good? 
 Doctrine
 ORM
  already providing a fairly good possibilities and options without
 Symfony.

 - Symfony WEB forms are a bit too complicated and their relations
  with the rest of a Symfony application is often unclear.

 WBR,
 Ghost3D

 On Sep 18, 4:43 pm, Fabien Potencier fabien.potenc...@symfony-
 project.com wrote:
  You say that symfony became too complicated, which implies it 
  was not
  before.

  Can you give us some examples of what became more complicated? 
  That will
  help us improve the framework.

  For instance, we have less and less configuration files. Since 
  1.0, we
  removed a lot of them, and removed some parameters also.

  Thanks,
  Fabien

  --
  Fabien Potencier
  Sensio CEO - symfony lead developer
  sensiolabs.com | symfony-project.org | fabien.potencier.org
  Tél: +33 1 40 99 80 80

  bghost wrote:

   First, I would like to say that Symfony framework is not too 
   bad,
   because I follow its development from the first version. But I

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-23 Thread Sid Bachtiar

 Yeah :) like plugins but one wouldn't have to spend the time making it
 into a  plugin ... why not make that as a natural part of process while
 developing an app

I think it is already natural. Plugin structure is almost identical
apps. You can practically just create a plugin folder, copy your
module to your plugin folder, separate the schema, and that's pretty
much it.

Let say you keep copying and modifying a module from one project to
another. Then you should think about making it a configurable plugin
and stores it on it's own svn. So on your next project, you just
checkout your plugin from that svn repository.

Packaging and releasing plugin to Symfony repository takes a bit more
time, but pluginizing module for your own use only takes minutes with
benefit of reusability over multiple projects.

On Thu, Sep 24, 2009 at 10:47 AM, Farrukh Abbas
strategy.vs.lo...@gmail.com wrote:

 Yeah :) like plugins but one wouldn't have to spend the time making it
 into a  plugin ... why not make that as a natural part of process while
 developing an app .. So modules r from the start build like plugins ...
 During the project the time spent on documentation is minimal so not
 every thing makes to the end doc ... N therefore when in a new project
 i have to use one of my modules written earlier, i have to spend the
 time to relearn atleast 30% of it ... mostly configurations etc ...

 so given that modules are like plugins (maybe not entirely) reusing a
 module would be alot easier as well ...

 --
 Kind regards
 Farrukh Abbas

 On 23 Sep 2009, at 22:30, Sid Bachtiar sid.bacht...@gmail.com wrote:


 the schema model n peer classes in
 one folder so all one would need is to copy the folder n customize it

 You mean like, plugin? :)

 On Thu, Sep 24, 2009 at 1:51 AM, Farrukh Abbas
 strategy.vs.lo...@gmail.com wrote:
 It has become a long thread ... As some one said before that
 noframework is
 perfect... But I guess what matters is how well does a framework
 hide all
 the complexitites of creating scalable web apps n let's the
 developer focus
 on the solution n business logic suberbly ... Yes it does take time
 to learn
 how to do it the right way according to the rules the framework
 has put
 forth but if one sticks to one version I guess there won't be that
 much of
 learning ... Any how I would like to share my 50 cents of
 experience with
 symfony n what I would like it to have...
 I have developed 3 to 4 apps on symfony n one thing I find my self
 doing is
 use some module developed for on app into another which ofcourse is
 possible
 but what do u guys think about putting the schema model n peer
 classes in
 one folder so all one would need is to copy the folder n customize
 it ...
 It's just n idea... So would like to know the drawebacks n
 strenghts of
 doing so... For that to be possible the model has to be stand
 alone... Feel
 free to critizie constructively

 --
 Kind regards
 Farrukh Abbas
 On 23 Sep 2009, at 15:37, Alexandru-Emil Lupu
 gang.al...@gmail.com wrote:

 Ghost3D,
 Sincerely, i thought that symfony is hard as well in the begining,
 but,
 there are some things that i haven't saw in other php frameworks,
 like the
 admin generator or the crud. Maybe, just because in the last period
 i am
 using just Django and Symfony in my projects.
 If you think that the symfony does not follow the best practices,
 then you
 are free to share with us what are the problems that you found on
 the system
 (allready done that). Instead of criticize so much the framework
 itself, you
 might come with some improvements of the generated code that
 follows the
 best practices.

 Yeah ... i know that sometimes the symfony generated does not do
 what i want
 to do, so i am starting to extend it. For example, on some objects
 i am
 hydrating manually the foreign objects, something like ROR way...
 $user = MyUser::find($criteria, array
 ('ban_status','profile','last_login'))
 and so on ...

 AFAIK, not even a framework is able to read the developer's mind.
 Some of
 them have made compromises renouncing to complexity for the
 simplicity sake,
 other are maybe far too complex than they should.

 i propose you something... make a blog application  (no plugins
 allowed)
 using symfony, yii, code igniter, cake PHP and tell us what were
 your work
 time for each one of the implementation. The applications should
 have: i18n
 support, form validation, comment management, and also an admin
 interface
 for the posts, a tagging system, and tests.
 After that add 2 majour database modifications and see what is the
 framework
 that helps you the most in this case.

 Of course. The logic is not to learn all the framewors, but to see
 the
 development time for each one of it. Afterall we all work with tight
 deadlines for our customers.
 As someone said earlier: if you need to modify 90% of the generated
 code,
 either you don't do it right, either symfony is not for you.

 Alecs


 On Wed, Sep 23, 2009 at 3:55 PM, Phil Moorhouse

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-21 Thread Sid Bachtiar

XD

On Tue, Sep 22, 2009 at 1:28 AM, dziobacz aaabbbcccda...@gmail.com wrote:

 I would like to say that Symfony is very, very good and future
 framework. Thx Symfony I could learn very fast ASP.NET MVC (not
 ASP.NET but ASP.NET MVC) - these two frameworks have got many similar
 things.
 While Zend Framework is far, far away Symfony and ASP.NET MVS. In Zend
 you must almost everything creat by yourself !! For example you must
 modify Bootstrap file and write there strange code to enable
 layout !!! Symfony is the best !! :)


 On 21 Wrz, 10:58, CaffeineInc simon@gmail.com wrote:
 I think symfony is brilliant, If you need a framework which can scale
 to enterprise level websites with fast prototyping and a flexible ORM,
 then you don't need anything else. If you think it's complicated, then
 maybe you're in the wrong place.

 If you want to build a small website with everything pre-configured,
 I'd probably stick with something like SilverStripe.

 P.s slagging off the framework in 2-3 lines is not very constructive
 for the users forum.

 On Sep 18, 6:09 pm, bghost bggho...@gmail.com wrote:

  No, the crux of what I wanted to say is:

  Users should not spend more time to learn how some Web Framework
  works but they need to learn a programming language. Any framework
  should be only an auxiliary tool, not an entire small science.
  So, simplicity and speed should be paramount.

  WBR,
  Ghost3D

  On Sep 18, 5:30 pm, Sid Ferreira sid@gmail.com wrote:

   The most easy thing to understand is something that doesn't need
   documentation and I believe that THIS is the point that BGhost is  
   talking
   about.I don't want launch a rocket in 30 days, I want my gallery ready 
   in
   12 minutes...

   On Fri, Sep 18, 2009 at 12:26, Thomas Rabaix 
   thomas.rab...@gmail.comwrote:

Symfony has many components, each of them are :

   - easy to understand
   - easy to configure
   - very well documented

Now, the only thing complicated is to know how all these components 
play
together. This is the tricky part, but symfony default configuration 
will be
fine for many projects.

You just need to go further ... if you have already create/try to 
implement
a framework, you will see that symfony has all STABLE the pieces you 
need.
Try to use an IDE : netbeans or eclipse, these two IDE are great to 
navigate
across the code and understand it.

On Fri, Sep 18, 2009 at 5:04 PM, bghost bggho...@gmail.com wrote:

Hi Fabien,

- With the introduction of the Doctrine ORM, number of parameters
 and configuration options are increased manifold. Therefore, the
developer
 must first learn all about the Doctrine ORM. Is that good? Doctrine
ORM
 already providing a fairly good possibilities and options without
Symfony.

- Symfony WEB forms are a bit too complicated and their relations
 with the rest of a Symfony application is often unclear.

WBR,
Ghost3D

On Sep 18, 4:43 pm, Fabien Potencier fabien.potenc...@symfony-
project.com wrote:
 You say that symfony became too complicated, which implies it was 
 not
 before.

 Can you give us some examples of what became more complicated? That 
 will
 help us improve the framework.

 For instance, we have less and less configuration files. Since 1.0, 
 we
 removed a lot of them, and removed some parameters also.

 Thanks,
 Fabien

 --
 Fabien Potencier
 Sensio CEO - symfony lead developer
 sensiolabs.com | symfony-project.org | fabien.potencier.org
 Tél: +33 1 40 99 80 80

 bghost wrote:

  First, I would like to say that Symfony framework is not too bad,
  because I follow its development from the first version. But I 
  think
  it became too complicated because it is evident exaggeration
  with the introduction of countless parameters and configuration
  files in order to automate all possible tasks. This entails that 
  the
  programmer spends more time dealing with the Symfony framework
  than with the real problem.

  P.S. I did nothing special but just followed the Jobeet tutorial.

  WBR,
  Ghost3D

  On Sep 18, 4:24 pm, Sid Bachtiar sid.bacht...@gmail.com wrote:
  It is necessary to invest so much effort to do a relatively 
  simple
  application.
  If you're just learning Symfony, then yes of course you'll find 
  it
too
  much effort. This is true with any other framework/technology.

  But for those of us who have invested our time in Symfony, we 
  find
  great leverage in using Symfony.

  So what is the relatively simple application you're trying to 
  build?

  On Sat, Sep 19, 2009 at 1:58 AM, bghost bggho...@gmail.com 
  wrote:

  It is necessary to invest so much effort to do a relatively 
  simple
  application.
  Productivity and profitability

[symfony-users] Re: Application or module

2009-09-18 Thread Sid Bachtiar

Modules because I think basically if two things share users, they
should be in the same apps as modules.

On Fri, Sep 18, 2009 at 11:42 PM, Gareth McCumskey gmccums...@gmail.com wrote:
 In my opinion  same project seperate modules. Getting two seperate
 applications to talk can sometimes be tricky

 On Fri, Sep 18, 2009 at 1:09 PM, mbernasocchi mbernasoc...@gmail.com
 wrote:

 Hi, I'm starting a new (my first with symfony) project which has a
 forum and a blog. I'd like to have a static home page that links to
 the two and to have cross links between blog and forum.
 Is it better to create a frontend app with forum and blog modules or
 to create two different applications? And why? for the backend i'll
 create a different app.

 thanks a lot
 Marco




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

 




-- 
Blue Horn Ltd - System Development
http://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: Problem with sfPropelPager.class.php

2009-09-18 Thread Sid Bachtiar

What's in EstatePeer::getOverview() ?

On Fri, Sep 18, 2009 at 11:51 PM, HAUSa
jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:

 I got a problem with the pager:

 Fatal error: __clone method called on non-object in /symfony/sf1.2/lib/
 plugins/sfPropelPlugin/lib/addon/sfPropelPager.class.php on line 40

 This is my code:
 public function executeOverview(sfWebRequest $oRequest){
        $oPager = new sfPropelPager('Estate', 3);
        $oPager-setCriteria(EstatePeer::getOverview());
        $oPager-setPage($oRequest-getParameter('page', 1));
        $oPager-init();

        $this-pager = $oPager;
 }

 Does someone know what is wrong?
 




-- 
Blue Horn Ltd - System Development
http://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: Routing doesn't take place

2009-09-18 Thread Sid Bachtiar

First of all, don't forget to run symfony cc

Secondly, try:

?php echo url_for('@estate_page?page=' . $page) ?

On Sat, Sep 19, 2009 at 12:24 AM, HAUSa
jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:

 Hi everyone!

 I have a problem with my routing.yml. My URL is still /vastgoed?
 page=3, despite my routing configuration:

 estate_page:
  url:   /vastgoed/:page
  param: { module: page, action: estate }

 This is how I build the URL:

 ?php echo url_for('page/estate?page=' . $page) ?

 Who knows how I can fix this?

 Thank you!
 




-- 
Blue Horn Ltd - System Development
http://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: Symfony has definitely become too complicated framework

2009-09-18 Thread Sid Bachtiar

 It is necessary to invest so much effort to do a relatively simple
 application.

If you're just learning Symfony, then yes of course you'll find it too
much effort. This is true with any other framework/technology.

But for those of us who have invested our time in Symfony, we find
great leverage in using Symfony.

So what is the relatively simple application you're trying to build?

On Sat, Sep 19, 2009 at 1:58 AM, bghost bggho...@gmail.com wrote:

 It is necessary to invest so much effort to do a relatively simple
 application.
 Productivity and profitability of such work is very questionable.

 So, Symfony - Goodbye

 




-- 
Blue Horn Ltd - System Development
http://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: Symfony has definitely become too complicated framework

2009-09-18 Thread Sid Bachtiar

sfForm is the way to go, doing form the old fashion way (coding form
in template) is terrible.

It is not harder, it's just different from old ways of doing things.
It only seems hard because you're used to doing form the old ways.

If you have strong OOP background and design patterns, you'd love sfForm.

About documentation, I agree it needs improving but currently it is
still pretty good. Having said that, I could always find answers from
Googling.

If you gave up from just learning Jobeet, then that's a shame. It's
like trying to learn J2EE and gave up after half way reading a book
called Learn J2EE in 30 days.

On Sat, Sep 19, 2009 at 7:27 AM, bghost bggho...@gmail.com wrote:

 I think that the attempt of putting the entire WEB form within the
 class
 only unnecessarily complicate such a simple thing such is form
 handling.
 That's just forcing WEB developers to learn how to make simple things
 on the complicated way.

 WBR,
 Ghost3D

 On Sep 18, 7:26 pm, Eno symb...@gmail.com wrote:
 On Fri, 18 Sep 2009, bghost wrote:
  - Symfony WEB forms are a bit too complicated and their relations
    with the rest of a Symfony application is often unclear.

 This is a valid point: the definitive guide does not talk about the new
 forms framework very much. It also doesn't talk enough about the Doctrine
 ORM. If the separate docs could somehow be integrated into the defintive
 guide, it might help.

 I should also point out: symfony probably has the best documentation,
 forums, mailing lists and books that most other frameworks.

 --
 




-- 
Blue Horn Ltd - System Development
http://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: Symfony has definitely become too complicated framework

2009-09-18 Thread Sid Bachtiar

I'd like to know that framework which you think match your ideal

On Sat, Sep 19, 2009 at 4:09 AM, bghost bggho...@gmail.com wrote:

 No, the crux of what I wanted to say is:

 Users should not spend more time to learn how some Web Framework
 works but they need to learn a programming language. Any framework
 should be only an auxiliary tool, not an entire small science.
 So, simplicity and speed should be paramount.

 WBR,
 Ghost3D


 On Sep 18, 5:30 pm, Sid Ferreira sid@gmail.com wrote:
 The most easy thing to understand is something that doesn't need
 documentation and I believe that THIS is the point that BGhost is  talking
 about.I don't want launch a rocket in 30 days, I want my gallery ready in
 12 minutes...

 On Fri, Sep 18, 2009 at 12:26, Thomas Rabaix thomas.rab...@gmail.comwrote:



  Symfony has many components, each of them are :

     - easy to understand
     - easy to configure
     - very well documented

  Now, the only thing complicated is to know how all these components play
  together. This is the tricky part, but symfony default configuration will 
  be
  fine for many projects.

  You just need to go further ... if you have already create/try to implement
  a framework, you will see that symfony has all STABLE the pieces you need.
  Try to use an IDE : netbeans or eclipse, these two IDE are great to 
  navigate
  across the code and understand it.

  On Fri, Sep 18, 2009 at 5:04 PM, bghost bggho...@gmail.com wrote:

  Hi Fabien,

  - With the introduction of the Doctrine ORM, number of parameters
   and configuration options are increased manifold. Therefore, the
  developer
   must first learn all about the Doctrine ORM. Is that good? Doctrine
  ORM
   already providing a fairly good possibilities and options without
  Symfony.

  - Symfony WEB forms are a bit too complicated and their relations
   with the rest of a Symfony application is often unclear.

  WBR,
  Ghost3D

  On Sep 18, 4:43 pm, Fabien Potencier fabien.potenc...@symfony-
  project.com wrote:
   You say that symfony became too complicated, which implies it was not
   before.

   Can you give us some examples of what became more complicated? That will
   help us improve the framework.

   For instance, we have less and less configuration files. Since 1.0, we
   removed a lot of them, and removed some parameters also.

   Thanks,
   Fabien

   --
   Fabien Potencier
   Sensio CEO - symfony lead developer
   sensiolabs.com | symfony-project.org | fabien.potencier.org
   Tél: +33 1 40 99 80 80

   bghost wrote:

First, I would like to say that Symfony framework is not too bad,
because I follow its development from the first version. But I think
it became too complicated because it is evident exaggeration
with the introduction of countless parameters and configuration
files in order to automate all possible tasks. This entails that the
programmer spends more time dealing with the Symfony framework
than with the real problem.

P.S. I did nothing special but just followed the Jobeet tutorial.

WBR,
Ghost3D

On Sep 18, 4:24 pm, Sid Bachtiar sid.bacht...@gmail.com wrote:
It is necessary to invest so much effort to do a relatively simple
application.
If you're just learning Symfony, then yes of course you'll find it
  too
much effort. This is true with any other framework/technology.

But for those of us who have invested our time in Symfony, we find
great leverage in using Symfony.

So what is the relatively simple application you're trying to build?

On Sat, Sep 19, 2009 at 1:58 AM, bghost bggho...@gmail.com wrote:

It is necessary to invest so much effort to do a relatively simple
application.
Productivity and profitability of such work is very questionable.
So, Symfony - Goodbye
--
Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz

  --
  Thomas Rabaix
 http://rabaix.net

 --
 Sidney G B Ferreira
 Desenvolvedor Web
 




-- 
Blue Horn Ltd - System Development
http://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: Symfony has definitely become too complicated framework

2009-09-18 Thread Sid Bachtiar

Sf 1.0 to Sf1.2 is quite different. It took me sometime to switch.
Mainly the concept of sfForm.

But I didn't even need the Jobeet tutorial. Actually I never done the
Jobeet at all (not even sf 1.0 jobeet), I only did the 'my first
symfony' tutorial when I started learning Symfony. The rest are just
from Googling, reading the documentation, and looking at the source
code.

On Sat, Sep 19, 2009 at 2:29 AM, bghost bggho...@gmail.com wrote:



 First, I would like to say that Symfony framework is not too bad,
 because I follow its development from the first version. But I think
 it became too complicated because it is evident exaggeration
 with the introduction of countless parameters and configuration
 files in order to automate all possible tasks. This entails that the
 programmer spends more time dealing with the Symfony framework
 than with the real problem.

 P.S. I did nothing special but just followed the Jobeet tutorial.

 WBR,
 Ghost3D


 On Sep 18, 4:24 pm, Sid Bachtiar sid.bacht...@gmail.com wrote:
  It is necessary to invest so much effort to do a relatively simple
  application.

 If you're just learning Symfony, then yes of course you'll find it too
 much effort. This is true with any other framework/technology.

 But for those of us who have invested our time in Symfony, we find
 great leverage in using Symfony.

 So what is the relatively simple application you're trying to build?

 On Sat, Sep 19, 2009 at 1:58 AM, bghost bggho...@gmail.com wrote:

  It is necessary to invest so much effort to do a relatively simple
  application.
  Productivity and profitability of such work is very questionable.

  So, Symfony - Goodbye

 --
 Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz
 




-- 
Blue Horn Ltd - System Development
http://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: Assign value to form fields

2009-09-15 Thread Sid Bachtiar

Try:

$this-form-setValue('first_name', 'Michael');

or use this instead to set default value

$this-form-setDefault('first_name', 'Michael');


On Tue, Sep 15, 2009 at 6:51 PM, mirfan m.irfa...@gmail.com wrote:

 Hi,
 I have a form and i want to assign value to its field from my
 action.class.php like

     $this-form['first_name'] = 'Micheal';

 but its give me error how i will handle it?

 




-- 
Blue Horn Ltd - System Development
http://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: Ajax queuing behaviour driving us mad

2009-09-15 Thread Sid Bachtiar

It is most likely due to PHP session locking:
http://nz2.php.net/manual/en/ref.session.php#64525

On Tue, Sep 15, 2009 at 11:45 PM, Gareth McCumskey gmccums...@gmail.com wrote:
 Hi all,

 We have encountered an odd problem that I believe should not be happening.
 Let me try and describe it as best I can.

 We have a symfony developed application using the Prototype javascript
 library. One of our pages (and others) make multiple ajax calls on load.
 Basically we have a few div's on one page that needs to be populated with
 the ajax returns. What seems to be happening though is instead of each ajax
 call going to the server at the same time, we have the ajax calls queuing.
 What this means is that if one ajax call takes a long time to return a
 result (because of server load for example) all the other ajax calls wait
 until that item has recieved its response before they make their requests to
 the server.

 Even if, while these ajax elements are waiting for a response, the user
 clicks another link to another part of the site, the browser will not load
 the new page until all the ajax calls are complete.

 We have thought of a number of possible causes but are struggling to figure
 out where this may happen. Is it the ajax itself that only allows one
 connection (client-side), the apache server limiting the number of
 connections per client, the PHP server only allowing processing of one
 request per client etc.

 Any insight to this problem would be greatly appreciated.

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

 




-- 
Blue Horn Ltd - System Development
http://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: Ajax queuing behaviour driving us mad

2009-09-15 Thread Sid Bachtiar

It's not Symfony, it's PHP session thing. But this issue is not unique
to PHP either.

  Basically we have a few div's on one page that needs to be populated
  with
  the ajax returns. What seems to be happening though is instead of each

You really need to just have one ajax call per event (e.g.: page load)

On Wed, Sep 16, 2009 at 12:11 AM, Gareth McCumskey gmccums...@gmail.com wrote:
 Thanks, looking at that link it seems to be exactly what we are
 experiencing. Would you know a way we could turn that session locking off
 within symfony? I am not too fond of the example given in that link.

 On Tue, Sep 15, 2009 at 1:57 PM, Sid Bachtiar sid.bacht...@gmail.com
 wrote:

 It is most likely due to PHP session locking:
 http://nz2.php.net/manual/en/ref.session.php#64525

 On Tue, Sep 15, 2009 at 11:45 PM, Gareth McCumskey gmccums...@gmail.com
 wrote:
  Hi all,
 
  We have encountered an odd problem that I believe should not be
  happening.
  Let me try and describe it as best I can.
 
  We have a symfony developed application using the Prototype javascript
  library. One of our pages (and others) make multiple ajax calls on load.
  Basically we have a few div's on one page that needs to be populated
  with
  the ajax returns. What seems to be happening though is instead of each
  ajax
  call going to the server at the same time, we have the ajax calls
  queuing.
  What this means is that if one ajax call takes a long time to return a
  result (because of server load for example) all the other ajax calls
  wait
  until that item has recieved its response before they make their
  requests to
  the server.
 
  Even if, while these ajax elements are waiting for a response, the user
  clicks another link to another part of the site, the browser will not
  load
  the new page until all the ajax calls are complete.
 
  We have thought of a number of possible causes but are struggling to
  figure
  out where this may happen. Is it the ajax itself that only allows one
  connection (client-side), the apache server limiting the number of
  connections per client, the PHP server only allowing processing of one
  request per client etc.
 
  Any insight to this problem would be greatly appreciated.
 
  --
  Gareth McCumskey
  http://garethmccumskey.blogspot.com
  twitter: @garethmcc
 
  
 



 --
 Blue Horn Ltd - System Development
 http://bluehorn.co.nz





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

 




-- 
Blue Horn Ltd - System Development
http://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: Fast query on all records

2009-09-14 Thread Sid Bachtiar

You realized that your update code only get executed upon saving new
record? It's because of: if($this-isNew())

On Mon, Sep 14, 2009 at 10:10 PM, HAUSa
jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:

 My thought as well, but however it should be executed!
 When I create a new record, the last piece of code ($this-setRank(1))
 is executed, all new records have '1' as rank value.


 On 14 sep, 01:00, Sid Bachtiar sid.bacht...@gmail.com wrote:
 If it doesn't show up and there's no error, it is possible that the
 piece of code isn't executed at all.

 On Mon, Sep 14, 2009 at 10:19 AM, HAUSa



 jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:

  Hmm... that query is not found in the controlpanel_dev.log...

  sep 14 00:13:20 symfony [info] {estateActions} Call estateActions-
 executeCreate()
  sep 14 00:13:20 symfony [debug] {sfPropelLogger} exec: SET NAMES
  'utf8'
  sep 14 00:13:20 symfony [debug] {sfPropelLogger} prepare: INSERT INTO
  estate
  (`ID`,`TITLE`,`SLUG`,`TYPE`,`SURFACE`,`PRICE`,`INTRODUCTION`,`DESCRIPTION`,`AVAILABLE`,`ATTENTION`,`RANK`)
  VALUES (:p1,:p2,:p3,:p4,:p5,:p6,:p7,:p8,:p9,:p10,:p11)
  sep 14 00:13:20 symfony [debug] {sfPropelLogger} Binding NULL at
  position :p1 w/ PDO type PDO::PARAM_NULL
  sep 14 00:13:20 symfony [debug] {sfPropelLogger} Binding 'Test 6' at
  position :p2 w/ PDO type PDO::PARAM_STR
  sep 14 00:13:20 symfony [debug] {sfPropelLogger} Binding 'test-6' at
  position :p3 w/ PDO type PDO::PARAM_STR
  sep 14 00:13:20 symfony [debug] {sfPropelLogger} Binding 'buy' at
  position :p4 w/ PDO type PDO::PARAM_STR
  sep 14 00:13:20 symfony [debug] {sfPropelLogger} Binding 105 at
  position :p5 w/ PDO type PDO::PARAM_INT
  sep 14 00:13:20 symfony [debug] {sfPropelLogger} Binding 1200.5 at
  position :p6 w/ PDO type PDO::PARAM_STR
  sep 14 00:13:20 symfony [debug] {sfPropelLogger} Binding 'fadsf adg'
  at position :p7 w/ PDO type PDO::PARAM_STR
  sep 14 00:13:20 symfony [debug] {sfPropelLogger} Binding '' at
  position :p8 w/ PDO type PDO::PARAM_STR
  sep 14 00:13:20 symfony [debug] {sfPropelLogger} Binding 1 at
  position :p9 w/ PDO type PDO::PARAM_INT
  sep 14 00:13:20 symfony [debug] {sfPropelLogger} Binding 0 at
  position :p10 w/ PDO type PDO::PARAM_INT
  sep 14 00:13:20 symfony [debug] {sfPropelLogger} Binding 1 at
  position :p11 w/ PDO type PDO::PARAM_INT
  sep 14 00:13:21 symfony [info] {sfFrontWebController} Redirect to
  http://controlpanel.dev.benvermeergroep.nl/index.php/estate/new;

  This query should be executed on save:
  public function save(PropelPDO $oCon = null){

         if($this-isNew()){
                 $oConnection = Propel::getConnection();

                 $oSelectCriteria = new Criteria();

                 $oUpdateCriteria = new Criteria();
                 $oUpdateCriteria-add(EstatePeer::RANK, '5');

                 BasePeer::doUpdate($oSelectCriteria, $oUpdateCriteria,
  $oConnection);

                 $this-setRank(1);
         }

         return parent::save($oCon);

  }

  On 14 sep, 00:07, Sid Bachtiar sid.bacht...@gmail.com wrote:
  What's the SQL query in the debug log?

  On Mon, Sep 14, 2009 at 10:03 AM, HAUSa

  jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:

   No...

   On 13 sep, 23:53, Sid Bachtiar sid.bacht...@gmail.com wrote:
   Did you get any error message?

   On Mon, Sep 14, 2009 at 9:44 AM, HAUSa

   jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:

I tried that, that was my helas no difference answer.
But besides that, I also tried the '5' instead of 'rank=rank+1'
update, but also that didn't work.

My code now:
$oConnection = Propel::getConnection();

$oSelectCriteria = new Criteria();

$oUpdateCriteria = new Criteria();
$oUpdateCriteria-add(EstatePeer::RANK, '5');

BasePeer::doUpdate($oSelectCriteria, $oUpdateCriteria, $oConnection);

On 13 sep, 23:35, Gábor Fási maerl...@gmail.com wrote:
This criteria means: all records, that have a star as their ID. Try
Sid's modification, so an empty criteria, that means all records.

On Sun, Sep 13, 2009 at 23:14, HAUSa

jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:
 $oSelectCriteria-add(EstatePeer::ID, '*'); //all records

   --
   Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz

  --
  Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz

 --
 Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz
 




-- 
Blue Horn Ltd - System Development
http://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: pkToolkitPlugin gems: a lightweight HTML filter, and a handy way to ssh to your staging and production servers

2009-09-14 Thread Sid Bachtiar

Great plugin! Thank you ... I am using it on my project :D

On Tue, Sep 15, 2009 at 1:59 AM, Tom Boutell t...@punkave.com wrote:

 Unlike most of our plugins, pkToolkitPlugin is a bit of a kitchen
 sink. It contains a lot of utility classes, some more experimental
 things, and not a lot of documentation. So it's easy to miss the great
 stuff that lives there.

 Better documentation is coming as various items in that plugin mature.
 But I'd like to share two particularly useful and stable features that
 folks probably don't realize are there:

 * The pkToolkit:ssh task. This is a convenient way to open up an
 interactive ssh connection to any staging or production server
 configured in properties.ini. Just type:

 ./symfony pkToolkit:ssh staging

 You'll be prompted for the password of the staging site. When the
 connection is made, the script automatically changes directory to the
 project's directory, which is almost always the next thing you'd do
 anyway. And then it becomes a normal interactive shell.

 Note that the 'expect' utility must be installed on your computer for
 this to work, and it probably won't work on a Windows host. Macs come
 with expect, and it is an easily installed package on Linux.

 * The pkHtml class. Many projects allow users to edit content via a
 rich text editor. And we all know what happens if the user pastes a
 Word document in there: the styles of the page wind up hopelessly
 munged. You can use striptags(), but that doesn't clean up the CSS, so
 your page is still a mess.

 A common workaround is to use FCK's paste as plaintext mode, which
 thwarts attempts to paste rich text from another program. That works,
 after a fashion, but it's frustrating for users. And none of the
 workarounds help if the user is actively trying to enter inappropriate
 HTML in a misguided attempt to re-style their site... then calling you
 to fix it for the 500th time.

 HTML Tidy can do the job, but it has a reputation for being heavy and slow.

 Or... you can just use pkHtml::simplify():

 pkHtml::simplify($richTextHTML,
 h3h4h5h6blockquotepaulolnllibistrongemstrikecodehrbrdivtabletheadcaptiontbodytrthtd);

 If that looks a lot like the arguments to striptags(), you're right.
 But pkHtml::simplify() follows up striptags() with a DOMDocument-based
 filter that removes attributes too, except for the attributes that
 actually make sense to permit for certain tags. Currently this is:

 A tag - href and name attributes
 img tag - src attribute

 You don't have to use pkHtml::simplify() manually, either. Instead,
 you can use the sfValidatorHtml validator, also found in pkToolkit,
 which allows the above list of tags by default because they are
 well-suited to user-entered content (you can change that).

 pkHtml is much more lightweight than Tidy. On one project we needed to
 separately clean hundreds of potential HTML containers in a single XML
 document, in real time, before presenting some of that information to
 the user. pkHtml::simplify turns that around very quickly indeed.

 Our pkContextCMSPlugin takes advantage of pkHtml::simplify() to allow
 rich text editing without the constant oops I screwed up my site
 issues that come up without a robust server-side filter.

 For convenience we also package Dominic Schierlinck's
 sfWidgetFormRichTextarea widget. It's meant to be compatible with both
 MCE and FCK, although we always use FCK.

 --
 Tom Boutell
 P'unk Avenue
 215 755 1330
 punkave.com
 window.punkave.com

 




-- 
Blue Horn Ltd - System Development
http://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: Fast query on all records

2009-09-13 Thread Sid Bachtiar

This might help

http://snippets.symfony-project.org/snippet/50

On Mon, Sep 14, 2009 at 8:44 AM, HAUSa
jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:

 Is there a fast way to update all records matching a criteria?

 What I could do, is this:
 $results = MyPeer::doSelect(new Criteria());
 foreach($results as $result){
  $result-setValue('new');
  $result-save();
 }

 But that executes many database requests. Is there a way to execute
 this query:
 UPDATE mytable SET value='new'
 




-- 
Blue Horn Ltd - System Development
http://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: Fast query on all records

2009-09-13 Thread Sid Bachtiar

Try this:

$oConnection = Propel::getConnection();

$oSelectCriteria = new Criteria();

$oUpdateCriteria = new Criteria();
$oUpdateCriteria-add(EstatePeer::RANK, 'rank=rank+1',
Criteria::CUSTOM_EQUAL); // rank goes 1 up

BasePeer::doUpdate($oSelectCriteria, $oUpdateCriteria, $oConnection);


On Mon, Sep 14, 2009 at 9:14 AM, HAUSa
jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:

 Thanks for you quick replies!

 But, helas, it doesn't work for me. I don't get an error, but the
 query is just not executed. Or the query is built in a way that
 doesn't have any effect.

 This is my code:

 $oConnection = Propel::getConnection();

 $oSelectCriteria = new Criteria();
 $oSelectCriteria-add(EstatePeer::ID, '*'); //all records

 $oUpdateCriteria = new Criteria();
 $oUpdateCriteria-add(EstatePeer::RANK, 'rank=rank+1',
 Criteria::CUSTOM_EQUAL); // rank goes 1 up

 BasePeer::doUpdate($oSelectCriteria, $oUpdateCriteria, $oConnection);


 On 13 sep, 22:46, Sid Bachtiar sid.bacht...@gmail.com wrote:
 This might help

 http://snippets.symfony-project.org/snippet/50

 On Mon, Sep 14, 2009 at 8:44 AM, HAUSa



 jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:

  Is there a fast way to update all records matching a criteria?

  What I could do, is this:
  $results = MyPeer::doSelect(new Criteria());
  foreach($results as $result){
   $result-setValue('new');
   $result-save();
  }

  But that executes many database requests. Is there a way to execute
  this query:
  UPDATE mytable SET value='new'

 --
 Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz
 




-- 
Blue Horn Ltd - System Development
http://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: Fast query on all records

2009-09-13 Thread Sid Bachtiar

Did you get any error message?

On Mon, Sep 14, 2009 at 9:44 AM, HAUSa
jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:

 I tried that, that was my helas no difference answer.
 But besides that, I also tried the '5' instead of 'rank=rank+1'
 update, but also that didn't work.

 My code now:
 $oConnection = Propel::getConnection();

 $oSelectCriteria = new Criteria();

 $oUpdateCriteria = new Criteria();
 $oUpdateCriteria-add(EstatePeer::RANK, '5');

 BasePeer::doUpdate($oSelectCriteria, $oUpdateCriteria, $oConnection);


 On 13 sep, 23:35, Gábor Fási maerl...@gmail.com wrote:
 This criteria means: all records, that have a star as their ID. Try
 Sid's modification, so an empty criteria, that means all records.

 On Sun, Sep 13, 2009 at 23:14, HAUSa

 jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:
  $oSelectCriteria-add(EstatePeer::ID, '*'); //all records
 




-- 
Blue Horn Ltd - System Development
http://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: Fast query on all records

2009-09-13 Thread Sid Bachtiar

What's the SQL query in the debug log?

On Mon, Sep 14, 2009 at 10:03 AM, HAUSa
jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:

 No...

 On 13 sep, 23:53, Sid Bachtiar sid.bacht...@gmail.com wrote:
 Did you get any error message?

 On Mon, Sep 14, 2009 at 9:44 AM, HAUSa



 jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:

  I tried that, that was my helas no difference answer.
  But besides that, I also tried the '5' instead of 'rank=rank+1'
  update, but also that didn't work.

  My code now:
  $oConnection = Propel::getConnection();

  $oSelectCriteria = new Criteria();

  $oUpdateCriteria = new Criteria();
  $oUpdateCriteria-add(EstatePeer::RANK, '5');

  BasePeer::doUpdate($oSelectCriteria, $oUpdateCriteria, $oConnection);

  On 13 sep, 23:35, Gábor Fási maerl...@gmail.com wrote:
  This criteria means: all records, that have a star as their ID. Try
  Sid's modification, so an empty criteria, that means all records.

  On Sun, Sep 13, 2009 at 23:14, HAUSa

  jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:
   $oSelectCriteria-add(EstatePeer::ID, '*'); //all records

 --
 Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz
 




-- 
Blue Horn Ltd - System Development
http://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: Fast query on all records

2009-09-13 Thread Sid Bachtiar

If it doesn't show up and there's no error, it is possible that the
piece of code isn't executed at all.

On Mon, Sep 14, 2009 at 10:19 AM, HAUSa
jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:

 Hmm... that query is not found in the controlpanel_dev.log...

 sep 14 00:13:20 symfony [info] {estateActions} Call estateActions-
executeCreate()
 sep 14 00:13:20 symfony [debug] {sfPropelLogger} exec: SET NAMES
 'utf8'
 sep 14 00:13:20 symfony [debug] {sfPropelLogger} prepare: INSERT INTO
 estate
 (`ID`,`TITLE`,`SLUG`,`TYPE`,`SURFACE`,`PRICE`,`INTRODUCTION`,`DESCRIPTION`,`AVAILABLE`,`ATTENTION`,`RANK`)
 VALUES (:p1,:p2,:p3,:p4,:p5,:p6,:p7,:p8,:p9,:p10,:p11)
 sep 14 00:13:20 symfony [debug] {sfPropelLogger} Binding NULL at
 position :p1 w/ PDO type PDO::PARAM_NULL
 sep 14 00:13:20 symfony [debug] {sfPropelLogger} Binding 'Test 6' at
 position :p2 w/ PDO type PDO::PARAM_STR
 sep 14 00:13:20 symfony [debug] {sfPropelLogger} Binding 'test-6' at
 position :p3 w/ PDO type PDO::PARAM_STR
 sep 14 00:13:20 symfony [debug] {sfPropelLogger} Binding 'buy' at
 position :p4 w/ PDO type PDO::PARAM_STR
 sep 14 00:13:20 symfony [debug] {sfPropelLogger} Binding 105 at
 position :p5 w/ PDO type PDO::PARAM_INT
 sep 14 00:13:20 symfony [debug] {sfPropelLogger} Binding 1200.5 at
 position :p6 w/ PDO type PDO::PARAM_STR
 sep 14 00:13:20 symfony [debug] {sfPropelLogger} Binding 'fadsf adg'
 at position :p7 w/ PDO type PDO::PARAM_STR
 sep 14 00:13:20 symfony [debug] {sfPropelLogger} Binding '' at
 position :p8 w/ PDO type PDO::PARAM_STR
 sep 14 00:13:20 symfony [debug] {sfPropelLogger} Binding 1 at
 position :p9 w/ PDO type PDO::PARAM_INT
 sep 14 00:13:20 symfony [debug] {sfPropelLogger} Binding 0 at
 position :p10 w/ PDO type PDO::PARAM_INT
 sep 14 00:13:20 symfony [debug] {sfPropelLogger} Binding 1 at
 position :p11 w/ PDO type PDO::PARAM_INT
 sep 14 00:13:21 symfony [info] {sfFrontWebController} Redirect to
 http://controlpanel.dev.benvermeergroep.nl/index.php/estate/new;

 This query should be executed on save:
 public function save(PropelPDO $oCon = null){

        if($this-isNew()){
                $oConnection = Propel::getConnection();

                $oSelectCriteria = new Criteria();

                $oUpdateCriteria = new Criteria();
                $oUpdateCriteria-add(EstatePeer::RANK, '5');

                BasePeer::doUpdate($oSelectCriteria, $oUpdateCriteria,
 $oConnection);

                $this-setRank(1);
        }

        return parent::save($oCon);

 }


 On 14 sep, 00:07, Sid Bachtiar sid.bacht...@gmail.com wrote:
 What's the SQL query in the debug log?

 On Mon, Sep 14, 2009 at 10:03 AM, HAUSa



 jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:

  No...

  On 13 sep, 23:53, Sid Bachtiar sid.bacht...@gmail.com wrote:
  Did you get any error message?

  On Mon, Sep 14, 2009 at 9:44 AM, HAUSa

  jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:

   I tried that, that was my helas no difference answer.
   But besides that, I also tried the '5' instead of 'rank=rank+1'
   update, but also that didn't work.

   My code now:
   $oConnection = Propel::getConnection();

   $oSelectCriteria = new Criteria();

   $oUpdateCriteria = new Criteria();
   $oUpdateCriteria-add(EstatePeer::RANK, '5');

   BasePeer::doUpdate($oSelectCriteria, $oUpdateCriteria, $oConnection);

   On 13 sep, 23:35, Gábor Fási maerl...@gmail.com wrote:
   This criteria means: all records, that have a star as their ID. Try
   Sid's modification, so an empty criteria, that means all records.

   On Sun, Sep 13, 2009 at 23:14, HAUSa

   jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:
$oSelectCriteria-add(EstatePeer::ID, '*'); //all records

  --
  Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz

 --
 Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz
 




-- 
Blue Horn Ltd - System Development
http://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: Partial fields and credentials in admin generator

2009-09-10 Thread Sid Bachtiar

Try just owner not _owner when using partial under fields:.

On Fri, Sep 11, 2009 at 3:26 AM, Jacopo Jakuza Romei jro...@gmail.com wrote:

 Hi everyone,

 first thanks for your attention.

 The following setting in my generator.yml

 fields:
  _owners:
   credentials:      [admin]

 gets ignored while the non-partial version

 fields:
  Owners:
   credentials:      [admin]

 works as expected and 'Owners' field gets hidden when the user doesn't
 have 'admin' credentials.

 Can you tell me why and how to workaround or even solve this issue?
 Thanks a lot again

   Jacopo
 




-- 
Blue Horn Ltd - System Development
http://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
-~--~~~~--~~--~--~---



  1   2   3   4   >