Add a _uniques property to your table :
table:
...
_uniques:
unq_username_affiliate: [username, affiliate_id]
Note : I could have honestly said RTFM =
http://www.symfony-project.org/book/1_2/08-Inside-the-Model-Layer and
look for Indexes.
On 14 avr, 17:09, Phil Moorhouse
For example is when a logger is registered and it's auto_shutdown
method is delegated to a global auto_shutdown method. I think checking
if the logger is instantiated is necessary because it will be created
unnecessarily just for it to be shutdown
$sc = new sfServiceContainerBuilder();
Thanks, I thought i'd checked that section but obviously not.
On 15 Apr, 08:20, naholyr naho...@gmail.com wrote:
Add a _uniques property to your table :
table:
...
_uniques:
unq_username_affiliate: [username, affiliate_id]
Note : I could have honestly said RTFM
Hi,
it's a simple methode :
$c = new Criteria() ;
$c-add(CvPeer::ACTIVE, 1) ;
return CvPeer::doSelect($c) ;
And the table structure is :
id : PRIMARY KEY
title
(I have also a __toString method to display the cv title)
Thanks ;)
On 14 avr, 14:15, naholyr naho...@gmail.com wrote:
I have output escaping set to on and I'm using substitution with %
%getter%%
My getter returns HTML, so I want to use the RAW value.
Is it possible???
Thanks, Jonathan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
I have read some articles about method put, post and delete in symfony
but I still don't understand that.
If I have: link_to( 'click me', '/profile/users/action/57', array
('method' = '...') )
1. I want to delete something with id=57 from database. Should I use
method delete ?
2. I want to
It's not like you 'should' or 'must', it's just a convention to use
delete for deletion, put for creation or update.
Check this:
http://en.wikipedia.org/wiki/Representational_State_Transfer#RESTful_example:_the_World_Wide_Web
On Wed, Apr 15, 2009 at 14:12, dziobacz aaabbbcccda...@gmail.com
I have read that previous ;]
'convention' so: delete, put and post - these are only names ? So I
could use method 'delete' in link_to() to insert something in
database ? It will be strange but still correct ? :)
On 15 Kwi, 14:18, FÁSI Gábor maerl...@gmail.com wrote:
It's not like you 'should'
I'm working on an application that deals with a large amount of data,
including DATETIME format dates. These dates have different formatting
requirements from column to column and even within the same module view,
i.e. a DATETIME might need to appear as 01-20-2009 in one place and
again as
Why not use the built in PHP date_format function?
http://uk3.php.net/manual/en/function.date-format.php
On 15 Apr 2009, at 09:03, Kevin Barsotti wrote:
I'm working on an application that deals with a large amount of data,
including DATETIME format dates. These dates have different
Hi all ;
I found a probleme in a propel generation when adding some i18n table
in my schema.yml file .
Whene i execute : symfony propel:build-model
I don't have any warning message or error
But whene i lunch my site i have this error :
Parse error: parse error, expecting `')'' in www\lib\model\om
Hi all,
I'm trying to use Symfony 1.2 with Swift and I got a strange issue..
$methodObject = new Swift_Connection_SMTP('smtp.gmail.com', 465,
Swift_Connection_SMTP::ENC_SSL);
$methodObject-setUsername('un...@gmail.com');
$methodObject-setPassword('PWD');
$mailer = new
did you check your PHP error log ? It seems to me you are getting a
PHP fatal error before echo.
If for some reason you can't see the error log, try to move the echo
line up until you find it, then you will know on what line the error
is.
Pablo
On Wed, Apr 15, 2009 at 11:20 AM, Adrien Mogenet
I tried to move the `echo`, and the error occurs just after the new
Swift() line...
I'll checked my error log, it's still empty :-X
I also tried to use ENC_TLS instead of using ENC_SSL
--
Adrien
On 15 avr, 17:24, Pablo Godel pgo...@gmail.com wrote:
did you check your PHP error log ? It seems
did you try another connection method? It is possible that PHP is not
finding the class.
On Wed, Apr 15, 2009 at 11:31 AM, Adrien Mogenet
adrien.moge...@gmail.com wrote:
I tried to move the `echo`, and the error occurs just after the new
Swift() line...
I'll checked my error log, it's still
I performed a test using `class_exists()` and Swift class seems to be
correctly loaded...
--
Adrien
On 15 avr, 17:34, Pablo Godel pgo...@gmail.com wrote:
did you try another connection method? It is possible that PHP is not
finding the class.
On Wed, Apr 15, 2009 at 11:31 AM, Adrien
ok - thx, now I understand - thx Gabor :)
On 15 Kwi, 16:52, FÁSI Gábor maerl...@gmail.com wrote:
It will be semantically incorrect and not restful, but it will work.
On Wed, Apr 15, 2009 at 14:58, dziobacz aaabbbcccda...@gmail.com wrote:
I have read that previous ;]
'convention' so:
Put an `error_reporting(E_ALL);` before the code, and you'll get the
error message on the output, not just the error log.
On Wed, Apr 15, 2009 at 17:37, Adrien Mogenet adrien.moge...@gmail.com wrote:
I performed a test using `class_exists()` and Swift class seems to be
correctly loaded...
My error report configuration is already set to 'E_ALL' :-)
When I write new Swift(new Swift_Connection_NativeMail()) the `echo`
is printed on the screen... but not with new Swift_Connection_SMTP
() ...
--
Adrien
On 15 avr, 18:07, FÁSI Gábor maerl...@gmail.com wrote:
Put an
Do you have openssl support enabled in PHP?
On Wed, Apr 15, 2009 at 12:14 PM, Adrien Mogenet
adrien.moge...@gmail.com wrote:
My error report configuration is already set to 'E_ALL' :-)
When I write new Swift(new Swift_Connection_NativeMail()) the `echo`
is printed on the screen... but not
Yes I do !! And I wish I would get an error if it was disabled !
--
Adrien
On 15 avr, 18:23, Pablo Godel pgo...@gmail.com wrote:
Do you have openssl support enabled in PHP?
On Wed, Apr 15, 2009 at 12:14 PM, Adrien Mogenet
adrien.moge...@gmail.com wrote:
My error report configuration is
... But you give me a right way, guy !!
php_smtp was disabled, I have just enabled it and I got my message
correctly printed !
Thanks for giving me the idea !
--
Adrien
On 15 avr, 18:23, Pablo Godel pgo...@gmail.com wrote:
Do you have openssl support enabled in PHP?
On Wed, Apr 15, 2009 at
One of the basic symfony principles is don't reinvent the wheel, do
it's highly unlikely they do something that can be done with a single
php function.
On Wed, Apr 15, 2009 at 19:29, Kevin Barsotti
kevin.barso...@tribaldawn.com wrote:
There's no way to do this within the Symfony framework's
On Apr 15, 2009, at 3:17 PM, Kevin Barsotti wrote:
Oh, here's something weird: for some reason it is displaying a
particular set of DATETIME values as 2012-31-1969. Does this value
mean anything to you?
12-31-1969 is the unix epoch (timestamp 0) at a negative gmt
timezone. i suspect the
Ooh, I didn't know I could do that with the accessor methods. Thanks!
Jacob Coby wrote:
On Apr 15, 2009, at 3:17 PM, Kevin Barsotti wrote:
Oh, here's something weird: for some reason it is displaying a
particular set of DATETIME values as 2012-31-1969. Does this value
mean anything to
Create a symbolic link on your server?
Search Google for the command ln -s!
On 16 apr, 00:03, Nei Rauni Santos nra...@gmail.com wrote:
Hi guys,
Anyone here already created a Symfony's project where the frontend
application is shared by many websites??
I would be happy if you could share
You only ever generate your schema once. Right at the beginning of the
project. So you only have to do the renaming of the models and table names
once.
- Jon
On Mon, Apr 13, 2009 at 10:17 AM, dancablam danhstev...@gmail.com wrote:
Hi Jonathan,
Assuming I understand you correctly, that
Hi Ahmed,
there are two things different from my i18n scheme file which is working:
1. the indention of the lines containing country: (indention 0) and
country_i18n: (indention 2) seems strange. these lines should be at the same
idention level, but i guess, it's a copy-and-paste result and your
28 matches
Mail list logo