Thanks, I could resolve that. Yes we have to include swift_init.php.
On Sat, Sep 26, 2009 at 12:20 AM, Casey wrote:
>
> In the latest version of swift there is a file called init_swift.php
> or something that will not be autoloaded so you have to use require.
> That could be part of the problem.
Hi,
I notice when I go from a non SSL URL to an SSL URL I lose my session
variables. I've come to understand that this is because PHP uses
cookies for sessions, and this results in a new session being created
when switching to SSL.
So, I lose my session variables when I switch. However, I noti
I want to track the referrer of a user until they go and create a cart
so that I can store the referrer in their cart and track my
conversions based on referrers and keywords. My entire site is in
symfony and I have a few custom plugins that I run for CMS pages and
an online store. I am looking fo
Well, figured it out. Very wierd. All the tutorials that I've seen,
say to issue the command:
'symfony sync production' for the dry run,
and
'symfony sync production go' for the real synchronizing process.
For me that gives the error I submitted this posting about.
For kicks today, I tried:
'
Yes. You can get it from svn though. Once 1.3 is released we'll package it
up so you can install via PEAR.
http://svn.symfony-project.org/plugins/sfDoctrineGuardPlugin/trunk
- Jon
On Fri, Sep 25, 2009 at 5:25 PM, alessandro cinelli <
alessandro.cine...@gmail.com> wrote:
> sfPluginRestException:
sfPluginRestException: No release available for plugin
"sfDoctrineGuardPlugin" in symfony13/lib/plugin/sfPearRestPlugin.class.php
on line 123
is that normal because symfony 1.3 is still under development?
thanks
cirpo
--~--~-~--~~~---~--~~
You received this me
In the latest version of swift there is a file called init_swift.php
or something that will not be autoloaded so you have to use require.
That could be part of the problem.
On Sep 25, 6:27 am, DEEPAK BHATIA wrote:
> Sorry, I have both old version of swift mail and new version of swift mail
> ins
Hello all,
Can someone explain how to user criteria options on
sfWidgetFormPropelChoice?
Regards,
Radu
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to symf
Where is the bind() statement? Most of my code looks like this:
$this->form->bind($submittedValuesArray, $request->getFiles
('sf_guard_user_profile'));
if ($this->form->isValid())
When in doubt, put $submittedValuesArray in print_r() and see what you
really have.
On Sep 24, 6:3
> If you have a look at the API, of course you learn that you can pass an
> array of options to the widget constructors. But, if you look just after
> the method definition, ... surprise, all options are described. And this
> is true for all widgets and validators, all of them.
Thanks, Fabien. It
Why are you using forward? Why not redirect or why not simply call a
given method? Why not just set the template to whatever you want? Why
forward?
On Sep 24, 4:34 am, ollietb wrote:
> Hi there
> I've noticed that my PHP logs are full of thousands of PHP Fatal
> error: Uncaught exception 'sfSt
I just did "grep -R catch *" on the core symfony files. These are the
catch clauses in the Symfony core:
http://lawrence.sds5.com/symfony_catch_clauses.txt
Not sure where to start to look, but I would assume that Symfony
normally catches the exceptions that it throws, and that your
situation is
I've never called forward(), but the documentation says "This method
stops the action. So, no code is executed after a call to this
method." I assume it is throwing the exception to stop the action. I
would think this propagates up and is caught at a higher level, though
apparently that is not ha
Hello,
I want to create a plugin with forms classes
When I execute the task ./symfony doctrine:build-form, symfony creates
forms class files with names as '#MyModelClass#Form.class.php' in
/lib/
form/
doctrine/
myPlugin/
& base forms class files with names as
'Base#MyModelClass#Fo
I have been trying to do some functional tests on my user after login
in. I read here (http://www.symfony-project.org/cookbook/1_2/en/test-
application#chapter_98d28ad443a8f32769300bb40973ec7d_sub_user_tester)
that the sfTesterUser::isAttribute() can test the value of an
attribute, and in the exam
+1 for listing array options for function arguments!
On Sep 25, 5:14 am, Romain de Wolff wrote:
> Comments is a good idea!
> Oh and do you knowhttp://www.gotapi.com? The symfony section allows you to
> browse the API quickly.
>
> On Fri, Sep 25, 2009 at 8:50 AM, Gareth McCumskey wrote:
>
>
>
> >
On Fri, 25 Sep 2009, DEEPAK BHATIA wrote:
> "Fatal Error: Call to a member function getEmpId() on a non-object in
> /opt/lampp/htdocs/crb/apps/tool/modules/book/actions/actions.class.php at
> line 2370 which is the highlighted pink line above.
>
> My opinion
>
> My point is that session
On Fri, 25 Sep 2009, DEEPAK BHATIA wrote:
> So, I am sorry to repeat again
>
> Then default value is returned whenever the session variable is null.
http://www.symfony-project.org/book/1_2/06-Inside-the-Controller-Layer#chapter_06_sub_accessing_the_user_session
--
--~--~-~--~
Sorry, I have both old version of swift mail and new version of swift mail
installed. I think this is causing some confusion.
On Fri, Sep 25, 2009 at 6:36 PM, DEEPAK BHATIA wrote:
> Hi,
>
> I have installed the swift mail in the directory
>
> /opt/lampp/htdocs/crb/lib/vendor
>
> I have done php s
Hi,
I have installed the swift mail in the directory
/opt/lampp/htdocs/crb/lib/vendor
I have done php symfony cc many time but I am getting the error
*Fatal error*: Call to undefined method Swift_Message::newinstance() in *
/opt/lampp/htdocs/crb/apps/tool/modules/new/actions/actions.class.php*
On Fri, 25 Sep 2009, michael.pie...@googlemail.com wrote:
> So maybe the beginner tutorials should start with simple things, like
> handling a hand written html form and then later introduce some
> extended features like sfForms, which makes your life easier.
Actually it does: the definitive gui
On Thu, 24 Sep 2009, bghost wrote:
> What is the limit? How deep a developer should go with the "re-
> factoring"?
> Is it necessary to split templates into numerous small fragments
Not necessary no. Possible yes. Useful, yes sometimes.
e.g. Same form will be used for both new and edit actions,
Hi everyone,
I'm looking at using the sfPropelApply plugin in an ongoing project. I've
viewed the plugin's page and gone through the sfDoctrineApply plugin for
instructions. However I want to find out if there's anywhere else online where
I can get direct implementation instructions for the sfP
So, I am sorry to repeat again
Then default value is returned whenever the session variable is null.
If it is iether null due to session expiry or forcefully made null.
On Fri, Sep 25, 2009 at 5:11 PM, Gareth McCumskey wrote:
> Yes it will. If that session variable does not exist (i.e. = null) i
Yes it will. If that session variable does not exist (i.e. = null) it
returns default.
On Fri, Sep 25, 2009 at 1:32 PM, DEEPAK BHATIA wrote:
> You mean that we use the default value when we need to else we use session
> variable value.
>
> But if session variable is null, it will still not return
You mean that we use the default value when we need to else we use session
variable value.
But if session variable is null, it will still not return the default value.
Thanks
On Fri, Sep 25, 2009 at 4:46 PM, david wrote:
>
> You don't. You pick sensible defaults where it's needed and where they
You don't. You pick sensible defaults where it's needed and where they
are not, or something is mandatory - you return null.
Examples:
Your site has multiple templates (look & feel) - if the user doesn't
have something selected then you'll have a default (pretty in pink).
Your site nee
So, the solution is to check whether getAttribute is returning the default
value which could be due to two reasons
1. Session timeout
2. User still not has set the session variable
How do we find out if default is returned for which reason ? I hope I am
making sense.
Thanks
Deepak
On Fri, Sep
Applications you develop can quickly grow out of the baby-steps ways and
into full-blown adolescence and a good primary school gets you some life
skills, while preparing you for more advanced learning.
It's better to take a little longer to learn the basics of how and why
everything hooks t
Like I said, on your login action, set the unset your own session variables
if you don't want the user to retain session variables on timeout of
session. Process is like this:
- User logs in the first time.
- During the course using the application your code sets certain session
variables.
- User
Hi,
I have set the web_debug to on in settings.yml file. But when I go to some
other page, the web debug bar disappears. Though the new pages are ajax
templates.
Please help me.
Regards
Deepak Bhatia
--~--~-~--~~~---~--~~
You received this message because you ar
Yes, I like getting addicted to good things like xdebug with eclipse. Thanks
for the suggestion.
Best Regards
Deepak Bhatia
On Fri, Sep 25, 2009 at 4:05 PM, Kieu Anh Tuan wrote:
> I'm not used to sf1.2 yet so that I could not tell you anything about
> tool_dev.php :).
>
> You could try xdebug w
So maybe the beginner tutorials should start with simple things, like
handling a hand written html form and then later introduce some
extended features like sfForms, which makes your life easier. This is
done with security.yml and credentials: if you need more, you can use
sfGuard. The good thing
Thanks Gareth.
The point I am seeing is that in case user has logged out while the session
had not expired, user can still get back the session variables he has
created if logs-in again.
However say user opened a web page and forgot to do anything with that web
page and the session expired then a
I'm not used to sf1.2 yet so that I could not tell you anything about
tool_dev.php :).
You could try xdebug with eclipse http://devzone.zend.com/article/2930,
believe me, after trying this, you should be addicted to the debugger,
especially in a language likes php. Otherwise, make, for example an
Oh yes, and sfUser->getAttribute() has a default option if there is no value
to get. In other words:
echo sfUser->getAttribute('value_i_want', "default value");
If the session variable 'value_i_want' is set it returns that value else it
will return "default value"
On Fri, Sep 25, 2009 at 12:13 P
The session variables are not cleared automatically. If a user logs out only
the symfony authenticated variable is set to false and all the session data
you added to the user session is still available.
This is actually a GOOD thing. In our example, our interface uses a tabbing
system within the a
Set compat_10 : true in settings.yml and you're all good
On Fri, Sep 25, 2009 at 12:25 PM, Sid Bachtiar wrote:
>
> The helpers are still there. Just not included by default. I think you
> need to or include it other way.
>
> On Fri, Sep 25, 2009 at 10:21 PM, Sid Ferreira wrote:
> > Actually I d
I don't use the sfGuard either, just the sfBasicSecurityUser, and it works
well enough and is really not all that complicated. I don't use the admin
generator as I feel it creates elements that are far too generic for my
purposes and usually my admin and frontend systems are too integrated.
Just l
The helpers are still there. Just not included by default. I think you
need to or include it other way.
On Fri, Sep 25, 2009 at 10:21 PM, Sid Ferreira 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 tha
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
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
"The session object for the current user is accessed in the action with the
getUser() method and is an instance of the sfUser class. This class contains
a parameter holder that allows you to store any user attribute in it. This
data will be available to other requests until the end of the user sess
Hi,
I have never used the debugger. I think we need to put the below in the
tool_dev.php file in web directory
getController()->dispatch();
On Fri, Sep 25, 2009 at 3:18 PM, Kieu Anh Tuan wrote:
> Hi,
> What do you have in $current_name and $token in your debugger? To me
> EmployeeTablePeer::doSe
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
Hi,
What do you have in $current_name and $token in your debugger? To me
EmployeeTablePeer::doSelectOne($c) returns null which means it could not
find the employee with name = $token.
I don't think that it will throw an exception when your
$this->getUser()->getAttribute('allnames') return null beca
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
symfo
Hi,
Please find the code below
===
if($this->getUser()->getAttribute('allnames'))
{
$current_name = $this->getUser()->getAttribute('allnames');
$token = strtok($current_name, ",");
$msubject = "Invitation fo
Comments is a good idea!
Oh and do you know http://www.gotapi.com ? The symfony section allows you to
browse the API quickly.
On Fri, Sep 25, 2009 at 8:50 AM, Gareth McCumskey wrote:
> I think taking a note from the php.net site (the PHP manual) is a good
> idea. The search feature in the php.net
Thank you for the suggestions.
I found the problem. It was my mistake in the routing logic.
Lorand
On Sep 24, 10:11 pm, Alexandru-Emil Lupu wrote:
> could you show us some code ?
> also posible problems:
>
> - form invalid
> - a bad redirect
> - form action wrong
> - forms not closed properly
>
Hi,
as I am just now developing a symfony application, I will watch myself
how I try to get the information I need and maybe add some suggestions.
In general I would like to say that the symfony documentation is very
comprehensive and well done. Thanks to the symfony team for it. On some
parts t
+1 for php.net-like notes/comments.
On Sep 25, 8:50 am, Gareth McCumskey wrote:
> I think taking a note from the php.net site (the PHP manual) is a good idea.
> The search feature in the php.net is incredibly useful and helps you target
> any part of PHP with a simple search for function, featur
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,
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'
54 matches
Mail list logo