[symfony-users] Re: Simple Form Question

2010-03-12 Thread Darren884
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)));

[symfony-users] Simple Form Question

2010-03-11 Thread Darren884
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 before the

[symfony-users] Need Insight On Backend Forms VS Frontend Forms

2010-03-10 Thread Darren884
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

[symfony-users] Re: Need Insight On Backend Forms VS Frontend Forms

2010-03-10 Thread Darren884
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. Cheers, Daniel On 10.03.2010, at 19:31, Darren884 wrote: For you seasoned Symfony users, I need

[symfony-users] Re: Deploy an application

2010-03-05 Thread Darren884
Did you check the paths in the AJAX files? On Mar 3, 6:41 am, maelo_fredas mlugoab...@gmail.com 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

[symfony-users] getForm() in a regular module?

2010-03-04 Thread Darren884
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

[symfony-users] Re: getForm() in a regular module?

2010-03-04 Thread Darren884
I just generated an admin to use. On Mar 4, 9:06 am, Darren884 darren...@gmail.com 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

[symfony-users] Having horrible time with forms.

2010-03-04 Thread Darren884
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

[symfony-users] Re: Having horrible time with forms.

2010-03-04 Thread Darren884
); $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 darren...@gmail.com wrote: Heres the deal, I created an admin

[symfony-users] Re: Having horrible time with forms.

2010-03-04 Thread Darren884
These forms will simply not work. They keep resetting my record id to 0. On Mar 4, 2:38 pm, Darren884 darren...@gmail.com wrote: I am doing that and it is still giving me the error. On Mar 4, 12:00 pm, Richtermeister nex...@gmail.com wrote: Hey Darren, when you use a form to update

[symfony-users] Re: Having horrible time with forms.

2010-03-04 Thread Darren884
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 symb...@gmail.com wrote: On Thu, 4 Mar 2010, Darren884 wrote: These forms will simply not work. They keep resetting my record id to 0

[symfony-users] sf_flash gone in 1.4?

2010-03-01 Thread Darren884
In my template I put the following: ?php if ($sf_flash-has('status')): ? ?php echo $sf_flash-get('status') ? ?php endif; ? 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

[symfony-users] Symfony doctrine and CRUD?

2010-03-01 Thread Darren884
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

[symfony-users] sfAction Different In 1.4?

2010-02-25 Thread Darren884
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: ?php /** * home action. * * @package

[symfony-users] Help with titles in template? A global title?

2010-02-23 Thread Darren884
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

[symfony-users] Re: Help with titles in template? A global title?

2010-02-23 Thread Darren884
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 symb...@gmail.com wrote: On Tue, 23 Feb 2010, Darren884

[symfony-users] Re: Help with titles in template? A global title?

2010-02-23 Thread Darren884
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 darren...@gmail.com wrote: So basically I have to go throughout all my code and add slots, great Symfony is really logical

[symfony-users] symfony project:disable backend does not work

2010-02-15 Thread Darren884
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 to

[symfony-users] Re: symfony project:disable backend does not work

2010-02-15 Thread Darren884
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 maerl...@gmail.com wrote: Did you clear your cache after enabling check_lock? On Mon, Feb 15, 2010 at 20:10, Darren884 darren...@gmail.com wrote: When I run this and go

[symfony-users] Re: symfony project:disable backend does not work

2010-02-15 Thread Darren884
Would it matter if I had PHP accelerator running? I am following all the directions correctly. On Feb 15, 1:03 pm, Darren884 darren...@gmail.com 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 maerl...@gmail.com

[symfony-users] Able to rename a project?

2010-02-15 Thread Darren884
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] Homepage routing not working properly.

2010-02-10 Thread Darren884
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

[symfony-users] Re: How to properly override Doctrine_Record::delete()?

2010-02-08 Thread Darren884
configure()   {         $this-dispatcher-connect('admin.delete_object', array($this,'xmethod'));   }   public function xmethod(sfEvent $event)   {           // do some stuff   } } This should work... i think 2010/2/5 Darren884 darren...@gmail.com Does anyone have any simple

[symfony-users] How to get raw data in a partial???

2010-02-08 Thread Darren884
In my template I am trying to do ?php include_partial('global/ navigator', array('User' = $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

[symfony-users] Re: How to get raw data in a partial???

2010-02-08 Thread Darren884
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 darren...@gmail.com wrote: In my template I

[symfony-users] How to properly override Doctrine_Record::delete()?

2010-02-05 Thread Darren884
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-users] Symfony Admin Generator Not Generating All Routes Properly

2010-02-02 Thread Darren884
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

[symfony-users] Re: Symfony Admin Generator Not Generating All Routes Properly

2010-02-02 Thread Darren884
Apparently this is now only happening for modules that have relations. On Feb 2, 10:46 am, Darren884 darren...@gmail.com 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

[symfony-users] Re: Symfony Admin Generator Not Generating All Routes Properly

2010-02-02 Thread Darren884
Had to regenerate the app. On Feb 2, 10:51 am, Darren884 darren...@gmail.com wrote: Apparently this is now only happening for modules that have relations. On Feb 2, 10:46 am, Darren884 darren...@gmail.com wrote: Some generated modules are done correctly, but with certain ones the routes

[symfony-users] Logging not working.

2010-02-01 Thread Darren884
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

[symfony-users] How to properly migrate doctrine schema?

2010-01-27 Thread Darren884
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

[symfony-users] Re: What do you use symphony for?

2010-01-27 Thread Darren884
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 lloy...@gmail.com wrote: By the way, it's Symfony, not Symphony. On Jan 27, 1:37 am, raviu

[symfony-users] Re: Issues with an IIS server and symfony 1.0.

2010-01-27 Thread Darren884
Why not upgrade? On Jan 27, 12:58 pm, Eno symb...@gmail.com 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

[symfony-users] Testing emails in development environment?

2010-01-22 Thread Darren884
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-users] _ in actions?

2010-01-20 Thread Darren884
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

[symfony-users] Re: How to get default sort method for models?

2010-01-19 Thread Darren884
Isn't there any other way? Is it truly that tedious to set a default sort option? On Jan 19, 2:39 am, Florian sideral.undergro...@gmail.com wrote: Hi darren, You should read this : http://www.doctrine-project.org/blog/cookbook-recipe-relation-dql-beh... On 18 jan, 18:30, Darren884 darren

[symfony-users] Re: Problem With User Management

2010-01-19 Thread Darren884
have usually made a   different reset password page, seperate from the rest of the user   form. Ashton On Jan 18, 2010, at 16:31, Darren884 darren...@gmail.com wrote: I have a form for the employees department and it has the information on the employee, including the password. The problem

[symfony-users] Re: Problem With User Management

2010-01-19 Thread Darren884
sfDoctrineGuardUser?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 darren...@gmail.com wrote: I am starting to think Symfony does not possess the even common sense when it comes to building applications

[symfony-users] Re: set or unset a field based on the user credentials

2010-01-18 Thread Darren884
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 ahsanu...@gmail.com wrote: Hello all, I have a Doctrine

[symfony-users] How to get default sort method for models?

2010-01-18 Thread Darren884
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-users] Re: Trying to operate sfLightboxPlugin 1.0.11

2010-01-18 Thread Darren884
Why not just a javascript library for a lightbox instead of using a Symfony module? On Jan 18, 10:19 am, Martin Settle martin.set...@gmail.com 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

[symfony-users] Problem With User Management

2010-01-18 Thread 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

[symfony-users] Re: How to access form filter object from within action?

2010-01-16 Thread Darren884
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: Hi guys I finally found the solution. The setOptions does not work

[symfony-users] How to access form filter object from within action?

2010-01-15 Thread Darren884
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

[symfony-users] Re: How to access form filter object from within action?

2010-01-15 Thread Darren884
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 darren...@gmail.com wrote: Can someone please tell me or show me an example on how to access a form filter object from within

[symfony-users] Re: Have it so if a user doesnt fill in a field it stays as it was?

2010-01-14 Thread Darren884
not complete a field, 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 darren...@gmail.com wrote: I have a password field and I want

[symfony-users] Re: Having trouble modifying filters.

2010-01-14 Thread Darren884
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 darren...@gmail.com wrote: In my form I use

[symfony-users] Re: Having trouble modifying filters.

2010-01-14 Thread Darren884
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 darren...@gmail.com wrote: Hi guys, I had to actually add an argument to the original

[symfony-users] Re: Having trouble modifying filters.

2010-01-14 Thread Darren884
:08 PM, Darren884 wrote: 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 darren...@gmail.com wrote: Hi guys, I had to actually add

[symfony-users] Re: How to automatically fill out a field that relates to a user?

2010-01-13 Thread Darren884
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' =

[symfony-users] How to customize query for admin generated module?

2010-01-13 Thread Darren884
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?

[symfony-users] Re: How to customize query for admin generated module?

2010-01-13 Thread Darren884
Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Wed, Jan 13, 2010 at 9:22 PM, Darren884 darren...@gmail.com 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 records from

[symfony-users] Having trouble modifying filters.

2010-01-13 Thread Darren884
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

[symfony-users] Have it so if a user doesnt fill in a field it stays as it was?

2010-01-13 Thread Darren884
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,

[symfony-users] How to automatically fill out a field that relates to a user?

2010-01-12 Thread Darren884
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

[symfony-users] Re: Installation on shared hosting

2010-01-12 Thread Darren884
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,

[symfony-users] Re: Extensively customizing admin generated backends?

2010-01-12 Thread Darren884
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 eij...@gmail.com wrote: On Mon, 2010-01-11 at 11:12 -0800, Darren884 wrote

[symfony-users] Re: Extensively customizing admin generated backends?

2010-01-11 Thread Darren884
, Pensez à Votre Responsabilitée Environnementale! On Fri, Jan 8, 2010 at 8:04 PM, Darren884 darren...@gmail.com wrote: 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

[symfony-users] Help with should be simple stuff...

2010-01-11 Thread Darren884
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));

[symfony-users] Extensively customizing admin generated backends?

2010-01-08 Thread Darren884
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

[symfony-users] Re: Extensively customizing admin generated backends?

2010-01-08 Thread Darren884
Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Fri, Jan 8, 2010 at 8:04 PM, Darren884 darren...@gmail.com wrote: Hi guys, I am developing with Symfony 1.4 and have generated my backend, however there are some problems I have ran