Here is what I did, in my BaseForm class I added this method:
public function setValue($field, $value){
if(!in_array($field, array_keys($this->values))){
throw new sfException(sprintf('Unkown field" "%s" in
"%s" object.',
$field, get_class($this)));
Hi guys here is my code in my controller (part of it):
$this->form->setDefault('customer_id', $this->getUser()-
>getAttribute('customer_id'));
$SupporTicket = $this->form->save();
$this->hide_form = true;
The problem I am having is I don't want to make customer_id a hidden
field but set it befor
get so you can reformat etc. But returning false in such a
> method removes the value from the cleaned values and isn't included in the
> update to the database. I don't know if that's documented somewhere but it
> should be in the "What's new?" documents.
>
&g
For you seasoned Symfony users, I need some insight. I have been
having a dilemma that I need advice on. I my backend I have a
customer form that handles the managing of customers throughout the
site. It contains fields that only the backend should display such as
IP, last login, etc...
My dilemm
Did you check the paths in the AJAX files?
On Mar 3, 6:41 am, maelo_fredas wrote:
> Hello everyone:
>
> I'm developing an app with symfony-1.2.12, Doctrine and PostgreSQL.
> Deployed it according the steps defined in Jobeet. The files were
> successfully transferred after deploy task (done in the
I apologize if I get frustrated guys, I have been extensively looking
through them today and think I may have found the solution.
On Mar 4, 3:17 pm, Eno wrote:
> On Thu, 4 Mar 2010, Darren884 wrote:
> > These forms will simply not work. They keep resetting my record id to
> >
These forms will simply not work. They keep resetting my record id to
0.
On Mar 4, 2:38 pm, Darren884 wrote:
> I am doing that and it is still giving me the error.
>
> On Mar 4, 12:00 pm, Richtermeister wrote:
>
> > Hey Darren,
>
> > when you use a form to update a
ByPk(123123);
> $this -> form = new CustomerForm($customer);
>
> this way the form knows that even if the email is already in the
> system, if it's owned by this customer, it's not a duplicate.
> Hope this helps.
>
> Daniel
>
> On Mar 4, 10:19 am, Darren884 wrot
Heres the deal, I created an admin generated form in my backend, and I
am able to edit my customers easily. However when I try to make a form
on the main site for them to update their date I simply cannot do it.
The form system makes it so when I try to use the previous form class
its impossible to
I just generated an admin to use.
On Mar 4, 9:06 am, Darren884 wrote:
> Hi guys, I have used generate:module to generate a CRUD module,
> however it does not have getForm() in it like my admin generated
> section. How would I accomodate this?
>
> I am getting my form like:
>
Hi guys, I have used generate:module to generate a CRUD module,
however it does not have getForm() in it like my admin generated
section. How would I accomodate this?
I am getting my form like:
$this->form = new CustomerForm($customer);
But how can I do it like I am in my other by calling getForm
Do I have to install a different module for generating CRUD? When I
tried to run the crud generation command it said the task did not
exists and then when I listed the available builder command line
options it didn't exist in there. Is my Symfony installation missing
something?
--
If you want to
In my template I put the following:
has('status')): ?>
get('status') ?>
Now I get:
Notice: Undefined variable: sf_flash in /var/www/vhosts/blackhawk.biz/
symfony/apps/frontend/modules/customers/templates/loginSuccess.php on
line 2
Fatal error: Call to a member function has() on a non-object i
I get this error:
Fatal error: Declaration of homeAction::execute() must be compatible
with that of sfComponent::execute() in /var/www/vhosts/blackhawk.biz/
symfony/apps/frontend/modules/pages/actions/homeAction.class.php on
line 11
When I use this code:
http://groups.google.com/group/symfony-use
I actually found this code after searching the whole library:
sfContext::getInstance()->getResponse()->getTitle();
That is my variable I need.
On Feb 23, 1:15 pm, Darren884 wrote:
> So basically I have to go throughout all my code and add slots, great
> Symfony is really logical w
So basically I have to go throughout all my code and add slots, great
Symfony is really logical when adapting to usability. Ill niche this
because I am not going to change what they had build in, its
ridiculous.
On Feb 23, 1:03 pm, Eno wrote:
> On Tue, 23 Feb 2010, Darren884 wrote:
> >
Hi guys I am able to define per page and I have, however I have
defined them like
New Article
Edit Article
But in my template it does include_title().
I don't want to have to define:
Site Name :: New Article
Site Name :: Edit Article
in every yml file. Is there a way I could do Site Name in 1 f
Is it possible to rename a Symfony project? If so is it easy?
--
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to
symfony-users+unsu
Oops forgot the environment.
On Feb 15, 1:03 pm, Darren884 wrote:
> Still doesn't work. Does display any page but says the command was
> executed successfully.
>
> On Feb 15, 11:22 am, Gábor Fási wrote:
>
> > Did you clear your cache after enabling check_lock?
>
&
Would it matter if I had PHP accelerator running? I am following all
the directions correctly.
On Feb 15, 1:03 pm, Darren884 wrote:
> Still doesn't work. Does display any page but says the command was
> executed successfully.
>
> On Feb 15, 11:22 am, Gábor Fási wrote:
>
&g
Still doesn't work. Does display any page but says the command was
executed successfully.
On Feb 15, 11:22 am, Gábor Fási wrote:
> Did you clear your cache after enabling check_lock?
>
> On Mon, Feb 15, 2010 at 20:10, Darren884 wrote:
> > When I run this and go to look at
When I run this and go to look at my backend it still displays, even
though I have check_lock: true under my settings. Is this an error? Do
I have to manually create an unavailable page?
--
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post t
I have set my routing in my routing.yml file to:
homepage:
url: /
param: { module: employee, action: login }
But it still shows:
Symfony Project Created
Congratulations! You have successfully created your symfony project.
I have cleared the cache as well numerous times through the comman
I solved it guys but the above would not work so I had to do a
different way. I found out about hasCredential and used that. The
above methods don't work too nicely on object methods.
On Feb 8, 12:11 pm, Norbert wrote:
> Am 08.02.10 20:41, schrieb Darren884:> In my template I am t
It seems I was able to pass the second argument ESC_RAW, but this
butchers my ability to read credentials either way. Is there any I can
just a simple damn array? I mean its Symfony's own variable. What is
going on here?
On Feb 8, 11:41 am, Darren884 wrote:
> In my template I am tryi
In my template I am trying to do $sf_user)); ?>
But when I run $User->getAttributes() in my partial it is cleaning the
code which makes it so it does not work. How can I get around this??
Thanks,
Darren
--
You received this message because you are subscribed to the Google Groups
"symfony user
cationConfiguration
> > {
> > public function configure()
> > {
> > $this->dispatcher->connect('admin.delete_object',
> > array($this,'xmethod'));
> > }
>
> > public function xmethod(sfEvent $event)
> > {
> >
Does anyone have any simple example code I can place into my objects
model to override this function? I need to add some stuff into it.
--
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to symfony-us...@googlegro
I ran into a form with this customer[amount[text]
What is that [text]? And how do I apply it to other fields? I have
been having issues with other fields and I believe the [text] is the
answer.
--
You received this message because you are subscribed to the Google Groups
"symfony users" group.
T
Had to regenerate the app.
On Feb 2, 10:51 am, Darren884 wrote:
> Apparently this is now only happening for modules that have relations.
>
> On Feb 2, 10:46 am, Darren884 wrote:
>
> > Some generated modules are done correctly, but with certain ones the
> > routes
Apparently this is now only happening for modules that have relations.
On Feb 2, 10:46 am, Darren884 wrote:
> Some generated modules are done correctly, but with certain ones the
> routes aren't simply there when generated. I am getting errors like:
> The route "employee_
Some generated modules are done correctly, but with certain ones the
routes aren't simply there when generated. I am getting errors like:
The route "employee_employee_collection" does not exist.
Has anyone had this issue? This is the weirdest thing, because why are
some being generated correctly a
I am having a hard time finding why I can access an admin module
through the development controller but not the normal controller. I
set all logging to On but there is still no logging! What am I doing
wrong? Here is my logging.yml file:
all:
enabled: on
level:err
rotate: off
period
Why not upgrade?
On Jan 27, 12:58 pm, Eno wrote:
> On Wed, 27 Jan 2010, Sid Ferreira wrote:
> > Im having issues with an IIS server and symfony 1.0.
> > I know symfony 1.0 isn't supported anymore, but it wasn't up to me
> > this decision.
> > I hope someone have experience about this to share, IF
We use it for eCommerce management and I personally use it for my
projects as well. When you have common sense and logic packed into a
package its a versatile tool.
On Jan 27, 5:38 am, Davide Borsatto wrote:
> By the way, it's Symfony, not Symphony.
>
> On Jan 27, 1:37 am, raviu wrote:
>
> > Hel
Hello all, hope everyone is having a good day. I need to learn the
proper command to migrate my doctrine schema properly, or my classes
along with my schema in a whole.
I have tried
symfony doctrine:migrate
symfony doctrine:generate-migrations-db
However it does not work. This is if I change jus
How do I get emails to work in the development environment? Is there a
log I am supposed to check somewhere? Thank you for the help.
--
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups
When I make my actions I use camel case:
WholesalePrice
however it won't show up as wholesale_price. What do I do to get to
view it? It simply wont show at all.
Thanks,
Darren
--
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this gro
rdUser?http://www.symfony-project.org/blog/2008/11/12/call-the-expert-custom...
>
> yeah, symfony's not your problem.
>
> On Tue, Jan 19, 2010 at 11:06 AM, Darren884 wrote:
> > I am starting to think Symfony does not possess the even common sense
> > when it comes to building
->
> select('*')->
> from('customer as c')->
> orderBy('first_name ASC');
>
> $customers = $q->execute();
>
> Throw that into a method in a table class (a solid design practice
> anyway), and then you have less code than you would had i
ade a
> different "reset password" page, seperate from the rest of the user
> form.
>
> Ashton
>
> On Jan 18, 2010, at 16:31, Darren884 wrote:
>
> > I have a form for the employees department and it has the information
> > on the employee, includ
Isn't there any other way? Is it truly that tedious to set a default
sort option?
On Jan 19, 2:39 am, Florian wrote:
> Hi darren,
>
> You should read this :
>
> http://www.doctrine-project.org/blog/cookbook-recipe-relation-dql-beh...
>
> On 18 jan, 18:30, Darren884
I have a form for the employees department and it has the information
on the employee, including the password. The problem is I do not want
the employee to have to re-enter their password every time they fill
out the form, so if the form is blank it would maintain the same
password. Is this possibl
Why not just a javascript library for a lightbox instead of using a
Symfony module?
On Jan 18, 10:19 am, Martin Settle wrote:
> In the call to light_modallink you need to point to the module action
> that will return the contents of the lightbox...
>
> i.e. rather than 'sfLightboxPlugin/modal' yo
Hello all, my customer model currently defaults to sorting by id asc.
How do I change it to default to sort by name asc?
Thanks,
Darren
--
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to symfony-us...@googlegro
I had this problem before, you will have to take the user object and
pass it to the form class and check the credentials and then unset the
widget there. If there is no user object you will have to unset it.
On Jan 18, 9:25 am, Ahsanul wrote:
> Hello all,
>
> I have a Doctrine table called "Comme
on.php file, no need to
> edit/patch symfony core files.
>
> What you could do is create a ticket in the symfony Trac for this because
> it's obviously not following the normal form's method.
>
> Cheers, Daniel
>
> On 16.01.2010, at 01:10, Darren884 wrote:
>
&
method which you can pass the options to.
I hope this helps anyone who had as much trouble as I did with this
issue.
Thanks,
Darren
On Jan 15, 2:51 pm, Darren884 wrote:
> Can someone please tell me or show me an example on how to access a
> form filter object from within an action so I ca
Can someone please tell me or show me an example on how to access a
form filter object from within an action so I can pass objects and
variables to it? This is killing me that Symfony does not allow
instances to travel globally.
--
You received this message because you are subscribed to the Google
Yes but how do I call the sfFormFilter object? I had tried $this-
>configuration->getFilterForm but it runs the class again.
On Jan 14, 2:56 pm, Daniel Lohse wrote:
> sfFormFilter does have setOptions as it's only a subclass of BaseForm.
>
> Daniel
>
> On Jan 14, 20
Actually that did not work. This is a flaw in Symfony itself, there is
no way to pass values to the configre() method in the filters class.
This needs to be fixed.
On Jan 14, 12:11 pm, Darren884 wrote:
> Hi guys, I had to actually add an argument to the original
> ConfigurationModelGen
Hi guys, I had to actually add an argument to the original
ConfigurationModelGenerator file and mimick the getForm() function to
pass options. I have no idea why this wasn't implemented in the first
place but who knows.
On Jan 13, 3:04 pm, Darren884 wrote:
> In my form I use the setOp
eld, and validation stop
> the process to have the password field filled in with previous entry?
> i yes, then i am not sure you can. also ... is not a good practice AFAIK.
> Alecs
>
>
>
> On Thu, Jan 14, 2010 at 1:44 AM, Darren884 wrote:
> > I have a password field and I
I have a password field and I want it so if the user doesn't fill it
in it stays the same value. How do I accomplish this? I also have a
password confirmation field.
Thanks
--
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group,
In my form I use the setOptions to pass my user object so I can check
the credentials in the form class if I want to display or hide fields,
however in the FilterForm class there is no setOptions and class
variables do not seem to be shared among functions. How am I to get
the user object into my F
tal Responsibility!
> Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
>
> On Wed, Jan 13, 2010 at 9:22 PM, Darren884 wrote:
> > How would I customize the query used on the list view for the admin
> > area? I need to tweak it by having it only show recor
How would I customize the query used on the list view for the admin
area? I need to tweak it by having it only show records from a certain
category, say Books. I would like to do this in the PHP form file or
model file...
Anyone know how I could do it without messing up the sorting and
paging?
Th
Ok guys I got it to work. This is how you would pass Symfony objects
to the form.
In my Actions I had to overwrite the automatically generated ones
with:
public function executeNew(sfWebRequest $request)
{
$this->form = $this->configuration->getForm(false, array
('employee' => $this->getU
What I am going to have to do is unset it if the user does not have
the right credential so it does not display, and perhaps also validate
it. Thanks for the info though.
On Jan 11, 9:53 pm, Alec Joseph Rivera wrote:
> On Mon, 2010-01-11 at 11:12 -0800, Darren884 wrote:
> > The crede
You should have at least one directory above the public_html. What you
will have to do is install it there and then set the web directory to
the public_html. You might come into some problems with opeb_base_dir.
If that is the case you will need to modify your PHP security
settings.
On Jan 12, 10:
I have employees who login and write articles as well as manage
support tickets for customers, and a field is assigned to each entry
they create. It is employee_id and in $this->getUser it has been
assigned as an attribute as employee_id. How do I automatically make
it so that employee_is filled ou
Hello, I am having trouble with the following:
I am trying to override my setPassword method for my employee model
but everytime I try to overwrite it I get nothing from it. I was
using:
public function setPassword($password)
{
parent::setPassword(sh1($password));
fForm::embed() method.
>
> Cheers,
>
> Before Printing, Think about Your Environmental Responsibility!
> Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
>
> On Fri, Jan 8, 2010 at 8:04 PM, Darren884 wrote:
> > Hi guys, I am developing with Symfony 1
e able to see the field.
>
> -look at the sfForm::embed() method.
>
> Cheers,
>
> Before Printing, Think about Your Environmental Responsibility!
> Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
>
> On Fri, Jan 8, 2010 at 8:04 PM, Darren884 wrote:
> &g
Hi guys, I am developing with Symfony 1.4 and have generated my
backend, however there are some problems I have ran into.
Is there anyway to customize the way fields are displayed in the list
view? E.g. say if I have an image and I wnat to customize how it looks
in a list view.
Also how do I init
65 matches
Mail list logo