Re: [symfony-users] [Symfony2] I ~think I found a bug. I need your advice before submitting the issue.

2011-03-31 Thread oscar balladares
That is cool, you honor me by responding "yourself" :D I was actually needing that feature to generate a 'current' id ("blabla") according to the current route. But I wanted its controller to do some stuff before rendering the template. That is why I didnt 'include' the template. Regards.! 2011/

Re: [symfony-users] [Symfony2] I ~think I found a bug. I need your advice before submitting the issue.

2011-03-31 Thread Fabien Potencier
On 4/1/11 3:09 AM, oscar balladares wrote: Hi everybody, as I mentioned I think I found a bug in the Request component. Before submitting the issue I need you to confirm or advice me if this is really a bug and not a feature or misusing. I resume, I have a main layout, which render a controller'

[symfony-users] [Symfony2] I ~think I found a bug. I need your advice before submitting the issue.

2011-03-31 Thread oscar balladares
Hi everybody, as I mentioned I think I found a bug in the Request component. Before submitting the issue I need you to confirm or advice me if this is really a bug and not a feature or misusing. I resume, I have a main layout, which render a controller's response template, in that template I want

[symfony-users] Re: Jobeet (doctrine help)!

2011-03-31 Thread Roger Webb
As I best understand it, the "table" object is supposed to act as a repository. You would, ideally, add methods to the table class to retrieve instances of 'tableClass'. It may be better illustrated with an example: You have a class(model) User. In your UserTable class you might make a method c

[symfony-users] Jobeet (doctrine help)!

2011-03-31 Thread FHoerth
Hi! Can someone explain me what is the difference between: $this->var = Doctrine_Core::getTable('tableClass')- >createQuery('alias')->where('alias.column > ?', date); and this? $this->var = Doctrine_Query::create()->from('tableClass alias')- >where('alias.column > ?', date); Why not using a si

Re: [symfony-users] MP4 mime type sfValidatorFile troubles with IE6

2011-03-31 Thread Gábor Fási
Check what mime type is sent by IE. You can use wireshark, or do a quick n' dirty die(var_dump($_FILE)) in your action. On Mar 31, 2011 8:35 PM, "_kud" wrote: > Hello, > > I've some troubles with IE6 (oh, really?), I'd like to validate my mp4 > uploaded file but sf 1.4 answers me it's a wrong mime

Re: [symfony-users] [Symfony2] link_to() helper for Symfony2???

2011-03-31 Thread Gareth McCumskey
Inline javascript is really frowned upon these days as "bad practice" Consider looking at using a javascript library like JQuery. It simplifies your Javascript code immensely, makes calling abstracted functions dead easy from an external file based on triggering events on DOM elements and best of a

[symfony-users] MP4 mime type sfValidatorFile troubles with IE6

2011-03-31 Thread _kud
Hello, I've some troubles with IE6 (oh, really?), I'd like to validate my mp4 uploaded file but sf 1.4 answers me it's a wrong mime type. What I've done: $this->setValidator('video', new sfValidatorFile( array( 'mime_types' => array('video/mpeg','video/mpg','video/ mp4'),

[symfony-users] Re: [PR8] AsseticBundle Configuration + Usage

2011-03-31 Thread Wizermil
Hi Albert, Thanks for the reply. When I use this syntax: {% assets 'mybundle/css/*.css' output='css/all.css' %} {{ asset_url }} {% endassets %} It throw an exception: Unknown tag name "assets" in "PlaysoftHR::layout.html.twig" line 6 That's why I checked in assetic to see that the method sty

[symfony-users] Symfony2 validation: file constraint and mime type

2011-03-31 Thread Dmitry Bykadorov
Hello all! Can anyone give a hint with file constraint? The problem: - form with FileField: Code: $this->add(new FileField('photoFile', array( 'required' => false, 'secret' => 'wwewewewew' ))); - form request class: Code: /** * @validation:File(

[symfony-users] Re: link_to() helper for Symfony2???

2011-03-31 Thread weaverryan
Hi Oscar! I don't believe this will be a feature added to Symfony2, but it would indeed make for a very useful Twig function (and could potentially be put into the Twig extensions repository). I'm not sure if anyone has already implemented this on their own, but if someone has, hopefully they'll s

Re: Re : [symfony-users] Symfony + CMS

2011-03-31 Thread weaverryan
I can't say anything about combining symfony + drupal, but I've heard only good things about the CMS Apostrophe. I don't believe Diem is being actively maintained and sympal definitely isn't being maintained. Thanks! On Mar 31, 6:55 am, mamadou aliou diallo wrote: > ytry > >  Mamadou Aliou Bobo

[symfony-users] Exciting opportunity to work on an award winning online learning platform for school children and teachers

2011-03-31 Thread Ben Haines
Hi, We are Gemin-i, an education charity based in London, UK. We recently launched our online learning community for school children and teachers called Rafiki (http://v3.rafi.ki) and are looking for inspiring developers to join our growing team. Our award winning platform consists of many exciti

[symfony-users] Re: [symfony2]authentication with email

2011-03-31 Thread symfonyMan
but where i have to that ? in my entity ? /** * @orm:Column(type="string", name="email") */ private $username; thanks On 31 mar, 15:58, Gareth McCumskey wrote: > No, just make the username = email > > On Thu, Mar 31, 2011 at 5:34 PM, symfonyMan wrote: > > > > > Hello > > > Thanks

[symfony-users] Re: [Symfony2] Custom Doctrine DQL Function

2011-03-31 Thread Donald
Thanks so much for the quick response! On Mar 31, 11:39 am, Christophe COEVOET wrote: > Le 31/03/2011 18:30, Donald a crit :> Can anyone tell me how to use my custom > function with Doctrine 2 in > > Symfony 2? > > > Thanks, > > Register the function throught the configuration: > > doctrine: >  

Re: [symfony-users] [Symfony2] Custom Doctrine DQL Function

2011-03-31 Thread Christophe COEVOET
Le 31/03/2011 18:30, Donald a écrit : Can anyone tell me how to use my custom function with Doctrine 2 in Symfony 2? Thanks, Register the function throught the configuration: doctrine: dbal: ~ orm: entity_managers: default: mappings:

[symfony-users] [Symfony2] Custom Doctrine DQL Function

2011-03-31 Thread Donald
Hi, I'm trying to use a custom DQL function with Symfony 2, but I'm unsure how to register the function with the Doctrine configuration when using Symfony 2. I've setup my DQL function as explained here: http://www.doctrine-project.org/blog/doctrine2-custom-dql-udfs And I've discovered a setting

Re: [symfony-users] Re: [symfony2]authentication with email

2011-03-31 Thread Gareth McCumskey
No, just make the username = email On Thu, Mar 31, 2011 at 5:34 PM, symfonyMan wrote: > Hello > > Thanks for your replay > > I have to delete email property in user entity ?? > > there is not other method ?? > > thanks > > On 31 mar, 12:59, Gareth McCumskey wrote: > > Just make your username an

Re: [symfony-users] [Symfony2] Problem with last commit of master branch

2011-03-31 Thread Gustavo Adrian
Ok, found the issue, but I still don't know why it appeared. I added this to my config.yml parameters: session.default_locale: es But I didn't defined in any place %session.default_locale%. Were there any changes adding this parameter? Thanks. -- If you want to report a vulnerabilit

[symfony-users] Re: [symfony2]authentication with email

2011-03-31 Thread symfonyMan
Hello Thanks for your replay I have to delete email property in user entity ?? there is not other method ?? thanks On 31 mar, 12:59, Gareth McCumskey wrote: > Just make your username an email address > > On Thu, Mar 31, 2011 at 2:26 PM, symfonyMan wrote: > > > > > Hello, > > > I created a

Re: [symfony-users] Re: Fatal error: Call to a member function getprenom() on a non-object

2011-03-31 Thread Haris Fauzi
Hi Mohamed, Your saying that $request->getParameter('matricule'); returns null value. That means you're retrieving or passing the value incorrectly. Check if: - the variable name is matricule - the variable is being passed to the action using HTTP GET, either through routing or manual passing from

Re: [symfony-users] Re: Fatal error: Call to a member function getprenom() on a non-object

2011-03-31 Thread Gareth McCumskey
Your query returns no results from the database. THEREFORE there are no objects to call getPrenom on because none were extracted from the database. You need to where you call $utilisateur->getprenom() do something in case there are no results. This isn't a symfony issue but a PHP one. Think a litt

Re: [symfony-users] [Symfony2] Problem with last commit of master branch

2011-03-31 Thread Gustavo Adrian
Yes. It was the first thing I did but it doesn't work. On Thu, Mar 31, 2011 at 10:22 AM, Christophe COEVOET wrote: > Le 31/03/2011 15:00, Gustavo Adrian a écrit : > > Hi all, >> >> I recently updated symfony (2 weeks ago was my last update). I'm receiving >> this error: >> >> "Uncaught exceptio

Re: [symfony-users] Re: Fatal error: Call to a member function getprenom() on a non-object

2011-03-31 Thread mohamed sabri ben sassi
like what because i use symfony for first time so can you help me 2011/3/31 Christophe COEVOET > Le 31/03/2011 15:12, mohamed sabri ben sassi a écrit : > > yess i cant get my column with the methode get() it didnt work when i > make $utilisateur->getprenom() > Fatal error: Call to a memb

Re: [symfony-users] [Symfony2] Problem with last commit of master branch

2011-03-31 Thread Christophe COEVOET
Le 31/03/2011 15:00, Gustavo Adrian a écrit : Hi all, I recently updated symfony (2 weeks ago was my last update). I'm receiving this error: "Uncaught exception 'InvalidArgumentException' with message 'The parameter "session.default_locale" must be defined" I didn't change anything in my c

Re: [symfony-users] Re: Fatal error: Call to a member function getprenom() on a non-object

2011-03-31 Thread Christophe COEVOET
Le 31/03/2011 15:12, mohamed sabri ben sassi a écrit : yess i cant get my column with the methode get() it didnt work when i make $utilisateur->getprenom() Fatal error: Call to a member function getprenom() on a non-object You issue is not with ->getprenom. The issue is that you don't ge

Re: [symfony-users] Re: Fatal error: Call to a member function getprenom() on a non-object

2011-03-31 Thread mohamed sabri ben sassi
yess i cant get my column with the methode get() it didnt work when i make $utilisateur->getprenom() Fatal error: Call to a member function getprenom() on a non-object 2011/3/31 Gareth McCumskey > Then thats your problem... > > On Thu, Mar 31, 2011 at 2:43 PM, mohamed sabri ben sa

[symfony-users] [Symfony2] Problem with last commit of master branch

2011-03-31 Thread Gustavo Adrian
Hi all, I recently updated symfony (2 weeks ago was my last update). I'm receiving this error: "Uncaught exception 'InvalidArgumentException' with message 'The parameter "session.default_locale" must be defined" I didn't change anything in my config.yml: framework: session: defaul

Re: [symfony-users] [symfony2]authentication with email

2011-03-31 Thread Gareth McCumskey
Just make your username an email address On Thu, Mar 31, 2011 at 2:26 PM, symfonyMan wrote: > Hello, > > I created a userBundle in my symfony2 project, it work good with > authentication by username. > > I want to authenticate the users with the email property, and i don't > know what to chan

Re: [symfony-users] Re: Fatal error: Call to a member function getprenom() on a non-object

2011-03-31 Thread Gareth McCumskey
Then thats your problem... On Thu, Mar 31, 2011 at 2:43 PM, mohamed sabri ben sassi < mohamedsabri.bensa...@gmail.com> wrote: > it dont return any value > > > 2011/3/31 mohamed sabri ben sassi > >> elle ne retourne aucune valeur >> >> >> 2011/3/31 Haris Fauzi >> >>> Hi Mohamed, >>> >>>

[symfony-users] [symfony2]authentication with email

2011-03-31 Thread symfonyMan
Hello, I created a userBundle in my symfony2 project, it work good with authentication by username. I want to authenticate the users with the email property, and i don't know what to change in configuration, entities to enable that. any idéas ?? Thnaks sorry for my bad english -- If you wan

Re: [symfony-users] Re: Fatal error: Call to a member function getprenom() on a non-object

2011-03-31 Thread mohamed sabri ben sassi
it dont return any value 2011/3/31 mohamed sabri ben sassi > elle ne retourne aucune valeur > > > 2011/3/31 Haris Fauzi > >> Hi Mohamed, >> >> This means that when you call >> $utilisateur->getprenom() >> The variable $utilisateur is not an instance of a class. >> >> Check the value of $reques

Re: [symfony-users] Re: Fatal error: Call to a member function getprenom() on a non-object

2011-03-31 Thread mohamed sabri ben sassi
elle ne retourne aucune valeur 2011/3/31 Haris Fauzi > Hi Mohamed, > > This means that when you call > $utilisateur->getprenom() > The variable $utilisateur is not an instance of a class. > > Check the value of $request->getParameter('matricule') if it's returning a > valid value to pass for fi

[symfony-users] Re: Functional Test (Mailer) Problem with Quoted-Printable Line Breaks (sf 1.4)

2011-03-31 Thread Matt Gibson
On Mar 5, 12:04 am, eric le bihen wrote: > > Is this because I'm using multipart mails? > > Correct. The sfTesterMailer checkBody does not check for message mime parts. > You could create a sfTesterMailerMultipart class that would extends the > sfTesterMailer > ... > You would need to iterate thr

Re: [symfony-users] Re: Content Negotiation Functionality

2011-03-31 Thread Gareth McCumskey
With symfony 1.x you can easily get access to ALL request headers in your controller actions. Using this, you can also alter the response headers as well as the content you respond with by reading what the request header is. If you wish to do this across an entire application you can also pre or po

Re : [symfony-users] Symfony + CMS

2011-03-31 Thread mamadou aliou diallo
ytry Mamadou Aliou Bobo Diallo De : Javier Garcia À : Symfony users Envoyé le : Jeu 31 mars 2011, 2h 08min 16s Objet : [symfony-users] Symfony + CMS Hi, someone to tell me what pros and cons combining symfony with drupal? Should i use better any other CMS

[symfony-users] Re: Would be a simple admin - relational databases

2011-03-31 Thread PM
I needed to generate the admin, but i got it. I did a module to each relationship too, and it is working fine now. Thanks On 28 mar, 18:07, oscar balladares wrote: > I didn't get you [?] > > Do you need the schema for that database requirements? or do you need the > code > to do it so in the admi

Re: [symfony-users] Re: Fatal error: Call to a member function getprenom() on a non-object

2011-03-31 Thread Haris Fauzi
Hi Mohamed, This means that when you call $utilisateur->getprenom() The variable $utilisateur is not an instance of a class. Check the value of $request->getParameter('matricule') if it's returning a valid value to pass for find(). $matricule_value = $request->getParameter('matricule'); printf(

[symfony-users] [Symfony2] Form & collection field

2011-03-31 Thread Alexey Popkov
Hi! I try to create dynamic form with CollectionField. Exaple (below $this- >formContext is from container, $data is array) -- form builder class -- public function createForm($data) { $form = Form::create($this->formContext, 'collections'); $sub = Form::create($this->formContext, 'sub'

Re: [symfony-users] Re: Fatal error: Call to a member function getprenom() on a non-object

2011-03-31 Thread Gábor Fási
This is a mailing list, not a chatroom - do not expect an immediate answer. Also, there's no need to ping your thread that often. Most probably the value passed to find is incorrect, look around there. On Mar 31, 2011 12:45 PM, "mohamed sabri ben sassi" < mohamedsabri.bensa...@gmail.com> wrote: >

Re: [symfony-users] Re: Fatal error: Call to a member function getprenom() on a non-object

2011-03-31 Thread mohamed sabri ben sassi
help 2011/3/31 mohamed sabri ben sassi > its correct s > > > 2011/3/31 Gábor Fási > >> Var_dump $utilisateur. Judging from the message doctrine doesn't find a >> matching record, thus returns false. Also check the query that is run. >> On Mar 31, 2011 12:20 PM, "

Re: [symfony-users] Re: Fatal error: Call to a member function getprenom() on a non-object

2011-03-31 Thread mohamed sabri ben sassi
its correct s 2011/3/31 Gábor Fási > Var_dump $utilisateur. Judging from the message doctrine doesn't find a > matching record, thus returns false. Also check the query that is run. > On Mar 31, 2011 12:20 PM, "mohamed sabri ben sassi" < > mohamedsabri.bensa...@gmail.com> wrote: > >

Re: [symfony-users] Re: Fatal error: Call to a member function getprenom() on a non-object

2011-03-31 Thread Gábor Fási
Var_dump $utilisateur. Judging from the message doctrine doesn't find a matching record, thus returns false. Also check the query that is run. On Mar 31, 2011 12:20 PM, "mohamed sabri ben sassi" < mohamedsabri.bensa...@gmail.com> wrote: > its the same thing i wont work have you an other solution >

Re: [symfony-users] Re: Fatal error: Call to a member function getprenom() on a non-object

2011-03-31 Thread mohamed sabri ben sassi
setTableName('utilisateur'); $this->hasColumn('matricule', 'integer', null, array( 'type' => 'integer', 'primary' => true, )); $this->hasColumn('password', 'string', 255, array( 'type' => 'string', 'notnull' => true,

[symfony-users] Re: Fatal error: Call to a member function getprenom() on a non-object

2011-03-31 Thread deepak
please mention your table schema here ... On Mar 31, 3:20 pm, mohamed sabri ben sassi wrote: > its  the same thing i wont work  have you an other solution > > 2011/3/31 Gareth McCumskey > > > > > > > > > Try using getPrenom not getprenom. Case sensitivity might be the issue > > here. > > > On Th

Re: [symfony-users] Re: Fatal error: Call to a member function getprenom() on a non-object

2011-03-31 Thread mohamed sabri ben sassi
its the same thing i wont work have you an other solution 2011/3/31 Gareth McCumskey > Try using getPrenom not getprenom. Case sensitivity might be the issue > here. > > On Thu, Mar 31, 2011 at 11:30 AM, mohamed sabri ben sassi < > mohamedsabri.bensa...@gmail.com> wrote: > >> pleaaase help

Re: [symfony-users] Re: Fatal error: Call to a member function getprenom() on a non-object

2011-03-31 Thread Gareth McCumskey
Try using getPrenom not getprenom. Case sensitivity might be the issue here. On Thu, Mar 31, 2011 at 11:30 AM, mohamed sabri ben sassi < mohamedsabri.bensa...@gmail.com> wrote: > pleaaase help > > > 2011/3/31 mohamed sabri ben sassi > >> matricule is an integer value and it is primary key >>

Re: [symfony-users] Re: Fatal error: Call to a member function getprenom() on a non-object

2011-03-31 Thread mohamed sabri ben sassi
pleaaase help 2011/3/31 mohamed sabri ben sassi > matricule is an integer value and it is primary key > also my colomn is named prenom ,,i checked all of this but its nothing ,,, > it works with the other module i will show the other exemple > action.class: > public function executeShow(sf

Re: [symfony-users] Re: Fatal error: Call to a member function getprenom() on a non-object

2011-03-31 Thread mohamed sabri ben sassi
matricule is an integer value and it is primary key also my colomn is named prenom ,,i checked all of this but its nothing ,,, it works with the other module i will show the other exemple action.class: public function executeShow(sfWebRequest $request) { $this->utilisateur = Doctrine::getTa

[symfony-users] Re: Fatal error: Call to a member function getprenom() on a non-object

2011-03-31 Thread deepak
Could you please mention the exact value that you are trying to pass to find(). I would like to know whether its an array or a single value that you are passing. Regarding "getprenom()" there must be a column named "prenom" in your DB table. generally its in camel case for example if in your mysq

Re: [symfony-users] Re: Fatal error: Call to a member function getprenom() on a non-object

2011-03-31 Thread mohamed sabri ben sassi
yes i tried with this ,,i have passed in find the primary_key weach is matricule but the same thing ,,i really stocked its bizare,,because when i generate an other module with showSuccess it works ,,but if i create my own function in action.class and my own template it makes an error Fatal error

[symfony-users] Re: Fatal error: Call to a member function getprenom() on a non-object

2011-03-31 Thread deepak
Hi Please try with $this->utilisateur = Doctrine::getTable('utilisateur')->find($request- >getParameter('matri cule')); find tries to search the row on the basis of primary key. That means you must pass primary key in find('PRIMARY_KEY') try this and post your feedback. -deepak On Mar 31, 1:

[symfony-users] Fatal error: Call to a member function getprenom() on a non-object

2011-03-31 Thread mohamed sabri ben sassi
hi guys,,i need help i have an error when i want to view my name or some information extracted from base with function getprenom or getmatricule ,,,the error is: Fatal error: Call to a member function getprenom() on a non-object in C:\development\sfprojects\gestion des competences\apps\fronten

[symfony-users] Fatal error: Call to a member function getprenom() on a non-object

2011-03-31 Thread mohamed sabri ben sassi
salut ,, j'ai une erreur qui m'enerve quand je veux afficher mon prenom avec dans le template avec la fonction getprenom() il m'affiche l'erreur suivante Fatal error: Call to a member function getprenom() on a non-object in C:\development\sfprojects\gestion des competences\apps\frontend\modul

[symfony-users] Re: erreur Call to a member function getprenom() on a non-object

2011-03-31 Thread mohamed sabri ben sassi
svp quelqun qui veut m'aider!!! 2011/3/30 mohamed sabri ben sassi > salut ,, > j'ai une erreur qui m'enerve quand je veux afficher mon prenom avec > dans le template avec la fonction getprenom() il m'affiche l'erreur > suivante > > Fatal error: Call to a member function getpreno