On Mar 21, 1:49 am, Eno symb...@gmail.com wrote:
On Fri, 20 Mar 2009, Lawrence Krubner wrote:
I've got the sfMediaLibraryPlugin installed, and it uploads files to
uploads/assets, but I don't see how that can be an issue. I've haven't
been using or testing the plugin, yet these errors
When I look in Chapter 8 of the book, I realize that Criteria seems to
be mostly about building SELECT statements:
http://www.symfony-project.org/book/1_1/08-Inside-the-Model-Layer
When I look to see how I should update a record, I find a lot of
information about updating a particular record,
On Mar 13, 8:34 am, Lee Bolding l...@leesbian.net wrote:
FWIW, I chose Phing.
Seems pretty cool - just trying to work out how to make a wrapper so I
can deploy my application like so :
./deploy.sh --target=[dev|test|stage|prod] --tag=svn_tag
Lee, can you tell us why you chose Phing?
This might be what you're after:
http://snippets.symfony-project.org/snippet/50
On Sat, Mar 21, 2009 at 9:16 PM, Lawrence Krubner
lkrub...@geocities.com wrote:
When I look in Chapter 8 of the book, I realize that Criteria seems to
be mostly about building SELECT statements:
On 21 Mar 2009, at 04:36, Lawrence Krubner wrote:
As far as I know, I never call an action called uploads/assets. Yet
I'm getting this in my error logs:
[21-Mar-2009 00:21:10] Action uploads/assets does not exist.
content/templates/showTeamSuccess.php:img
Phing isn't so tightly coupled to Symfony. The project I'm using it on
is in the process of adopting a framework, but it hasn't yet been
decided which one.
I'm sure you can use Pake outside of Symfony, but investigating that
would have taken time, and I already knew Phing would work with
What you need is BasePeer::doUpdate($selectCriteria, $updateCriteria, $con)
See http://snippets.symfony-project.org/snippet/50
On Sat, Mar 21, 2009 at 09:16, Lawrence Krubner lkrub...@geocities.com wrote:
When I look in Chapter 8 of the book, I realize that Criteria seems to
be mostly about
Or... $_SERVER['REMOTE_ADDR']
It may look dirty, but your models won't be coupled to Symfony ;)
It should be marginally more efficient too - after all, at the end of
the day that's exactly how Symfony is gonna get that information back
to you.
On 21 Mar 2009, at 09:29,
I would do neither!
The is the model. It knows about its data, but id does not know where to get
it from. It should not. No models should read data from outside themselves.
It might be finde to do recalculation of own data, but where should it get
the information from? This is exactly the problem
Yep, coupling model with outside data is really, really bad idea.
Let's look at Lee's example of using plain $_SERVER array. It works. It
works almost everywhere... ALMOST.
1. What if U will decide to move models to another project with another
framework? What if that framework import all outside
sfContext::getInstance()-getRequest()
Michael
On 21 Mrz., 03:00, Benjamin agtle...@gmail.com wrote:
Hello,
In my user model I would like to capture the user's ip address for new
records in the user-save() event. I am using symfony 1.2. What is
the best way to access the sfWebRequest
On Sat, Mar 21, 2009 at 12:05 PM, Lee Bolding l...@leesbian.net wrote:
is it even possible to overwrite $_SERVER['REMOTE_ADDR']? I'll try it
later on.
Of course - its a variable.
I don't think ANYBODY would ever use a framework that did that - if
they did, they'd have far bigger problems
Some more ideas.. some from the more practical side:
when you put it into save():
- what happens when you run a script to update the records which invokes
save()?
- what happens if an admin edits and save()s?
- what happens if a save() is triggered by a second save() on a related
object (have
Hello,
I just read and check out the sympal plugin on a existing symfony project.
(Fixtures failed to load : Invalid row key specified: EntityType_Page ).
So I just stop trying to install the plugin and check what have been done so
far.
- sfSympal contains sfSympal*Plugin, but also
thank you that's what i did (override)
On 8 mar, 12:34, naholyr naho...@gmail.com wrote:
You could try to add _module/partial in the display list.
If this doesn't work (I didn't try), then yes you'll have to edit a
template to add the call to include_partial.
Note that you can overwrite
Hi,
I was trying to improve the performace of my symfony projects and we
made a lot of tests. We use same projects with symfony 1.1 and symfony
1.12. Symfony 1.1.7 uses less memory. Do anybody know why this happens
and if there is anything i could do to improve the performance.
Symfony 1.1.7
On 21 Mar 2009, at 11:40, Alan Bem wrote:
On Sat, Mar 21, 2009 at 12:05 PM, Lee Bolding l...@leesbian.net
wrote:
is it even possible to overwrite $_SERVER['REMOTE_ADDR']? I'll try it
later on.
Of course - its a variable.
Yup, I tested it - you can. I never thought of that before. I
On Sat, Mar 21, 2009 at 4:51 PM, Lee Bolding l...@leesbian.net wrote:
Yup, I tested it - you can. I never thought of that before. I always
assumed (hoped?) the Zend Engine would somehow make environment
variables read-only.
Let me quote a line from great movie A Knight's Tale: *(...) Pain*,
On Sat, Mar 21, 2009 at 9:45 AM, Thomas Rabaix thomas.rab...@gmail.comwrote:
Hello,
I just read and check out the sympal plugin on a existing symfony project.
(Fixtures failed to load : Invalid row key specified: EntityType_Page ).
I believe this is a bug in the symfony version you are
On Sat, Mar 21, 2009 at 11:44 AM, Jonathan Wage jonw...@gmail.com wrote:
On Sat, Mar 21, 2009 at 9:45 AM, Thomas Rabaix thomas.rab...@gmail.comwrote:
Hello,
I just read and check out the sympal plugin on a existing symfony project.
(Fixtures failed to load : Invalid row key specified:
On Mar 20, 7:18 pm, ckemmler ckemm...@gmail.com wrote:
Thanks!
Did that.
I have two problems now
1. the README there tells me:
* Add method `retrieveByUsernameOrEmailAddress` to get a user by
email or username in lib/model/sfGuardPlugin/sfGuardUserPeer.class
e.q.
[PHP]
On Mar 20, 7:57 pm, ckemmler ckemm...@gmail.com wrote:
This might be more interesting: I just tried to trigger the register
action by going to:
http://localhost/web/frontend_dev.php/sfGuardRegister/register
This got me:
Fatal error: Class 'sfGuardFormRegister' not found in /eclipse/
Hey,
My schema was containing the following :
email_address:
type: string(255)
notnull: true
email: true
When I do : if ($column-getDefinitionKey('email')) , it works.
I want to be able to create other key like the email one above. I
tried :
city_name:
type:
There have been lots of great comments here and I have read all of
them. Fabian, I was going to deal with a majority of the issues you
mentioned by testing if a record was new or not.
Based on what everyone is saying though it was wrong for me to place
this in the model. I'll tell you guys
On Sat, Mar 21, 2009 at 8:44 PM, Benjamin agtle...@gmail.com wrote:
1. When a password is saved, the setPassword method of the User model
converts it into a hash.
2. I will set the ip using the action. The setIp method will convert
it into an integer. I know there were some
MySQL has built-in functionality for this with its inet_aton and
inet_ntoa functions.
I'm not entirely sure how you'd be able to use these from Doctrine or
Propel though.
PHP also has built-in ip2long and long2ip which achieve the same.
I don't understand your push v's pull problem :-/
Just did some poking on the HTML code that the Ajax Tutorial was
generating and I saw this:
script type=text/javascript src=/sfProtoculousPlugin/js/
prototype.js/script
So I ran a search for that file on my system and I found it in:
Hey Pixelmeister, Lawrence,
this is the setup functoin in my ProjectConfiguration:
public function setup()
{
// for compatibility / remove and enable only the plugins you want
$this-enableAllPluginsExcept(array('sfDoctrinePlugin',
'sfCompat10Plugin'));
}
in settings.yml, I have:
Hi,
I'm most likely can't help you here since I have never used
Script.aculo.us with Symfony. But out of curiosity, which Ajax
tutorial?
Also, what Symfony version are you using?
On Sun, Mar 22, 2009 at 9:59 AM, Campezzi campe...@gmail.com wrote:
Hi there,
I recently installed symfony on
Did you clear your cache after installing the plugin?
On Sat, Mar 21, 2009 at 00:57, ckemmler ckemm...@gmail.com wrote:
This might be more interesting: I just tried to trigger the register
action by going to:
http://localhost/web/frontend_dev.php/sfGuardRegister/register
This got me:
Hi Sid,
I mean the Ajax Tutorial on the symfony home page -
http://www.symfony-project.org/tutorial/1_2/symfony-ajax
And as you can guess from that URL, I'm using symfony v1.2.
cheers!
On Mar 21, 6:57 pm, Sid Bachtiar sid.bacht...@gmail.com wrote:
Hi,
I'm most likely can't help you here
Possibly your the php.ini for cli didn't have high enough
memory_limit. This makes the PEAR installer bail halfway through
installation - I guess those are the kind of symptoms you'd get,
missing file cos they weren't copied before the installation bailed.
Try uninstalling (via PEAR),
Hi Lee,
Thanks for your answer. I checked my cli php.ini settings and they
seemed to be fine - just in case, I uninstalled symfony and installed
again, and still got the same issues (even though the installation
returns an OK message). I'm going to try VirtualBox, but I don't think
it will work
Hi again Lee, thanks for answering :)
Indeed, installing v1.1 gave me the folder I was missing. Maybe there
is something wrong with the 1.2.4 package after all... I wonder how
that could be informed to the folks that take care of the project?
Kind Regards,
Campezzi
On Mar 21, 8:28 pm, Lee
uh-ho! Seems I haven't
I'm definitely getting one step further, but I suppose it isn't quite
good enough yet :-(
Thanks anyway!
On Mar 21, 2:57 pm, Fási Gábor maerl...@gmail.com wrote:
Did you clear your cache after installing the plugin?
On Sat, Mar 21, 2009 at 00:57, ckemmler
With Symfony, when there's a problem, first clear cache :-D
On Sun, Mar 22, 2009 at 12:56 PM, ckemmler ckemm...@gmail.com wrote:
uh-ho! Seems I haven't
I'm definitely getting one step further, but I suppose it isn't quite
good enough yet :-(
Thanks anyway!
On Mar 21, 2:57 pm, Fási Gábor
I'm trying to have this module to work. Being new to symfony/php (from
a java background), I'm also suprised that this module isn't more
integrated into the platform.
1. to make it work at all I had to manually uncomment the if(...)
clause in the sfGuardExtraPlugin config so it now reads:
OK, after looking everywhere, I managed to find a solution.
Turns out things changes in 1.2 - the prototype directory is now not
located on the web folder, but inside a plugin. That plugin needs to
be activated on the command line by issuing the following command:
symfony plugin:publish-assets
38 matches
Mail list logo