[symfony-users] Re: sfguardauth // How to display a layout depending on user's group

2010-10-22 Thread ziclo
Hello Gustavo, I don't understand what you mean by "Then in your own actions ". Which action are you speaking. I just want to change the layout accordingly to user's group jsut after login. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.

[symfony-users] Doctrine request problem with different connexions

2010-10-19 Thread ziclo
Hello, I have a problem with a doctrine request which uses a link between two differents databases. The schema : == # config/doctrine/schema.yml rsource: connection: doctrine1 columns: oid: {type: integer, primary: true} nameres: { type: string(255)

[symfony-users] Doctrine formfilter // input type

2010-09-17 Thread ziclo
Hello, I use synmfony + doctrine I have two tables : Table "Prets" (store articles borowed to managers) Table "CDP" (Store all manager names) Actually i use the default widget "sfWidgetFormDoctrineChoice" get from the BaseFormfilter (generated by doctrine) which allow me to get a list of manage

[symfony-users] Re: Doctrine Form filter // getRelatedModelName

2010-09-17 Thread ziclo
Hello! > > I think there is more than one solution for your problem. > > Try to overwrite the '_toString()' method in the model > (TrackerManagerTable.class.php). Or create some own method and call it > from whereever you want. > > Why are you implementing this logi

[symfony-users] Doctrine Form filter // getRelatedModelName

2010-09-16 Thread ziclo
Hello, In my form filters i want to display a "select" widget (multi choice). My problem is that the id appears but i want manager's name instead (relation one to many). I also want to display another field, manager's firstname. How can i do ? Here is my formfilter class : public function con

[symfony-users] Re: Connection to MS sql server

2010-09-15 Thread ziclo
or the column field > based on its name AND the alias of the table that contains it. Which > would produce even longer indexes... > > To summarize, it's a PITA to use pdo_mssql. Thank God Doctrine 2 will > be using sqlsvr instead of this s**tty solution. > > Hope I could

[symfony-users] sfguardauth // How to display a layout depending on user's group

2010-09-12 Thread ziclo
Hello, I use sfguard plugin and i want to display a layout dedicated to specific user's group (different menus/functionnalities). Sequences : 1 - user1 (group1) logs in 2 - route to homepage with the layout1 If user2 (group2) logs in so he is redirected to the homepage with layout2. How can i

[symfony-users] Re: Connection to MS sql server

2010-09-10 Thread ziclo
in it? > > On Sep 9, 7:18 am, ziclo wrote: > > > Hi everybody, > > > I'm trying to add a new database to my symfony project. One managed by > > mysql and the other by MS SQL server. I get an error about mssql > > driver when i rebuild all (schema, etc..)I d

[symfony-users] Connection to MS sql server

2010-09-09 Thread ziclo
Hi everybody, I'm trying to add a new database to my symfony project. One managed by mysql and the other by MS SQL server. I get an error about mssql driver when i rebuild all (schema, etc..)I do not know which driver to use for MS SQL. Here is my database.yml An idea ? Symfony version : 1.4 Her

[symfony-users] schema.yml // 2 relations for a same table problem

2010-09-07 Thread ziclo
Hello, I have created a schema.yml but I do not know how to create 2 relations for a same table. How can i disctinct those 2 relations (rsource). With a suffix ? Here is my code : TrackerPret: actAs: { Timestampable: ~ } connection: doctrine attributes: export: tables columns: da

[symfony-users] Re: Doctrine Pager max per page problem

2010-09-07 Thread ziclo
$this->addSortQuery($query); return $query; } protected function addSortQuery($query) { if (array(null, null) == ($sort = $this->getSort())) { return; } $query->addOrderBy($sort[0] . ' ' . $sort[1]); } protected function getSort() {

[symfony-users] Re: Doctrine Pager max per page problem

2010-08-27 Thread ziclo
More explanation about this issue : If the number of objects returned is > 10 then objects are displayed. If number of objects returned < 10 then nothing is displayed. I think there is a problem with the pager. But what ? An idea ? Thank you On 6 août, 15:46, ziclo wrote: > My symfon

[symfony-users] Re: Doctrine Pager max per page problem

2010-08-06 Thread ziclo
My symfony version : 1.4.1 with doctrine On 6 août, 14:57, ziclo wrote: > Hi everybody ! > > On the frontend i have a module called "articles" which is composed by > a list of results. I use doctrine pager like the one in the admin > backend. > > I have set up a m

[symfony-users] Doctrine Pager max per page problem

2010-08-06 Thread ziclo
Hi everybody ! On the frontend i have a module called "articles" which is composed by a list of results. I use doctrine pager like the one in the admin backend. I have set up a max number of rows for the pager (=10). I also use a doctrine filter (on the same view as result, like the admin backend

[symfony-users] Re: Frontend // pager or filter display issue

2010-04-23 Thread ziclo
No ideas about this issue ? Help would be very appreciated. Thank you On 27 mar, 22:06, ziclo wrote: > Hello, > > I use the admin generator actions and others methods for my frontend > (i just copied actions and classes). My problem is that when i use the > filter in order to ge

[symfony-users] Re: Frontend // pager or filter display issue

2010-03-30 Thread ziclo
"max_per_page" parameter. On the backend this problem doesn't occur. Ziclo On 29 mar, 22:14, trankh wrote: > How do you use generator for frontend filter. > > Because i tried to do that in an other way but i have a bug. > > http://groups.google.com/group/symfony-user

[symfony-users] Re: Frontend // pager or filter display issue

2010-03-29 Thread ziclo
Any idea ? Thank you for your help ! On 27 mar, 22:06, ziclo wrote: > Hello, > > I use the admin generator actions and others methods for my frontend > (i just copied actions and classes). My problem is that when i use the > filter in order to get objects for a particular catego

[symfony-users] Frontend // pager or filter display issue

2010-03-27 Thread ziclo
s ? Thank you Ziclo -- 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@googleg

[symfony-users] Re: Symfony frontend sort by th

2010-03-18 Thread ziclo
I found the solution to this issue : I copied all actions found into the cache / backend folder. Then i debugged some errors (lib missing, etc..). So the solution is to use the admin filters, pager and sort actions. Now it works fine. Thank you all ! On 13 fév, 14:55, ziclo wrote: > Hi, &g

[symfony-users] sfguardplugin - layout by usergroup

2010-03-15 Thread ziclo
Hi, I would like to display a layout depending to user's group. Furthermore, i want to hide or show menus (defined into the layout) depending on user's group. First i used the credentials and it works fine when a user try to access an unauthorized module (by url). But i want to show only menus (l

[symfony-users] Re: Symfony frontend sort by th

2010-03-10 Thread ziclo
Gareth, Is your solution compatible with Doctrine ? I have a lot of errors when i try to implement it. Ziclo On 5 mar, 07:17, Gareth McCumskey wrote: > In your view in the header cell: > > link_to(image_tag('sort_icon.png'),'module/action?sort=column_name') > ?

[symfony-users] Re: Symfony frontend sort by th

2010-03-09 Thread ziclo
you works well so I personally don't understand what is > difficult about it. > > > > On Mon, Mar 8, 2010 at 2:52 PM, ziclo wrote: > > Thank you all. I just think that a tutorial should exists on how to > > create sortable columns like the way it is in the backend. Same

[symfony-users] Re: Symfony frontend sort by th

2010-03-08 Thread ziclo
Thank you all. I just think that a tutorial should exists on how to create sortable columns like the way it is in the backend. Same thing for the use of filters. These are common functionnalities that i want to use for the frontend. I thought it would be simple to implement but not. I don't want to

[symfony-users] Re: Symfony frontend sort by th

2010-03-04 Thread ziclo
Does anyone has a tutorial about that ? The backend is usefull but a good tutorial would be appreciate in order to be able to do that kind of common functionnalities. Tnak you On 18 fév, 11:16, ziclo wrote: > Hello, > > That what i'm going to do. Thank you > > On 18 fév, 09:

[symfony-users] Re: Symfony frontend sort by th

2010-02-18 Thread ziclo
orrect ORDER BY sql in > it > > > > On Sat, Feb 13, 2010 at 3:55 PM, ziclo wrote: > > Hi, > > > I would like to be able to sort (order by ASC ou DESC) by clicking on > > a colon title (th). The same way as the backend of the jobeet > > tutorial. >

[symfony-users] Re: Symfony frontend sort by th

2010-02-18 Thread ziclo
Thats what i did but it didn't work. I will try again because i have more experience now. Thank you On 18 fév, 07:56, Tom Ptacnik wrote: > If you want a "native" method you can look into generated backend > actions and templates and replicate this in your frontend. >

[symfony-users] Re: Symfony frontend sort by th

2010-02-17 Thread ziclo
Is there a native (doctrine or symfony) method ? Thanks On 14 fév, 14:52, Daniel Lohse wrote: > You should take a look at the internal Sympal plugin sfSympalDataGridPlugin. > This will do what you want and there's also some documentation about it on > the Sympal homepage > here:http://www.sym

[symfony-users] Symfony frontend sort by th

2010-02-13 Thread ziclo
list (result of a query) by a simple click on the title of a colonn. Does a tutorial exists about that ? Thank you. Ziclo -- 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.