[symfony-users] Re: 1.2.5 chokes trying to unlink a nonexistant cache file

2009-04-02 Thread Fabien Potencier
I have updated the patch for all versions of symfony because contrary to the rename() function, the copy() function works as expected on Windows. Moreover, as of PHP 5.2.6, the rename() function works. So, I have applied the same trick that Agavi did to fix the same race condition problem

[symfony-users] Re: Sf. 1.2 Clear cache by executing file

2009-04-02 Thread Tomasz Ignatiuk
for $last_line = system(dir \\, $retval); there is FusionCharts frontend.php js sfProtoculousPlugin backend.php frontend_dev.php robots.txt sf_cc_webscript.php backend_dev.php imagessfFormExtraPlugin uploads css index.php

[symfony-users] Re: 1.2.5 chokes trying to unlink a nonexistant cache file

2009-04-02 Thread Fabian Lange
Hi Fabien, @rename does not work, because it issues a Warning, which is the root cause for people on this thread. Fabian On Thu, Apr 2, 2009 at 8:49 AM, Fabien Potencier fabien.potenc...@symfony-project.com wrote: I have updated the patch for all versions of symfony because contrary to the

[symfony-users] Re: Add Foreign Key to mysql table

2009-04-02 Thread DeepakBhatia
I have two tables as given below. I need to add a column in project_table which is INT and refers to the projecttype_table(id) field. project_table { Name Varchar(100) } projecttype_table { id INT AUTO INCREMENT NOT NULL, projecttype_name Varchar(50) } Approach #1 === mysql alter

[symfony-users] Re: Sf. 1.2 Clear cache by executing file

2009-04-02 Thread Tomasz Ignatiuk
OK, It's working :) Thank you Yevgeniy for your help and your patience :) ?php require_once '/home/users/iwitch/public_html/pd/lib/symfony/autoload/ sfCoreAutoload.class.php'; sfCoreAutoload::register(); ? ?php chdir('../'); $fs = new sfFilesystem(); $res = $fs-sh('php symfony cc'); echo

[symfony-users] Admin generator: no action labels

2009-04-02 Thread HAUSa
Is it in the generator.yml possible to create an action without a label? So only the icon is visible (and clickable)? I tried false (then the url to the action is visible) and none and empty. The last two just show the text none and empty. --~--~-~--~~~---~--~~

[symfony-users] could somebody give me some tutorial or tell how I can create my own error page ?

2009-04-02 Thread dziobacz
could somebody give me some tutorial or tell how I can create my own error page ? --~--~-~--~~~---~--~~ 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] Re: could somebody give me some tutorial or tell how I can create my own error page ?

2009-04-02 Thread Sid Bachtiar
Error page? It's just like any other page on Symfony. You need to be more specific. On Thu, Apr 2, 2009 at 2:35 AM, dziobacz aaabbbcccda...@gmail.com wrote: could somebody give me some tutorial or tell how I can create my own error page ? -- Blue Horn Ltd - System Development

[symfony-users] Re: could somebody give me some tutorial or tell how I can create my own error page ?

2009-04-02 Thread Sid Ferreira
Create a module named default.there, you add the action error404 and a template to it. It's DONE :D On Thu, Apr 2, 2009 at 09:04, Sid Bachtiar sid.bacht...@gmail.com wrote: Error page? It's just like any other page on Symfony. You need to be more specific. On Thu, Apr 2, 2009 at 2:35 AM,

[symfony-users] Re: could somebody give me some tutorial or tell how I can create my own error page ?

2009-04-02 Thread michael.pie...@googlemail.com
Sorry beeing so short, but almost anything you ask is explained in the docs. Michael On 2 Apr., 12:35, dziobacz aaabbbcccda...@gmail.com wrote: could somebody give me some tutorial or tell how I can create my own error page ? --~--~-~--~~~---~--~~ You received

[symfony-users] sfWidgetFormInputFileEditable delete checkbox class

2009-04-02 Thread HAUSa
When I use sfWidgetFormInputFileEditable, there automatically shows a delete current file checkbox in the edit action. This my code: $this-widgetSchema['logo'] = new sfWidgetFormInputFileEditable(array ( 'file_src' = '/uploads/studies/' .

[symfony-users] Re: could somebody give me some tutorial or tell how I can create my own error page ?

2009-04-02 Thread Dheeraj Kumar Aggarwal
hi simply copy the default directory into your modules directory $sf_symfony_lib_dir/controller/default/ then customize them according to you for more info: http://www.symfony-project.org/book/1_1/17-Extending-Symfony On Thu, Apr 2, 2009 at 5:35 PM, Sid Ferreira sid@gmail.com wrote:

[symfony-users] Re: Add Foreign Key to mysql table

2009-04-02 Thread whalexis
Hi you should have a look at this http://dev.mysql.com/doc/refman/5.1/en/innodb-foreign-key-constraints.html Everything you need is there On Apr 2, 4:10 am, DeepakBhatia toreachdee...@gmail.com wrote: I have two tables as given below. I need to add a column in project_table which is INT and

[symfony-users] Re: could somebody give me some tutorial or tell how I can create my own error page ?

2009-04-02 Thread dziobacz
I made apps\frontend\modules\default\templates\error404Success.php with code: ERROR and apps\frontend\modules\default\actions\actions.class.php with code: ?php class defaultActions extends sfActions { public function executeError404(sfWebRequest $request) { } } But when I use:

[symfony-users] Re: could somebody give me some tutorial or tell how I can create my own error page ?

2009-04-02 Thread Sid Bachtiar
This is on top of my head. Check your settings.yml There's a setting where you can specify you want your 404 to go to default/error404 Don't forget to clear cache On Thu, Apr 2, 2009 at 5:30 AM, dziobacz aaabbbcccda...@gmail.com wrote: I made

[symfony-users] Re: could somebody give me some tutorial or tell how I can create my own error page ?

2009-04-02 Thread Gareth McCumskey
Clear cache .. thats what has caused your problem. The autoloader hasn't loaded your new classes and is still using looking for the symfony defaults based on the cached autoloader file On Thu, Apr 2, 2009 at 3:30 PM, dziobacz aaabbbcccda...@gmail.com wrote: I made

[symfony-users] Re: could somebody give me some tutorial or tell how I can create my own error page ?

2009-04-02 Thread dziobacz
Yes, yes, yes !! It works !! - I forgot about clear cache - thx Sid, second Sid, Dheeraj and Gareth xD Can I add an error communicate like that: $this-getUser()-setFlash('msg', 'horrible error'); $this-forward404(); and in error404Success.php: ?php if ($sf_user-hasFlash('wiad5')): echo

[symfony-users] Re: could somebody give me some tutorial or tell how I can create my own error page ?

2009-04-02 Thread Sid Bachtiar
$this-getUser() works for any user, login or not On Thu, Apr 2, 2009 at 6:01 AM, dziobacz aaabbbcccda...@gmail.com wrote: Yes, yes, yes !! It works !! - I forgot about clear cache - thx Sid, second Sid, Dheeraj and Gareth xD I have one more question. Can I add an error communicate like

[symfony-users] pkMediaPlugin released

2009-04-02 Thread Tom Boutell
We've just released pkMediaPlugin. pkMediaPlugin provides five key services: * A front end user interface for browsing, uploading, and managing media (still images and video). * A front end user interface for selecting media and then returning the user to a specified URL within your

[symfony-users] Re: pkMediaPlugin released

2009-04-02 Thread cleve
Awesome thanks Tom! On Apr 2, 3:33 pm, Tom Boutell t...@punkave.com wrote: We've just released pkMediaPlugin. pkMediaPlugin provides five key services:     * A front end user interface for browsing, uploading, and managing media (still images and video).     * A front end user interface

[symfony-users] Re: pkMediaPlugin released

2009-04-02 Thread Pablo Godel
Great contribution!! thanks! On Thu, Apr 2, 2009 at 10:51 AM, cleve cleve...@gmail.com wrote: Awesome thanks Tom! On Apr 2, 3:33 pm, Tom Boutell t...@punkave.com wrote: We've just released pkMediaPlugin. pkMediaPlugin provides five key services:     * A front end user interface for

[symfony-users] Re: could somebody give me some tutorial or tell how I can create my own error page ?

2009-04-02 Thread dziobacz
Thx Sid xD On 2 Kwi, 16:10, Sid Bachtiar sid.bacht...@gmail.com wrote: $this-getUser() works for any user, login or not On Thu, Apr 2, 2009 at 6:01 AM, dziobacz aaabbbcccda...@gmail.com wrote: Yes, yes, yes !! It works !! - I forgot about clear cache - thx Sid, second Sid, Dheeraj and

[symfony-users] Format of plain text email

2009-04-02 Thread Steve the Canuck
Hi, I am sending plain text emails from my app using Swift Mailer. The email bodies are all stored in partials. What I am noticing is that the line breaks are not in the email when the email is received. For example: A goalie has applied to play in your booking: From: ?php echo

[symfony-users] Re: Format of plain text email

2009-04-02 Thread FÁSI Gábor
Do you get the linebreaks in the source? You can check it with the 'show original' menuitem under the downarrow. On Thu, Apr 2, 2009 at 18:46, Steve the Canuck steve.san...@gmail.com wrote: Hi, I am sending plain text emails from my app using Swift Mailer.  The email bodies are all stored

[symfony-users] Re: could somebody give me some tutorial or tell how I can create my own error page ?

2009-04-02 Thread Gareth McCumskey
Yes you can. User sessions are not only for logged in users but are used per user visiting your site. It just so happens that PHP's $_SESSION global is handy to use for authenticating so thats what it has been used for primarily. On Thu, Apr 2, 2009 at 3:59 PM, dziobacz aaabbbcccda...@gmail.com

[symfony-users] Re: Format of plain text email

2009-04-02 Thread Steve the Canuck
No, it seems not, other than the first linebreak. The email comes out as: A goalie has applied to play in your booking: From: 2009-04-03 10:00:00 To: 2009-04-03 11:00:00At: Varsity ArenaFor: Ice Hockey, Shinny, Level Chttp://goaliegigs.local/frontend_dev.php/goalies/apply-for-booking/1 It

[symfony-users] Re: Format of plain text email

2009-04-02 Thread Steve the Canuck
After playing around, it seems like I can do something like add a period . to the end of the line, and then the linebreak is properly recognized. However, simply adding a space character doesn't do the trick. It seems that if the line ends with a ? tag, the line break is ignored. I'm not sure

[symfony-users] Database already exists and is populated

2009-04-02 Thread Atznt
We have a BIG problem. It seems the task propel-insert-sql MUST BE DONE, in order to acces to our database right on. Our Database already exists and is populated with information extremly sensitive, therefore that task will ERASE and recreate tables. There is no way touching (except for DDL) the

[symfony-users] Re: Database already exists and is populated

2009-04-02 Thread Sid Bachtiar
We have a BIG problem. It seems the task propel-insert-sql MUST BE DONE, in order to acces to our database right on. Our Database already exists and is populated with information extremly sensitive, therefore that task will ERASE and recreate tables. You don't have to run propel-insert-sql

[symfony-users] Re: PEAR broken?

2009-04-02 Thread Ant Cunningham
Eno wrote: I built PHP from source on Solaris. So no distro or package system is involved. Doing 'make install' tells me that PEAR is already installed but the install is obviously broken. I dont see a target in the Makefile to force a re-install. You might want to try Sun's Webstack.

[symfony-users] are there anyway to reduce the memory size

2009-04-02 Thread xhe
I am using shared hosting, but my backend can not be used due to memory inefficiency: Fatal error: Out of memory (allocated 51380224) (tried to allocate 7680 bytes) in /home1/transla1/public_html/symfony-clb/lib/model/om/ BaseUserColorEyePeer.php on line 80 are there anyway to reduce the memory