The fillin filter is not reliable at 100% as it uses DOM parser to
transform and populates the value. So if your html is too broken, then
the parser may transform your html into something wrong.
Thomas
On Wed, May 21, 2008 at 1:53 AM, jtodd [EMAIL PROTECTED] wrote:
I would also like to
Hello,
i try to use a sfMailValidator, but :
[code]Fatal error: Class 'sfMailValidator' not found in /home/simon/
workspace/sta/apps/frontend/modules/contact/actions/actions.class.php
on line 18[/code]
Code :
[code]
public function validateSend()
{
$mail =
Replace sfMailValidator() on sfEmailValidator()
2008/5/21 Sylver [EMAIL PROTECTED]:
Hello,
i try to use a sfMailValidator, but :
[code]Fatal error: Class 'sfMailValidator' not found in /home/simon/
workspace/sta/apps/frontend/modules/contact/actions/actions.class.php
on line 18[/code]
-_-'
I'm so stupid.
Thanks ;)
On 21 mai, 11:23, Dmitry Nesteruk [EMAIL PROTECTED] wrote:
Replace sfMailValidator() on sfEmailValidator()
2008/5/21 Sylver [EMAIL PROTECTED]:
Hello,
i try to use a sfMailValidator, but :
[code]Fatal error: Class 'sfMailValidator' not found in
HAI FRIENDS ,
I HAVE LOT OF NATURE PHOTOS , DRAWING PHOTOS AND FLOWERS AND
DIFFERENT ONE HUMAN ANATOMY PLASTIC MODELS, I HAVE SEND WITH YOU, JUST
CLICK FOLLOWING LINK AND ENJOY IT,
DRAWING PHOTOS COLLECTION http://mageshdrawfedi.blogspot.com/
http://mageshdrawfedi.blogspot.com/
thx, didnt know about that plugin. will give it a try!
On 20 Mai, 22:18, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
If you have no choice, the 2nd solution is the best, and the one I use
when I can't use the other one, which is the plugin
sfPropelSQLDiffPlugin.
This plugin provides some
Hello,
I am not sure at 100% about what I am going to say :
- sfSessionStorage start the session when you access to the user
- The command line uses the 'cli' env configuration
- You have to change the cli factories to use the
sfSessionTestStorage, which do not used php session.
The use of
Thanks, Thomas. I tried that but I got the same error:
propelload data from
/home/projects/...inah-2.0/symfony/data/fixtures
PHP Warning: session_start(): Cannot send session cookie - headers
already sent by (output started at
/usr/share/pear/symfony/vendor/pake/pakeFunction.php:366)
Hi,
I've noticed that there are two (or more ?) different formats for the
validation yml files. Which ine is the more recent/correct?
TIA
Tom
--
Tom Haskins-Vaughan
Temple Street Media: Design and Development for the Web
[EMAIL PROTECTED] | www.templestreetmedia.com
Hello,
It look like the factorie settings are ignored. The error refers to
'sfSessionStorage', however the session handler should by
'sfSessionTestStorafe'
Thomas
On Wed, May 21, 2008 at 6:47 PM, Tom Haskins-Vaughan
[EMAIL PROTECTED] wrote:
Thanks, Thomas. I tried that but I got the same
Yeah, I noticed that. I tried clear-cache but it didn't make any difference.
Thomas Rabaix wrote:
Hello,
It look like the factorie settings are ignored. The error refers to
'sfSessionStorage', however the session handler should by
'sfSessionTestStorafe'
Thomas
On Wed, May 21, 2008 at
Please try to add this at the beginning of your save() method and tell
us what's displayed when used with CLI (in propel-load-data for
example) :
$class = get_class(sfContext::getInstance()-getUser();
for ($classes[] = $class; $class = get_parent_class($class);
$classes[] = $class);
Thanks for your help, let me know if this means anything to you:
propelload data from
/home/projects/...inah-2.0/symfony/data/fixtures
PHP Warning: session_start(): Cannot send session cookie - headers
already sent by (output started at
2008/5/21 [EMAIL PROTECTED] [EMAIL PROTECTED]:
I'm not sure but I think a user always exists, but it's not the same
instance depending on the context (web or cli).
True, you should check via instanceof the type of session storage
class, eg if you detect something like sfNoStorage, dont
Thanks Nicholas, but you've gone a little over my head. Can you let me
know how to do that?
Nicolas Perriault wrote:
2008/5/21 [EMAIL PROTECTED] [EMAIL PROTECTED]:
I'm not sure but I think a user always exists, but it's not the same
instance depending on the context (web or cli).
True,
2008/5/21 Tom Haskins-Vaughan [EMAIL PROTECTED]:
Thanks Nicholas, but you've gone a little over my head. Can you let me
know how to do that?
In your save action, at the beginning:
if (!sfContext::getInstance()-getStorage() instanceof sfSessionStorage)
{
return parent::save();
}
Thanks, Nicholas. I think the problem is, whenever I try to access
sfContext::getInstance() even to see if it exists, it tries to start a
session. Maybe I'm wrong though. Here's the error:
propelload data from
/home/projects/...inah-2.0/symfony/data/fixtures
PHP Warning:
When you call sfContect::getInstance() all the factories are loaded.
So the session storage too.
Your session storage uses the sfSessionStorage with the auto_start =
true. That's why you get the error : Warning: session_start(): Cannot
send session cookie
When you run the propel-load-data, try
Thanks, Thomas. I've tried both of the following:
symfony propel-load-data --env=cli frontend
symfony propel-load-data --env='cli' frontend
And when I call die(SF_ENVIRONMENT); in my save() method it still
returns 'dev'.
Any suggestions?
Thomas Rabaix wrote:
When you call
OK, I'm getting closer. I think I may have an older version of symfony
(1.0.12) so the following seems to work:
symfony propel-load-data frontend cli data/fixtures/import_data.yml
When I do this, I don;t get any warnings like before, but I get a
sfException:
[sfException]
Call to
In my user/templates/viewSuccess.php I have a block of HTML that I don't
want to show if I'm looking at my own profile (Add friend / Email user).
How can I tell if the user I'm looking at is the one I'm logged in as?
In normal PHP, I'd have saved my user's database ID in a $_SESSION upon
login
$sf_user is a user, so
if($sf_user-getId() == $user-getId)
{
print same user;
}
else
{
print not the same user;
}
And yes, while I love Symfony, the amount of crap you get in var_dump
on symfony objects are ridiculous.
James
On May 21, 2008, at 8:35 PM, Daevid Vincent
Eclipse PDT or Zend IDE
On Thu, May 22, 2008 at 1:32 PM, Daevid Vincent [EMAIL PROTECTED] wrote:
Not to start a holy war, but is there an IDE out there that will work well
with symfony. By that I mean parse the files and show me what my methods are
available, variables, built in symfony
Almost all of them offer a free trial - each has its own strengths and
weaknesses.Give them a shot!
On May 21, 9:32 pm, Daevid Vincent [EMAIL PROTECTED] wrote:
Not to start a holy war, but is there an IDE out there that will work well
with symfony. By that I mean parse the files and show
24 matches
Mail list logo