[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)));
}

$this->values[$field] = $value;
}

On Mar 11, 10:34 pm, Raphael Schumacher 
wrote:
> Which action are you in, executeNew(), executeCreate(), executeEdit()
> or any other one?
>
> The thing in general is that the defaults are used for filling the
> widgets with default data when you render the form for displaying it
> to the user. It's not taken into the object itself when you are about
> to save the object (e.g. as a consequence from a submit by the user).
>
> My personal solution here to set the data directly into the form's
> object:
> $supportTicket = $this->form->getObject();
> $supportTicket->set('customer_id', 
> $this->getUser()->getAttribute('customer_id'));
>
>   // there are alternatives to this setter function, but this one
> should work for sure
>
> Hope that helps, RAPHAEL

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[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 form is saved, however the above method is
not working. Does anyone know how I can set form values from within
the code?

Thanks,
Darren

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


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

2010-03-10 Thread Darren884
Thank you so much Daniel for the awesome response. I understand
clearly now.

On Mar 10, 11:08 am, Daniel Lohse 
wrote:
> Just subclass your backendForm to frontendForm and use the new useFields 
> method to a few unwanted widgets and their validators. As for the password 
> field: I think I added a updatePasswordColumn($value) method to my form class 
> and when it was blank ($value === '') I returned false in this method. That 
> way a blank password does not override the old one. For this to work you'll 
> need to make both your password and your password_again optional so it 
> doesn't give a 'Required.' error. Does this make sense?
>
> In case you're wondering, what these update%columnName%Column method is: you 
> can add those to your form class and they get called when a value is changed 
> in the form widget 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.
>
> Cheers, Daniel
>
> On 10.03.2010, at 19:31, Darren884 wrote:
>
> > 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 dilemma is how can I use the same form class in my frontend without
> > using the validators set in there or even displaying them?
>
> > Another problem is the password. Basically I want to allow the
> > customer to update their own information in my frontend, however when
> > they leave the password blank I want it to remain the same as before.
> > I have a validator on the password field now so its giving me a
> > headache.
>
> > Any insight is greatly appreciated.
>
> > Also I am using Doctrine and 1.4.
>
> > Thanks,
> > Darren
>
> > --
> > If you want to report a vulnerability issue on symfony, please send it to 
> > security at symfony-project.com
>
> > 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@googlegroups.com
> > To unsubscribe from this group, send email to
> > symfony-users+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[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 dilemma is how can I use the same form class in my frontend without
using the validators set in there or even displaying them?

Another problem is the password. Basically I want to allow the
customer to update their own information in my frontend, however when
they leave the password blank I want it to remain the same as before.
I have a validator on the password field now so its giving me a
headache.

Any insight is greatly appreciated.

Also I am using Doctrine and 1.4.

Thanks,
Darren

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[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  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 same pc), but
> some AJAX queries don't work in deployment. Checked with Firebug and
> the .js  files (where the function exist) are loaded. I need help to
> fix this issue.
>
> Thanks in advance

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[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  wrote:
> On Thu, 4 Mar 2010, Darren884 wrote:
> > These forms will simply not work. They keep resetting my record id to
> > 0.
>
> It would help if you provided the source of the page when doing an update
> so we can see what the form looks like. "Form go boom-boom" is not an
> error message and without sufficient precise data, we can't really help
> much.
>
> You could also help yourself by reading up on using forms - they are not
> very difficult to understand but they *do* you to do *some* work if you
> want to do something more than what the generators give you by default -
> usually that means overriding a method in your form class somewhere.
>
> --

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[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  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 record, make sure you pass the record
> > into the form at creation time,
> > for example:
>
> > $customer = CustomerPeer::retrieveByPk(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  wrote:
>
> > > 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 save their data because I have a unique email
> > > validator and whenever they try to save it they can't. What should I
> > > do? Should I just do validation the old fashioned way? Why is Symfony
> > > like this? Why can't I make it as easy as just letting someone update
> > > their information? Please someone help I am stuck on this.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


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

2010-03-04 Thread Darren884
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 record, make sure you pass the record
> into the form at creation time,
> for example:
>
> $customer = CustomerPeer::retrieveByPk(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  wrote:
>
> > 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 save their data because I have a unique email
> > validator and whenever they try to save it they can't. What should I
> > do? Should I just do validation the old fashioned way? Why is Symfony
> > like this? Why can't I make it as easy as just letting someone update
> > their information? Please someone help I am stuck on this.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[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 to save their data because I have a unique email
validator and whenever they try to save it they can't. What should I
do? Should I just do validation the old fashioned way? Why is Symfony
like this? Why can't I make it as easy as just letting someone update
their information? Please someone help I am stuck on this.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[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  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:
> $this->form = new CustomerForm($customer);
>
> But how can I do it like I am in my other by calling getForm()? I need
> to use the getForm method and pass options to my form.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[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 getForm()? I need
to use the getForm method and pass options to my form.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[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 report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] sf_flash gone in 1.4?

2010-03-01 Thread Darren884
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 in /var/
www/vhosts/blackhawk.biz/symfony/apps/frontend/modules/customers/
templates/loginSuccess.php on line 2

Why the hell would they deprecate this?

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[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:
http://groups.google.com/group/symfony-users?hl=en


[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  wrote:
> 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 file and
> > > have it display next to the defined title? Is this possible or am I
> > > going to have to be redundant throughout all my code?
>
> > You need to use slots in your 
> > layout:http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer#chap...
>
> > --

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[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  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 file and
> > have it display next to the defined title? Is this possible or am I
> > going to have to be redundant throughout all my code?
>
> You need to use slots in your 
> layout:http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer#chap...
>
> --

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[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 file and
have it display next to the defined title? Is this possible or am I
going to have to be redundant throughout all my code?

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...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



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

2010-02-15 Thread Darren884
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?
>
> > On Mon, Feb 15, 2010 at 20:10, Darren884  wrote:
> > > 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 this group, send email to symfony-us...@googlegroups.com.
> > > To unsubscribe from this group, send email to 
> > > symfony-users+unsubscr...@googlegroups.com.
> > > For more options, visit this group 
> > > athttp://groups.google.com/group/symfony-users?hl=en.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[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  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?
>
> > On Mon, Feb 15, 2010 at 20:10, Darren884  wrote:
> > > 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 this group, send email to symfony-us...@googlegroups.com.
> > > To unsubscribe from this group, send email to 
> > > symfony-users+unsubscr...@googlegroups.com.
> > > For more options, visit this group 
> > > athttp://groups.google.com/group/symfony-users?hl=en.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[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  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 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 this group, send email to symfony-us...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > symfony-users+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/symfony-users?hl=en.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[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 this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[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 command
line.

What am I doing wrong?

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...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



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

2010-02-08 Thread Darren884
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 trying to do 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
>
> try this in your template:
>
> look at :http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer
>
> echo  $sf_data->getRaw('test');

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[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  wrote:
> In my template I am trying to do  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 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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



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

2010-02-08 Thread Darren884
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 users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



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

2010-02-08 Thread Darren884
Thank you Thomas that worked perfectly and ironically deleting a file
was what I was after.

Thanks,
Darren

On Feb 8, 12:55 am, Thomas Rabaix  wrote:
> You should use preDelete and postDelete methods.
>
> class YouModel extends BaseModel {
>
>   public function postDelete()
>   {
>     // no your code
>     // ex: unlink($this->file)
>   }
>
>
>
> }
> On Sat, Feb 6, 2010 at 9:54 AM, Absalón Valdés  wrote:
> > hi. you can use a event handler adn the catch delete execution, e.g:
> > class backendConfiguration extends sfApplicationConfiguration
> > {
> >   public function 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 
>
> > 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...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> symfony-users+unsubscr...@googlegroups.com
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/symfony-users?hl=en.
>
> >  --
> > 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+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en.
>
> --
> Thomas Rabaixhttp://rabaix.net

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[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-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Question Regarding Forms And Their Names

2010-02-03 Thread Darren884
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.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[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  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 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 and others not? I am using 1.4 btw.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[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  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_employee_collection" does not exist.
>
> Has anyone had this issue? This is the weirdest thing, because why are
> some being generated correctly and others not? I am using 1.4 btw.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[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 and others not? I am using 1.4 btw.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[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
  period:   7
  history:  10
  purge:on

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[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  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 I can't change
> > the host.
>
> >http://www.artenossa.net/index.php/moveis
>
> > "The specified CGI application misbehaved by not returning a complete
> > set of HTTP headers."
>
> Usually that's because the script died. So look in your logs.
>
> (I can't stress enough how much troubleshooting can be solved by looking
> at the symfony or web server error logs!).
>
> --

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[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  wrote:
> By the way, it's Symfony, not Symphony.
>
> On Jan 27, 1:37 am, raviu  wrote:
>
> > Hello,
>
> > Could you tell us what you use symphony for, and how it has helped.
> > Just a summary of one or two lines. I'm making up a report and would
> > like some output from the symphony community.
>
> > Thanks for any help.
>
> > Best,
> > Ravi

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[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 just a small thing in my
schema file.

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...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[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-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[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 group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




[symfony-users] Re: Problem With User Management

2010-01-19 Thread Darren884
The reason I am not using sfDoctrineGuardUser is because I have 2 user
bases I am working with. I will have to find a way around it because I
have developed a customer setter for the password.

On Jan 19, 11:06 am, ashton honnecke  wrote:
> Why aren't you using 
> 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  wrote:
> > I am starting to think Symfony does not possess the even common sense
> > when it comes to building applications. Once again I will have to
> > reverse engineer the code and add my own ways.
>
> > On Jan 18, 8:38 pm, Ashton Honnecke  wrote:
> >> In the past, when not using sfGuardDoctrineUser I 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  wrote:
>
> >> > 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 possible in Symfony? I have tried to modify my
> >> > update action but because I encrypt my passwords it will not validate
> >> > because the encrypted version is 40 characters in length and my
> >> > validator only passes 8-12 characters. Can someone give me any insight
> >> > on this? Shouldn't this have been a practical thing to build in?
> >> > Hasn't anyone done a user system before?
>
> >> > 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...@googlegroups.com.
> >> > To unsubscribe from this group, send email to 
> >> > symfony-users+unsubscr...@googlegroups.com
> >> > .
> >> > For more options, visit this group 
> >> > athttp://groups.google.com/group/symfony-users?hl=en
> >> > .
>
> > --
> > 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+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/symfony-users?hl=en.
-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




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

2010-01-19 Thread Darren884
Here is how I solved it. In the buildQuery function I overwrote it and
added
...
if (null === $this->filters)
{
$getSort = $this->getSort();
if (empty($getSort))
{
$this->setSort(array('title', 'asc'));
}
...

As easy as that. Hopefully this will help other frustrated people.

On Jan 19, 11:10 am, ashton honnecke  wrote:
> If that's more than you were interested in, you can do this:
> $q = Doctrine_Table::Create()->
> 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 in the first
> place.
>
> On Tue, Jan 19, 2010 at 11:05 AM, Darren884  wrote:
> > 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  wrote:
>
> >> > 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...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > symfony-users+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/symfony-users?hl=en.
-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




[symfony-users] Re: Problem With User Management

2010-01-19 Thread Darren884
I am starting to think Symfony does not possess the even common sense
when it comes to building applications. Once again I will have to
reverse engineer the code and add my own ways.

On Jan 18, 8:38 pm, Ashton Honnecke  wrote:
> In the past, when not using sfGuardDoctrineUser I 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  wrote:
>
> > 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 possible in Symfony? I have tried to modify my
> > update action but because I encrypt my passwords it will not validate
> > because the encrypted version is 40 characters in length and my
> > validator only passes 8-12 characters. Can someone give me any insight
> > on this? Shouldn't this have been a practical thing to build in?
> > Hasn't anyone done a user system before?
>
> > 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...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > symfony-users+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group 
> > athttp://groups.google.com/group/symfony-users?hl=en
> > .
-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




[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  wrote:
> Hi darren,
>
> You should read this :
>
> http://www.doctrine-project.org/blog/cookbook-recipe-relation-dql-beh...
>
> On 18 jan, 18:30, Darren884  wrote:
>
> > 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...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




[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 possible in Symfony? I have tried to modify my
update action but because I encrypt my passwords it will not validate
because the encrypted version is 40 characters in length and my
validator only passes 8-12 characters. Can someone give me any insight
on this? Shouldn't this have been a practical thing to build in?
Hasn't anyone done a user system before?

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...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




[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  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' you might have
> 'myModule/index' or whatever other action returns the information you
> want to display.
>
> Regards,
> Marti
>
> 2010/1/18 Javier Garcia :
>
> > Hi,
>
> > i've just installed sfLightboxPlugin in sf 1.2.10 through:
>
> > symfony plugin:install sfLightboxPlugin
> > symfony plugin:publish-assets
> > symfony cc
>
> > Then i wrote this code (i copied it from sfLighboxplugin "Readme"):
>
> > 
>
> >  > // Modal Lightbox plugin test
> > $link_options = array(
> >     'title' => 'sfLightboxPlugin',
> >     'size'  => '550x200',
> >     'speed' => '6'
> > );
>
> > // or
> > //$link_options='title=sfLightboxPlugin size=450x180 speed=5';
> > //$link_options='title="sfLightboxPlugin" class=resizespeed_5
> > blocksize_450x180';
>
> > echo light_modallink(
> >   '» Link to test the modal box «',
> >   'sfLightboxPlugin/modal',
> >   $link_options
> > );
>
> > When i click over the link created  the modal window appears for an
> > instant (the typical icon that spins is showed ) but i get this error
> > message:
>
> > 404 | Not Found | sfError404Exception
> > Action "sfLightboxPlugin/modal" does not exist.
> > stack trace
>
> >     * at ()
> >       in SF_ROOT_DIR/lib/vendor/symfony/lib/controller/
> > sfController.class.php line 202 ...
> >              199.         $this->dispatcher->notify(new sfEvent($this,
> > 'application.log', array(sprintf('Action "%s/%s" does not exist',
> > $moduleName, $actionName;
> >              200.       }
> >              201.
> >              202.       throw new sfError404Exception(sprintf('Action
> > "%s/%s" does not exist.', $moduleName, $actionName));
> >              203.     }
> >              204.
> >              205.     // create an instance of the action
> >     * at sfController->forward('sfLightboxPlugin', 'modal')
> >       in SF_ROOT_DIR/lib/vendor/symfony/lib/controller/
> > sfFrontWebController.class.php line 48 ...
> >               45.       }
> >               46.
> >               47.       // make the first request
> >               48.       $this->forward($moduleName, $actionName);
> >               49.     }
> >               50.     catch (sfException $e)
> >               51.     {
> >     * at sfFrontWebController->dispatch()
> >       in SF_ROOT_DIR/lib/vendor/symfony/lib/util/sfContext.class.php
> > line 159 ...
> >              156.    */
> >              157.   public function dispatch()
> >              158.   {
> >              159.     $this->getController()->dispatch();
> >              160.   }
> >              161.
> >              162.   /**
> >     * at sfContext->dispatch()
> >       in SF_ROOT_DIR/web/frontend_dev.php line 13 ...
> >               10. require_once(dirname(__FILE__).'/../config/
> > ProjectConfiguration.class.php');
> >               11.
> >               12. $configuration =
> > ProjectConfiguration::getApplicationConfiguration('frontend', 'dev',
> > true);
> >               13. sfContext::createInstance($configuration)->dispatch
> > ();
> > 14.
>
> > symfony settings ...
>
> > app_categories:
> >   Perfil: @perfil
> >   Amigos: @amigos
> > app_params_to_escape_list:
> >   - loadingString
> >   - closeString
> > sf_admin_module_web_dir: /sfDoctrinePlugin
> > sf_admin_web_dir: /sf/sf_admin
> > sf_app: frontend
> > sf_app_base_cache_dir: /opt/lampp/htdocs/rs/cache/frontend
> > sf_app_cache_dir: /opt/lampp/htdocs/rs/cache/frontend/dev
> > sf_app_config_dir: /opt/lampp/htdocs/rs/apps/frontend/config
> > sf_app_dir: /opt/lampp/htdocs/rs/apps/frontend
> > sf_app_i18n_dir: /opt/lampp/htdocs/rs/apps/frontend/i18n
> > sf_app_lib_dir: /opt/lampp/htdocs/rs/apps/frontend/lib
> > sf_app_module_dir: /opt/lampp/htdocs/rs/apps/frontend/modules
> > sf_app_template_dir: /opt/lampp/htdocs/rs/apps/frontend/templates
> > sf_apps_dir: /opt/lampp/htdocs/rs/apps
> > sf_cache: false
> > sf_cache_dir: /opt/lampp/htdocs/rs/cache
> > sf_calendar_web_dir: /sf/calendar
> > sf_charset: utf-8
> > sf_check_lock: false
> > sf_check_symfony_version: false
> > sf_compressed: false
> > sf_config_cache_dir: /opt/lampp/htdocs/rs/cache/frontend/dev/config
> > sf_config_dir: /opt/lampp/htdocs/rs/config
> > sf_csrf_secret: false
> > sf_data_dir: /opt/lampp/htdocs/rs/data
> > sf_debug: true
> > sf_default_culture: en
> > sf_doc_dir: /opt/lampp/htdocs/rs/doc
> > sf_enabled_modules:
> >   - default
> >   - sfGuardAuth
> >   - sfLightboxPlugin
> > sf_environment: dev
> > sf_error_404_action: error404
> > sf_error_404_module: default
> > sf_error_reporting: 32767
> > sf_escaping_method: ESC_SPECIALCHARS
> > sf_escaping_strategy: false
> > sf_etag: false
> > sf_i18n: false
> > sf_i18n_cache_dir: /opt/lampp/htdocs/rs/cache/frontend/dev/i18n
> > sf_jquery_autocomple

[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-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




[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  wrote:
> Hello all,
>
> I have a Doctrine table called "Comment" which has a field called
> "is_published" and as I have different type of users I don want my
> basic users see my "is_published" widget. But I can not unset this
> widget from a controller where I can check the credentials, on the
> other hand in a form, I do not have access to the currently logged in
> user so I can not check the credentials. I am sure Symfony has a
> solution for this! Please help!
>
> My comment form is as following:
>
> Comment:
>     actAs:
>         Timestampable: ~
>     columns:
>         id: { type: integer, primary: true, autoincrement: true }
>         title: { type: string(255), notnull: true }
>         body: { type: string(1024), notnull: true }
>         is_published: { type: boolean, default: false }
-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




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

2010-01-16 Thread Darren884
Oh thanks didn't realize I could overwrite it, however I will probably
need to do the same for all my Symfony apps so I will keep it in the
core. I'll see about submitting it to the Trac.

On Jan 16, 4:04 pm, Daniel Lohse  wrote:
> Hey Darren,
>
> on reading through the sfModelGeneratorConfiguration.php file I got this on 
> line 496 (symfony 1.4.1):
>
>         return new $class($filters, $this->getFilterFormOptions());
>
> This means that you only have to write the getFilterFormOptions method in 
> your admin-generated module's lib/*Configuration.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:
>
>
>
> > Hi guys I finally found the solution. The setOptions does not work
> > with FilterForms.
>
> > You must edit /lib/generate/sfModelGeneratorConfiguration.php and make
> > getFilterForm resemble getForm so it can contain options.
>
> > The first instance of the getFilterForm will be called in the
> > protected buildQuery 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 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 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+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/symfony-users?hl=en.- Hide quoted text -
>
> - Show quoted text -
-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




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

2010-01-15 Thread Darren884
Hi guys I finally found the solution. The setOptions does not work
with FilterForms.

You must edit /lib/generate/sfModelGeneratorConfiguration.php and make
getFilterForm resemble getForm so it can contain options.

The first instance of the getFilterForm will be called in the
protected buildQuery 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 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 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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




[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 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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




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

2010-01-14 Thread Darren884
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, 2010, at 11: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  wrote:
> >> 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 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 FormFilter class from the action in order to
> >>> check credentials against it and hide or display fields? Is there a
> >>> different method in Symfony other than the __construct to get
> >>> variables?
>
> >>> 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...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > symfony-users+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/symfony-users?hl=en.
-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




[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  wrote:
> 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 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 FormFilter class from the action in order to
> > check credentials against it and hide or display fields? Is there a
> > different method in Symfony other than the __construct to get
> > variables?
>
> > 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...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




[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  wrote:
> 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 FormFilter class from the action in order to
> check credentials against it and hide or display fields? Is there a
> different method in Symfony other than the __construct to get
> variables?
>
> 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...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




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

2010-01-14 Thread Darren884
HI basically I want to make it so as if a user is filling out their
account options if they don't change their password it stays as it is.
This is very common with profile sites and such.

On Jan 14, 6:17 am, Alexandru-Emil Lupu  wrote:
> what do you mean? if a user does 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  wrote:
> > 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, send email to symfony-us...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > symfony-users+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en.
>
> --
> Have a nice day!
> Alecs
>
> As programmers create bigger & better idiot proof programs, so the universe
> creates bigger & better idiots!
> I am on web:  http://www.alecslupu.ro/
> I am on twitter:http://twitter.com/alecslupu
> I am on linkedIn:http://www.linkedin.com/in/alecslupu
> Tel: (+4)0748.543.798
-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




[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, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




[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 FormFilter class from the action in order to
check credentials against it and hide or display fields? Is there a
different method in Symfony other than the __construct to get
variables?

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...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




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

2010-01-13 Thread Darren884
Hello that worked perfectly thank you very much for your help.

On Jan 13, 12:52 pm, Stéphane  wrote:
> Look at the buildQuery() of your auto_xxx.class.php (in cache dir) to
> overload it in your very own actions class.
>
> Cheers,
>
> Before Printing, Think about Your Environmental 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 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?
>
> > 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...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > symfony-users+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en.
-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




[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?

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...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




[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' => $this->getUser()));
$this->Article = $this->form->getObject();
  }

Then I accessed that option in my form class with
$this->getOption('employee')

and based my logic on that.

On Jan 13, 8:28 am, apm  wrote:
> > 2. i totaly cant get myUser object from form class. No idea how get
> > auth user in form::configure
>
> Answer to myself get user from form class, possible with
> sfContext->GetUser, so i can move fill the hidden input from controller
> to form methods.
-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




[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  wrote:
> On Mon, 2010-01-11 at 11:12 -0800, Darren884 wrote:
> > The credential for the field is not working. The fields are still
> > being displayed. Am I doing something wrong? Here is my code:
> >     config:
> >       actions: ~
> >       fields:
> >         customer_id { help: The customer for whom the order is for. }
> >         employee_id:
> >           help: The employee who took the order.
> >           credentials: [ [ Corporate, Payment, Shipping ] ]
>
> Darren884:
>
> I believed the credentials option only worked on the old generators. The
> behavior you're looking for would be possible but will resort to
> modifying a plugin template. What I can recommend is have another
> 'general' viewing (show sounds a good candidate) for read-only and use
> 'edit' with credentials for editing. That config will go to
> {module_name}/config/security.yml.
>
>
>
> > On Jan 8, 11:17 am, Stéphane  wrote:
> > > Google for "symfony generator chapter 14" there are about all things put
> > > here, not in detail.
> > > For details and help I recommend IRC network.
>
> > > -In the list view you'll have to create template _myimage.php, modify your
> > > generator.yml list: fields: [ _myimage ]
> > > then in the _myimage.php you'll have access to the domain object (if you
> > > object model is named myObjectModel then you'll have a var named
> > > $myObjectModel and can access properties naturally like
> > > $myObjectModel['myimage'], then you can put a  to display
> > > the image for example).
>
> > > -You can init form vars in many places, you can set defaults in you
> > > schema.yml.
> > > A good place might be the action where the form is instanciated and where
> > > the object is retrieved from route
>
> > > -Yes you can, in the generator.yml config: fields: myimage: credentials:
> > > ["myimage/read/"] for example, then, users will need the "myimage/read/"
> > > credential to be 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:
> > > > 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 initially set values? I have a department based
> > > > eCommerce system I am making and in the order status dropdown I
> > > > initially want it to show 'placed' when they go to the New Order page.
>
> > > > Also is there any way to limit what fields are being viewed by users
> > > > based on their department (credentials)?
>
> > > > Lastly, is there any way for me to display and combine related
> > > > database objects when people edit a field? For instance I have a
> > > > customer id attached to a customer, and would like them to view it in
> > > > the list view along with that information.
>
> > > > I have already read the book and looked through the documentation
> > > > however I cannot find solutions to these issues. If there are ways to
> > > > do these in YAML I would prefer but I can also do them in PHP code.
>
> > > > I am willing to pay money for an advisor to advise me if necessary
> > > > when I need help as well.
>
> > > > 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...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > symfony-users+unsubscr...@googlegroups.com
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/symfony-users?hl=en.
>
> ---
>
> Follow me:http://twitter.com/agirivera
> Invite as a
> friend:http://www.facebook.com/agirivera
-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




[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, 10:59 am, Ali  wrote:
> Hi Symfony users and Developers,
>                                                    i am new in php and
> symfony development so far symfony has done wel for me , but its
> really hard for me to get the thing done right on deployment side ,
> its my 10th hour and i am unable to deploy the project on shared
> hosting.
>
> here are some of the facts about my problem
> 1 : i am using blue host shared hosting
> 2 : i want to deploy the project in sub directory the root is
> public_html , but i want my project to be deployed in public_html/
> myproject
> 3 : i have done most of the development on my ubuntu machine and want
> this project to be deployed
>
> if any one can share how to get the things done
>
> Best Regards
-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




[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 out with that attribute? Is it possible
in YAML or will I have to only use the form PHP file?

Thank You,
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...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




[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));
}

Also is it possible to define that a column in the doctrine YAML
should be unique? And also is it possible to define a MySQL function
on a column?

Thank You,
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...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




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

2010-01-11 Thread Darren884
The credential for the field is not working. The fields are still
being displayed. Am I doing something wrong? Here is my code:
config:
  actions: ~
  fields:
customer_id { help: The customer for whom the order is for. }
employee_id:
  help: The employee who took the order.
  credentials: [ [ Corporate, Payment, Shipping ] ]

On Jan 8, 11:17 am, Stéphane  wrote:
> Google for "symfony generator chapter 14" there are about all things put
> here, not in detail.
> For details and help I recommend IRC network.
>
> -In the list view you'll have to create template _myimage.php, modify your
> generator.yml list: fields: [ _myimage ]
> then in the _myimage.php you'll have access to the domain object (if you
> object model is named myObjectModel then you'll have a var named
> $myObjectModel and can access properties naturally like
> $myObjectModel['myimage'], then you can put a  to display
> the image for example).
>
> -You can init form vars in many places, you can set defaults in you
> schema.yml.
> A good place might be the action where the form is instanciated and where
> the object is retrieved from route
>
> -Yes you can, in the generator.yml config: fields: myimage: credentials:
> ["myimage/read/"] for example, then, users will need the "myimage/read/"
> credential to be 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:
> > 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 initially set values? I have a department based
> > eCommerce system I am making and in the order status dropdown I
> > initially want it to show 'placed' when they go to the New Order page.
>
> > Also is there any way to limit what fields are being viewed by users
> > based on their department (credentials)?
>
> > Lastly, is there any way for me to display and combine related
> > database objects when people edit a field? For instance I have a
> > customer id attached to a customer, and would like them to view it in
> > the list view along with that information.
>
> > I have already read the book and looked through the documentation
> > however I cannot find solutions to these issues. If there are ways to
> > do these in YAML I would prefer but I can also do them in PHP code.
>
> > I am willing to pay money for an advisor to advise me if necessary
> > when I need help as well.
>
> > 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...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > symfony-users+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en.
-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




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

2010-01-08 Thread Darren884
Thank you so much Stéphane for the quick reply I will be sure to look
for what you suggested.

Thanks,
Darren

On Jan 8, 11:17 am, Stéphane  wrote:
> Google for "symfony generator chapter 14" there are about all things put
> here, not in detail.
> For details and help I recommend IRC network.
>
> -In the list view you'll have to create template _myimage.php, modify your
> generator.yml list: fields: [ _myimage ]
> then in the _myimage.php you'll have access to the domain object (if you
> object model is named myObjectModel then you'll have a var named
> $myObjectModel and can access properties naturally like
> $myObjectModel['myimage'], then you can put a  to display
> the image for example).
>
> -You can init form vars in many places, you can set defaults in you
> schema.yml.
> A good place might be the action where the form is instanciated and where
> the object is retrieved from route
>
> -Yes you can, in the generator.yml config: fields: myimage: credentials:
> ["myimage/read/"] for example, then, users will need the "myimage/read/"
> credential to be 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:
> > 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 initially set values? I have a department based
> > eCommerce system I am making and in the order status dropdown I
> > initially want it to show 'placed' when they go to the New Order page.
>
> > Also is there any way to limit what fields are being viewed by users
> > based on their department (credentials)?
>
> > Lastly, is there any way for me to display and combine related
> > database objects when people edit a field? For instance I have a
> > customer id attached to a customer, and would like them to view it in
> > the list view along with that information.
>
> > I have already read the book and looked through the documentation
> > however I cannot find solutions to these issues. If there are ways to
> > do these in YAML I would prefer but I can also do them in PHP code.
>
> > I am willing to pay money for an advisor to advise me if necessary
> > when I need help as well.
>
> > 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...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > symfony-users+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en.
-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




[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 initially set values? I have a department based
eCommerce system I am making and in the order status dropdown I
initially want it to show 'placed' when they go to the New Order page.

Also is there any way to limit what fields are being viewed by users
based on their department (credentials)?

Lastly, is there any way for me to display and combine related
database objects when people edit a field? For instance I have a
customer id attached to a customer, and would like them to view it in
the list view along with that information.

I have already read the book and looked through the documentation
however I cannot find solutions to these issues. If there are ways to
do these in YAML I would prefer but I can also do them in PHP code.

I am willing to pay money for an advisor to advise me if necessary
when I need help as well.

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...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.