Re: [symfony-users] Re: Re : Symfony2 Object Route like in Symfony 1
On 24.05.2011 17:18, Christophe COEVOET wrote: > The syntax for routing placeholders is /{id}/ in Symfony2, not /:id/ so > it is totally normal. > > -- > Christophe | Stof Hi, thanks, finally got it to work! The Documentation should be updated as well, so that other people won't get confused the same way as me. Greetings Ben -- 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
Re: [symfony-users] Re: Re : Symfony2 Object Route like in Symfony 1
Hi, it's me again. I tried the ParamConverter Annotation but so far without any success. I always get a 404 NotFound Exception - NO route found for "GET /show/46" Is this feature still very buggy? Here is the code i am Using: /** * @Route("/show/:id", name="show_quiz") * @ParamConverter("quiz", class="QuizBundle:Quiz") * @Template() */ public function showAction(Quiz $quiz) { return array('quiz' => $quiz); } What am I doing wrong? It seems the routing framework cannot parse my route. If I use a route like "/show/{id}" it will work, but not with the ":id".. I got a Quiz Entity Class in my /Entity Directory. Greetings Ben On 24.05.2011 09:31, Ben Bieker wrote: > Hi, > > thanks a lot for your answers! As it seems, I have to look for more > bundles before asking questions here. I found the ParamConverter > Annotations here: > http://bundles.symfony-reloaded.org/frameworkextrabundle/annotations/converters.html > > I will check http://symfony2bundles.org/ if I find more cool things. > > Thanks again! > Ben > > On 23.05.2011 22:08, dustin10 wrote: >> It is provided in the FrameworkExtraBundle. Look at the ParamConverter >> annotation. >> >> Dustin >> >> -- >> 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
Re: [symfony-users] Re: Re : Symfony2 Object Route like in Symfony 1
Hi, thanks a lot for your answers! As it seems, I have to look for more bundles before asking questions here. I found the ParamConverter Annotations here: http://bundles.symfony-reloaded.org/frameworkextrabundle/annotations/converters.html I will check http://symfony2bundles.org/ if I find more cool things. Thanks again! Ben On 23.05.2011 22:08, dustin10 wrote: > It is provided in the FrameworkExtraBundle. Look at the ParamConverter > annotation. > > Dustin > > -- > 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] Symfony2 Object Route like in Symfony 1
Hi dear Community, I am currently playing around with the new Symfony 2 and so far I think you did an excellent job! But: I loved the feature from symfony 1 where your route could be defined as an object type. So that if you want to generate an url, you just have to pass an Object and the route with all the parameters (slugs, names, ids) is generated automatically. I did not find any reference in the official documentation: http://symfony.com/doc/current/book/routing.html How to do this in symfony2? Thank you very much! Ben -- 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: Column not found: 1054 Unknown column 'mourad' in 'field list'
hi guys when i want to update a value in my database with this query public function update_nom($a,$b,$c) { $q=Doctrine_Query::create()->update('utilisateur')->set('prenom',$a)->set('nom',$b)->where('matricule = ?',$c)->execute(); } an error is occured Column not found: 1054 Unknown column 'mourad' in 'field list' can some one help me 2011/4/13 mohamed sabri ben sassi > hi guys when i want to update a value in my database with this query > public function update_nom($a,$b,$c) > { > > > $q=Doctrine_Query::create()->update('utilisateur')->set('prenom',$a)->set('nom',$b)->where('matricule > = ?',$c)->execute(); > } > > an error is occured > Column not found: 1054 Unknown column 'mourad' in 'field list' > can some one help me > -- 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] Column not found: 1054 Unknown column 'mourad' in 'field list'
hi guys when i want to update a value in my database with this query public function update_nom($a,$b,$c) { $q=Doctrine_Query::create()->update('utilisateur')->set('prenom',$a)->set('nom',$b)->where('matricule = ?',$c)->execute(); } an error is occured Column not found: 1054 Unknown column 'mourad' in 'field list' can some one help me -- 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
Re: [symfony-users] how can i install the library TCPDF in symfony
yes i did all of these stuf but it didnt work 2011/4/9 Haris Fauzi > Try to clear cache directory: > C:\development\sfprojects\gestion des competences> del cache\*.* > (You're using Windows right?) > > Haris > > On 10 April 2011 01:52, mohamed sabri ben sassi < > mohamedsabri.bensa...@gmail.com> wrote: > >> yes i did all of these stuf but it didnt work >> >> >> 2011/4/9 Loïc Vernet >> >>> Ty to move the pdf_configs.yml file in the config directory of your >>> application. >>> >>> >>> 2011/4/9 mohamed sabri ben sassi >>> >>>> so can you help me please >>>> >>>> >>>> 2011/4/9 mohamed sabri ben sassi >>>> >>>>> no iam using symfony 1.2 >>>>> >>>>> >>>>> 2011/4/9 Loïc Vernet >>>>> >>>>>> Are you using symfony 1.4 ? >>>>>> >>>>>> >>>>>> 2011/4/9 mohamed sabri ben sassi >>>>>> >>>>>>> now it shows an other error: >>>>>>> Configuration file "C:\development\sfprojects\gestion des >>>>>>> competences/config/pdf_configs.yml, C:\development\sfprojects\gestion >>>>>>> des >>>>>>> competences\apps\frontend/config/pdf_configs.yml" does not have a >>>>>>> registered >>>>>>> handler. >>>>>>> >>>>>>> 2011/4/9 mohamed sabri ben sassi >>>>>>> >>>>>>>> Fatal error: Class 'sfTCPDFPluginConfigHandler' not found >>>>>>>> >>>>>>>> 2011/4/9 Loïc Vernet >>>>>>>> >>>>>>>>> What is the fatal error ? >>>>>>>>> >>>>>>>>> >>>>>>>>> 2011/4/9 mohamed sabri ben sassi >>>>>>>>> >>>>>>>>>> its activated but it didnt work and when i invite the command >>>>>>>>>> symfony plugin:publish-assests it shows me the plugin sfTCPDF >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> 2011/4/9 Loïc Vernet >>>>>>>>>> >>>>>>>>>>> You must activate the plugin in your >>>>>>>>>>> ProjectConfiguration.class.php file. >>>>>>>>>>> >>>>>>>>>>> ++ >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> 2011/4/9 mohamed sabri ben sassi < >>>>>>>>>>> mohamedsabri.bensa...@gmail.com> >>>>>>>>>>> >>>>>>>>>>>> when i make all these steps and begin coding >>>>>>>>>>>> this line $config=sfTCPDFPluginConfigHandler::loadconfig(); not >>>>>>>>>>>> found and it show fatal error >>>>>>>>>>>> >>>>>>>>>>>> 2011/4/9 Loïc Vernet >>>>>>>>>>>> >>>>>>>>>>>>> You could read the >>>>>>>>>>>>> README<http://www.symfony-project.org/plugins/sfTCPDFPlugin/1_6_2?tab=plugin_readme> >>>>>>>>>>>>> >>>>>>>>>>>>> 2011/4/9 mohamed sabri ben sassi < >>>>>>>>>>>>> mohamedsabri.bensa...@gmail.com> >>>>>>>>>>>>> >>>>>>>>>>>>>> how can i install the library TCPDF in symfony >>>>>>>>>>>>>> i have to generate a document pdf >>>>>>>>>>>>>> >>>>>>>>>>>>>> 2011/4/9 Loïc Vernet >>>>>>>>>>>>>> >>>>>>>>>>>>>>> http://www.symfony-project.org/plugins/sfTCPDFPlugin ? >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> 2011/4/8 mohamed sabri ben sassi < >>>>>>>>>>>>>>> mohamedsabri.bensa...@gmail.com> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> how c
Re: [symfony-users] how can i install the library TCPDF in symfony
yes i did all of these stuf but it didnt work 2011/4/9 Loïc Vernet > Ty to move the pdf_configs.yml file in the config directory of your > application. > > > 2011/4/9 mohamed sabri ben sassi > >> so can you help me please >> >> >> 2011/4/9 mohamed sabri ben sassi >> >>> no iam using symfony 1.2 >>> >>> >>> 2011/4/9 Loïc Vernet >>> >>>> Are you using symfony 1.4 ? >>>> >>>> >>>> 2011/4/9 mohamed sabri ben sassi >>>> >>>>> now it shows an other error: >>>>> Configuration file "C:\development\sfprojects\gestion des >>>>> competences/config/pdf_configs.yml, C:\development\sfprojects\gestion des >>>>> competences\apps\frontend/config/pdf_configs.yml" does not have a >>>>> registered >>>>> handler. >>>>> >>>>> 2011/4/9 mohamed sabri ben sassi >>>>> >>>>>> Fatal error: Class 'sfTCPDFPluginConfigHandler' not found >>>>>> >>>>>> 2011/4/9 Loïc Vernet >>>>>> >>>>>>> What is the fatal error ? >>>>>>> >>>>>>> >>>>>>> 2011/4/9 mohamed sabri ben sassi >>>>>>> >>>>>>>> its activated but it didnt work and when i invite the command >>>>>>>> symfony plugin:publish-assests it shows me the plugin sfTCPDF >>>>>>>> >>>>>>>> >>>>>>>> 2011/4/9 Loïc Vernet >>>>>>>> >>>>>>>>> You must activate the plugin in your ProjectConfiguration.class.php >>>>>>>>> file. >>>>>>>>> >>>>>>>>> ++ >>>>>>>>> >>>>>>>>> >>>>>>>>> 2011/4/9 mohamed sabri ben sassi >>>>>>>>> >>>>>>>>>> when i make all these steps and begin coding >>>>>>>>>> this line $config=sfTCPDFPluginConfigHandler::loadconfig(); not >>>>>>>>>> found and it show fatal error >>>>>>>>>> >>>>>>>>>> 2011/4/9 Loïc Vernet >>>>>>>>>> >>>>>>>>>>> You could read the >>>>>>>>>>> README<http://www.symfony-project.org/plugins/sfTCPDFPlugin/1_6_2?tab=plugin_readme> >>>>>>>>>>> >>>>>>>>>>> 2011/4/9 mohamed sabri ben sassi < >>>>>>>>>>> mohamedsabri.bensa...@gmail.com> >>>>>>>>>>> >>>>>>>>>>>> how can i install the library TCPDF in symfony >>>>>>>>>>>> i have to generate a document pdf >>>>>>>>>>>> >>>>>>>>>>>> 2011/4/9 Loïc Vernet >>>>>>>>>>>> >>>>>>>>>>>>> http://www.symfony-project.org/plugins/sfTCPDFPlugin ? >>>>>>>>>>>>> >>>>>>>>>>>>> 2011/4/8 mohamed sabri ben sassi < >>>>>>>>>>>>> mohamedsabri.bensa...@gmail.com> >>>>>>>>>>>>> >>>>>>>>>>>>>> how can i install the libraryhow can i install the library >>>>>>>>>>>>>> TCPDF in symfony >>>>>>>>>>>>>> i have to generate a document pdf TCPDF in symfony >>>>>>>>>>>>>> i have to generate a document pdf >>>>>>>>>>>>>> >>>>>>>>>>>>>> -- >>>>>>>>>>>>>> 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 >>>
Re: [symfony-users] how can i install the library TCPDF in symfony
so can you help me please 2011/4/9 mohamed sabri ben sassi > no iam using symfony 1.2 > > > 2011/4/9 Loïc Vernet > >> Are you using symfony 1.4 ? >> >> >> 2011/4/9 mohamed sabri ben sassi >> >>> now it shows an other error: >>> Configuration file "C:\development\sfprojects\gestion des >>> competences/config/pdf_configs.yml, C:\development\sfprojects\gestion des >>> competences\apps\frontend/config/pdf_configs.yml" does not have a registered >>> handler. >>> >>> 2011/4/9 mohamed sabri ben sassi >>> >>>> Fatal error: Class 'sfTCPDFPluginConfigHandler' not found >>>> >>>> 2011/4/9 Loïc Vernet >>>> >>>>> What is the fatal error ? >>>>> >>>>> >>>>> 2011/4/9 mohamed sabri ben sassi >>>>> >>>>>> its activated but it didnt work and when i invite the command symfony >>>>>> plugin:publish-assests it shows me the plugin sfTCPDF >>>>>> >>>>>> >>>>>> 2011/4/9 Loïc Vernet >>>>>> >>>>>>> You must activate the plugin in your ProjectConfiguration.class.php >>>>>>> file. >>>>>>> >>>>>>> ++ >>>>>>> >>>>>>> >>>>>>> 2011/4/9 mohamed sabri ben sassi >>>>>>> >>>>>>>> when i make all these steps and begin coding >>>>>>>> this line $config=sfTCPDFPluginConfigHandler::loadconfig(); not >>>>>>>> found and it show fatal error >>>>>>>> >>>>>>>> 2011/4/9 Loïc Vernet >>>>>>>> >>>>>>>>> You could read the >>>>>>>>> README<http://www.symfony-project.org/plugins/sfTCPDFPlugin/1_6_2?tab=plugin_readme> >>>>>>>>> >>>>>>>>> 2011/4/9 mohamed sabri ben sassi >>>>>>>>> >>>>>>>>>> how can i install the library TCPDF in symfony >>>>>>>>>> i have to generate a document pdf >>>>>>>>>> >>>>>>>>>> 2011/4/9 Loïc Vernet >>>>>>>>>> >>>>>>>>>>> http://www.symfony-project.org/plugins/sfTCPDFPlugin ? >>>>>>>>>>> >>>>>>>>>>> 2011/4/8 mohamed sabri ben sassi < >>>>>>>>>>> mohamedsabri.bensa...@gmail.com> >>>>>>>>>>> >>>>>>>>>>>> how can i install the libraryhow can i install the library >>>>>>>>>>>> TCPDF in symfony >>>>>>>>>>>> i have to generate a document pdf TCPDF in symfony >>>>>>>>>>>> i have to generate a document pdf >>>>>>>>>>>> >>>>>>>>>>>> -- >>>>>>>>>>>> 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 >>>>>>>>>>> Goo
Re: [symfony-users] how can i install the library TCPDF in symfony
no iam using symfony 1.2 2011/4/9 Loïc Vernet > Are you using symfony 1.4 ? > > > 2011/4/9 mohamed sabri ben sassi > >> now it shows an other error: >> Configuration file "C:\development\sfprojects\gestion des >> competences/config/pdf_configs.yml, C:\development\sfprojects\gestion des >> competences\apps\frontend/config/pdf_configs.yml" does not have a registered >> handler. >> >> 2011/4/9 mohamed sabri ben sassi >> >>> Fatal error: Class 'sfTCPDFPluginConfigHandler' not found >>> >>> 2011/4/9 Loïc Vernet >>> >>>> What is the fatal error ? >>>> >>>> >>>> 2011/4/9 mohamed sabri ben sassi >>>> >>>>> its activated but it didnt work and when i invite the command symfony >>>>> plugin:publish-assests it shows me the plugin sfTCPDF >>>>> >>>>> >>>>> 2011/4/9 Loïc Vernet >>>>> >>>>>> You must activate the plugin in your ProjectConfiguration.class.php >>>>>> file. >>>>>> >>>>>> ++ >>>>>> >>>>>> >>>>>> 2011/4/9 mohamed sabri ben sassi >>>>>> >>>>>>> when i make all these steps and begin coding >>>>>>> this line $config=sfTCPDFPluginConfigHandler::loadconfig(); not >>>>>>> found and it show fatal error >>>>>>> >>>>>>> 2011/4/9 Loïc Vernet >>>>>>> >>>>>>>> You could read the >>>>>>>> README<http://www.symfony-project.org/plugins/sfTCPDFPlugin/1_6_2?tab=plugin_readme> >>>>>>>> >>>>>>>> 2011/4/9 mohamed sabri ben sassi >>>>>>>> >>>>>>>>> how can i install the library TCPDF in symfony >>>>>>>>> i have to generate a document pdf >>>>>>>>> >>>>>>>>> 2011/4/9 Loïc Vernet >>>>>>>>> >>>>>>>>>> http://www.symfony-project.org/plugins/sfTCPDFPlugin ? >>>>>>>>>> >>>>>>>>>> 2011/4/8 mohamed sabri ben sassi >>>>>>>>> > >>>>>>>>>> >>>>>>>>>>> how can i install the libraryhow can i install the library TCPDF >>>>>>>>>>> in symfony >>>>>>>>>>> i have to generate a document pdf TCPDF in symfony >>>>>>>>>>> i have to generate a document pdf >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> 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 >>>&
Re: [symfony-users] how can i install the library TCPDF in symfony
now it shows an other error: Configuration file "C:\development\sfprojects\gestion des competences/config/pdf_configs.yml, C:\development\sfprojects\gestion des competences\apps\frontend/config/pdf_configs.yml" does not have a registered handler. 2011/4/9 mohamed sabri ben sassi > Fatal error: Class 'sfTCPDFPluginConfigHandler' not found > > 2011/4/9 Loïc Vernet > >> What is the fatal error ? >> >> >> 2011/4/9 mohamed sabri ben sassi >> >>> its activated but it didnt work and when i invite the command symfony >>> plugin:publish-assests it shows me the plugin sfTCPDF >>> >>> >>> 2011/4/9 Loïc Vernet >>> >>>> You must activate the plugin in your ProjectConfiguration.class.php >>>> file. >>>> >>>> ++ >>>> >>>> >>>> 2011/4/9 mohamed sabri ben sassi >>>> >>>>> when i make all these steps and begin coding >>>>> this line $config=sfTCPDFPluginConfigHandler::loadconfig(); not found >>>>> and it show fatal error >>>>> >>>>> 2011/4/9 Loïc Vernet >>>>> >>>>>> You could read the >>>>>> README<http://www.symfony-project.org/plugins/sfTCPDFPlugin/1_6_2?tab=plugin_readme> >>>>>> >>>>>> 2011/4/9 mohamed sabri ben sassi >>>>>> >>>>>>> how can i install the library TCPDF in symfony >>>>>>> i have to generate a document pdf >>>>>>> >>>>>>> 2011/4/9 Loïc Vernet >>>>>>> >>>>>>>> http://www.symfony-project.org/plugins/sfTCPDFPlugin ? >>>>>>>> >>>>>>>> 2011/4/8 mohamed sabri ben sassi >>>>>>>> >>>>>>>>> how can i install the libraryhow can i install the library TCPDF >>>>>>>>> in symfony >>>>>>>>> i have to generate a document pdf TCPDF in symfony >>>>>>>>> i have to generate a document pdf >>>>>>>>> >>>>>>>>> -- >>>>>>>>> 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 >>>>>>>> >>>>>>> >>>>>>> -- >>>>>>> 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-user
Re: [symfony-users] how can i install the library TCPDF in symfony
Fatal error: Class 'sfTCPDFPluginConfigHandler' not found 2011/4/9 Loïc Vernet > What is the fatal error ? > > > 2011/4/9 mohamed sabri ben sassi > >> its activated but it didnt work and when i invite the command symfony >> plugin:publish-assests it shows me the plugin sfTCPDF >> >> >> 2011/4/9 Loïc Vernet >> >>> You must activate the plugin in your ProjectConfiguration.class.php file. >>> >>> ++ >>> >>> >>> 2011/4/9 mohamed sabri ben sassi >>> >>>> when i make all these steps and begin coding >>>> this line $config=sfTCPDFPluginConfigHandler::loadconfig(); not found >>>> and it show fatal error >>>> >>>> 2011/4/9 Loïc Vernet >>>> >>>>> You could read the >>>>> README<http://www.symfony-project.org/plugins/sfTCPDFPlugin/1_6_2?tab=plugin_readme> >>>>> >>>>> 2011/4/9 mohamed sabri ben sassi >>>>> >>>>>> how can i install the library TCPDF in symfony >>>>>> i have to generate a document pdf >>>>>> >>>>>> 2011/4/9 Loïc Vernet >>>>>> >>>>>>> http://www.symfony-project.org/plugins/sfTCPDFPlugin ? >>>>>>> >>>>>>> 2011/4/8 mohamed sabri ben sassi >>>>>>> >>>>>>>> how can i install the libraryhow can i install the library TCPDF in >>>>>>>> symfony >>>>>>>> i have to generate a document pdf TCPDF in symfony >>>>>>>> i have to generate a document pdf >>>>>>>> >>>>>>>> -- >>>>>>>> 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 >>>>>>> >>>>>> >>>>>> -- >>>>>> 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 >
Re: [symfony-users] how can i install the library TCPDF in symfony
its activated but it didnt work and when i invite the command symfony plugin:publish-assests it shows me the plugin sfTCPDF 2011/4/9 Loïc Vernet > You must activate the plugin in your ProjectConfiguration.class.php file. > > ++ > > > 2011/4/9 mohamed sabri ben sassi > >> when i make all these steps and begin coding >> this line $config=sfTCPDFPluginConfigHandler::loadconfig(); not found and >> it show fatal error >> >> 2011/4/9 Loïc Vernet >> >>> You could read the >>> README<http://www.symfony-project.org/plugins/sfTCPDFPlugin/1_6_2?tab=plugin_readme> >>> >>> 2011/4/9 mohamed sabri ben sassi >>> >>>> how can i install the library TCPDF in symfony >>>> i have to generate a document pdf >>>> >>>> 2011/4/9 Loïc Vernet >>>> >>>>> http://www.symfony-project.org/plugins/sfTCPDFPlugin ? >>>>> >>>>> 2011/4/8 mohamed sabri ben sassi >>>>> >>>>>> how can i install the libraryhow can i install the library TCPDF in >>>>>> symfony >>>>>> i have to generate a document pdf TCPDF in symfony >>>>>> i have to generate a document pdf >>>>>> >>>>>> -- >>>>>> 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 >>>>> >>>> >>>> -- >>>> 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 >>> >> >> -- >> 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 > -- 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
Re: [symfony-users] how can i install the library TCPDF in symfony
this is the error : Fatal error: Class 'sfTCPDFPluginConfigHandler' not found 2011/4/9 mohamed sabri ben sassi > when i make all these steps and begin coding > this line $config=sfTCPDFPluginConfigHandler::loadconfig(); not found and > it show fatal error > > > 2011/4/9 Loïc Vernet > >> You could read the >> README<http://www.symfony-project.org/plugins/sfTCPDFPlugin/1_6_2?tab=plugin_readme> >> >> 2011/4/9 mohamed sabri ben sassi >> >>> how can i install the library TCPDF in symfony >>> i have to generate a document pdf >>> >>> 2011/4/9 Loïc Vernet >>> >>>> http://www.symfony-project.org/plugins/sfTCPDFPlugin ? >>>> >>>> 2011/4/8 mohamed sabri ben sassi >>>> >>>>> how can i install the libraryhow can i install the library TCPDF in >>>>> symfony >>>>> i have to generate a document pdf TCPDF in symfony >>>>> i have to generate a document pdf >>>>> >>>>> -- >>>>> 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 >>>> >>> >>> -- >>> 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 >> > > -- 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
Re: [symfony-users] how can i install the library TCPDF in symfony
when i make all these steps and begin coding this line $config=sfTCPDFPluginConfigHandler::loadconfig(); not found and it show fatal error 2011/4/9 Loïc Vernet > You could read the > README<http://www.symfony-project.org/plugins/sfTCPDFPlugin/1_6_2?tab=plugin_readme> > > 2011/4/9 mohamed sabri ben sassi > >> how can i install the library TCPDF in symfony >> i have to generate a document pdf >> >> 2011/4/9 Loïc Vernet >> >>> http://www.symfony-project.org/plugins/sfTCPDFPlugin ? >>> >>> 2011/4/8 mohamed sabri ben sassi >>> >>>> how can i install the libraryhow can i install the library TCPDF in >>>> symfony >>>> i have to generate a document pdf TCPDF in symfony >>>> i have to generate a document pdf >>>> >>>> -- >>>> 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 >>> >> >> -- >> 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 > -- 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
Re: [symfony-users] how can i install the library TCPDF in symfony
how can i install the library TCPDF in symfony i have to generate a document pdf 2011/4/9 Loïc Vernet > http://www.symfony-project.org/plugins/sfTCPDFPlugin ? > > 2011/4/8 mohamed sabri ben sassi > >> how can i install the libraryhow can i install the library TCPDF in >> symfony >> i have to generate a document pdf TCPDF in symfony >> i have to generate a document pdf >> >> -- >> 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 > -- 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] how can i install the library TCPDF in symfony
how can i install the library TCPDF in symfony i have to generate a document pdf -- 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] Exciting opportunity to work on an award winning online learning platform for school children and teachers
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 exciting technologies including LAMP, Symfony, XMPP/Jabber, jQuery, ExtJS and is all cloud hosted with Amazon. We have an exciting team to work for and many challenges ahead. The complete job specification can be found on our website: http://www.gemin-i.org/jobs/ (will be posted 1st April 2011) If interested please submit your CV and relevant details to supp...@gemin-i.org Please NO Agencies OR tele-workers, you must be able to work in London. Thanks, Ben Haines IT Director, Gemin-i -- 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
Re: [symfony-users] Re: Fatal error: Call to a member function getprenom() on a non-object
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 member function getprenom() on a non-object > > You issue is not with ->getprenom. > The issue is that you don't get any $utilisateur instance but null because > your query return no result. So you need to handle this special case in your > controller by doing something else when there is no result. > > -- > Christophe | Stof > > -- > 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
Re: [symfony-users] Re: Fatal error: Call to a member function getprenom() on a non-object
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 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, >>>> >>>> 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("matricule_value = %s\n", $matricule_value); exit(); >>>> $this->utilisateur = >>>> Doctrine::getTable('utilisateur')->find(array($matricule_value)); >>>> >>>> Regards, >>>> Haris >>>> >>>> On 31 March 2011 20:01, mohamed sabri ben sassi < >>>> mohamedsabri.bensa...@gmail.com> wrote: >>>> >>>>> 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: Call to a member function getprenom() on a non-object >>>>> >>>>> please give some solutions >>>>> 2011/3/31 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:19 pm, mohamed sabri ben sassi >>>>>> wrote: >>>>>> > 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\frontend\modules\login\templates\CVSuccess.php on >>>>>> line*55* >>>>>> > * >>>>>> > * >>>>>> > *there is the code of fuction executecv:* >>>>>> > * >>>>>> > class loginActions extends sfActions >>>>>> > { >>>>>> > public function executeCv(sfWebRequest $request) >>>>>> > { >>>>>> > >>>>>> > $this->utilisateur = >>>>>> > >>>>>> Doctrine::getTable('utilisateur')->find(array($request->getParameter('matri >>>>>> cule'))); >>>>>> > $this->forward404Unless($this->utilisateur); >>>>>> > >>>>>> > } >>>>>> > >>>>>> > and there is the code of cvsSuccess: >>>>>> > >>>>>> > Votre non>>>>> > $utilisateur->getprenom(); ?> >>>>>> > >>>>>> > i need help please >>>>>> > * >>>>>> >>>>>> -- >>>>>> If you want to report a vulnerability issue on symfony, please send it >>>>>> to security at symfony-project.com >>>>>> >>>>>> Yo
Re: [symfony-users] Re: Fatal error: Call to a member function getprenom() on a non-object
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 $request->getParameter('matricule') if it's returning a >> valid value to pass for find(). >> >> $matricule_value = $request->getParameter('matricule'); >> printf("matricule_value = %s\n", $matricule_value); exit(); >> $this->utilisateur = >> Doctrine::getTable('utilisateur')->find(array($matricule_value)); >> >> Regards, >> Haris >> >> On 31 March 2011 20:01, mohamed sabri ben sassi < >> mohamedsabri.bensa...@gmail.com> wrote: >> >>> 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: Call to a member function getprenom() on a non-object >>> >>> please give some solutions >>> 2011/3/31 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:19 pm, mohamed sabri ben sassi >>>> wrote: >>>> > 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\frontend\modules\login\templates\CVSuccess.php on >>>> line*55* >>>> > * >>>> > * >>>> > *there is the code of fuction executecv:* >>>> > * >>>> > class loginActions extends sfActions >>>> > { >>>> > public function executeCv(sfWebRequest $request) >>>> > { >>>> > >>>> > $this->utilisateur = >>>> > >>>> Doctrine::getTable('utilisateur')->find(array($request->getParameter('matri >>>> cule'))); >>>> > $this->forward404Unless($this->utilisateur); >>>> > >>>> > } >>>> > >>>> > and there is the code of cvsSuccess: >>>> > >>>> > Votre non>>> > $utilisateur->getprenom(); ?> >>>> > >>>> > i need help please >>>> > * >>>> >>>> -- >>>> 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 >>> >> >> -- >> 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
Re: [symfony-users] Re: Fatal error: Call to a member function getprenom() on a non-object
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 find(). > > $matricule_value = $request->getParameter('matricule'); > printf("matricule_value = %s\n", $matricule_value); exit(); > $this->utilisateur = > Doctrine::getTable('utilisateur')->find(array($matricule_value)); > > Regards, > Haris > > On 31 March 2011 20:01, mohamed sabri ben sassi < > mohamedsabri.bensa...@gmail.com> wrote: > >> 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: Call to a member function getprenom() on a non-object >> >> please give some solutions >> 2011/3/31 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:19 pm, mohamed sabri ben sassi >>> wrote: >>> > 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\frontend\modules\login\templates\CVSuccess.php on >>> line*55* >>> > * >>> > * >>> > *there is the code of fuction executecv:* >>> > * >>> > class loginActions extends sfActions >>> > { >>> > public function executeCv(sfWebRequest $request) >>> > { >>> > >>> > $this->utilisateur = >>> > >>> Doctrine::getTable('utilisateur')->find(array($request->getParameter('matri >>> cule'))); >>> > $this->forward404Unless($this->utilisateur); >>> > >>> > } >>> > >>> > and there is the code of cvsSuccess: >>> > >>> > Votre non>> > $utilisateur->getprenom(); ?> >>> > >>> > i need help please >>> > * >>> >>> -- >>> 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 >> > > -- > 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
Re: [symfony-users] Re: Fatal error: Call to a member function getprenom() on a non-object
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, "mohamed sabri ben sassi" < >> mohamedsabri.bensa...@gmail.com> 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 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 >> >>>> 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::getTable('utilisateur')->find(array($request->getParameter('matricule'))); >> >>>> $this->forward404Unless($this->utilisateur); >> >>>> } >> >>>> >> >>>> >> >>>> >> >>>> >> >>>> Matricule: >> >>>> getmatricule() ?> >> >>>> >> >>>> >> >>>> Password: >> >>>> getpassword() ?> >> >>>> >> >>>> >> >>>> Nom: >> >>>> getnom() ?> >> >>>> >> >>>> >> >>>> Prenom: >> >>>> getprenom() ?> >> >>>> >> >>>> >> >>>> Id groupe: >> >>>> getid_groupe() ?> >> >>>> >> >>>> >> >>>> Matr manager: >> >>>> getmatr_manager() ?> >> >>>> >> >>>> >> >>>> Date de naissance: >> >>>> getdate_de_naissance() ?> >> >>>> >> >>>> >> >>>> Lieu de naissance: >> >>>> getlieu_de_naissance() ?> >> >>>> >> >>>> >> >>>> Adresse: >> >>>> getadresse() ?> >> >>>> >> >>>> >> >>>> Tel mobile: >> >>>> gettel_mobile() ?> >> >>>> >> >>>> >> >>>> E mail: >> >>>> gete_mail() ?> >> >>>> >> >>>> >> >>>> Status familiale: >> >>>> getstatus_familiale() ?> >> >>>> >> >>>> >> >>>> Status: >> >>>> getstatus() ?> >> >>>> >> >>>> >> >>>> Created at: >> >>>> getcreated_at() ?> >> >>>> >> >>>> >> >>>> Updated at: >> >>>> getupdated_at() ?> >> >>>> >> >>>> >> >>>> >> >>>> >> >>>> >> >>>> >> >>>> you see with this code i can view this module and it manipulate the >> same >> >>>> function getprenom() ans it works >> >>>> >> >>>> 2011/3/31 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 mysql >> >>>>> database table column name is "my_column" then we use getMyColumn().
Re: [symfony-users] Re: Fatal error: Call to a member function getprenom() on a non-object
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: > > 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 > >>> > >>> > >>> 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(sfWebRequest $request) > >>>> { > >>>> $this->utilisateur = > >>>> > Doctrine::getTable('utilisateur')->find(array($request->getParameter('matricule'))); > >>>> $this->forward404Unless($this->utilisateur); > >>>> } > >>>> > >>>> > >>>> > >>>> > >>>> Matricule: > >>>> getmatricule() ?> > >>>> > >>>> > >>>> Password: > >>>> getpassword() ?> > >>>> > >>>> > >>>> Nom: > >>>> getnom() ?> > >>>> > >>>> > >>>> Prenom: > >>>> getprenom() ?> > >>>> > >>>> > >>>> Id groupe: > >>>> getid_groupe() ?> > >>>> > >>>> > >>>> Matr manager: > >>>> getmatr_manager() ?> > >>>> > >>>> > >>>> Date de naissance: > >>>> getdate_de_naissance() ?> > >>>> > >>>> > >>>> Lieu de naissance: > >>>> getlieu_de_naissance() ?> > >>>> > >>>> > >>>> Adresse: > >>>> getadresse() ?> > >>>> > >>>> > >>>> Tel mobile: > >>>> gettel_mobile() ?> > >>>> > >>>> > >>>> E mail: > >>>> gete_mail() ?> > >>>> > >>>> > >>>> Status familiale: > >>>> getstatus_familiale() ?> > >>>> > >>>> > >>>> Status: > >>>> getstatus() ?> > >>>> > >>>> > >>>> Created at: > >>>> getcreated_at() ?> > >>>> > >>>> > >>>> Updated at: > >>>> getupdated_at() ?> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> you see with this code i can view this module and it manipulate the > same > >>>> function getprenom() ans it works > >>>> > >>>> 2011/3/31 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 mysql > >>>>> database table column name is "my_column" then we use getMyColumn(). > >>>>> > >>>>> similarly you may try getPrenom() if your column name is "prenom" . > >>>>> > >>>>> -deepak > >>>>> > >>>>> > >>>>> On Mar 31, 2:01 pm, mohamed sabri ben sassi > >>>>> wrote: > >>>>> > yes i tried with this ,,i have passed in find the primary_key weach > >>>>> is > >>>>> > matricule but the same thing ,,i rea
Re: [symfony-users] Re: Fatal error: Call to a member function getprenom() on a non-object
setTableName('utilisateur'); $this->hasColumn('matricule', 'integer', null, array( 'type' => 'integer', 'primary' => true, )); $this->hasColumn('password', 'string', 255, array( 'type' => 'string', 'notnull' => true, 'length' => '255', )); $this->hasColumn('nom', 'string', 255, array( 'type' => 'string', 'notnull' => true, 'length' => '255', )); $this->hasColumn('prenom', 'string', 255, array( 'type' => 'string', 'notnull' => true, 'length' => '255', )); $this->hasColumn('id_groupe', 'integer', null, array( 'type' => 'integer', 'notnull' => true, )); $this->hasColumn('matr_manager', 'integer', null, array( 'type' => 'integer', 'notnull' => true, )); $this->hasColumn('date_de_naissance', 'date', null, array( 'type' => 'date', 'notnull' => true, )); $this->hasColumn('lieu_de_naissance', 'string', 255, array( 'type' => 'string', 'notnull' => true, 'length' => '255', )); $this->hasColumn('adresse', 'string', 500, array( 'type' => 'string', 'notnull' => true, 'length' => '500', )); $this->hasColumn('tel_mobile', 'integer', null, array( 'type' => 'integer', 'notnull' => true, )); $this->hasColumn('e_mail', 'string', 255, array( 'type' => 'string', 'notnull' => true, 'length' => '255', )); $this->hasColumn('status_familiale', 'boolean', null, array( 'type' => 'boolean', 'notnull' => true, )); $this->hasColumn('status', 'boolean', null, array( 'type' => 'boolean', 'notnull' => true, 'default' => 0, )); } public function setUp() { parent::setUp(); $this->hasOne('utilisateur', array( 'local' => 'matr_manager', 'foreign' => 'matricule', 'onDelete' => 'CASCADE')); $this->hasOne('groupe', array( 'local' => 'id_groupe', 'foreign' => 'id_groupe', 'onDelete' => 'CASCADE')); $this->hasMany('travailler_sur', array( 'local' => 'matricule', 'foreign' => 'matricule')); $this->hasMany('avoir_formation', array( 'local' => 'matricule', 'foreign' => 'matricule')); $this->hasMany('avoir_poste', array( 'local' => 'matricule', 'foreign' => 'matricule')); $this->hasMany('objectif as objectifs', array( 'local' => 'matricule', 'foreign' => 'matricule')); $this->hasMany('demande as demandes', array( 'local' => 'matricule', 'foreign' => 'matricule')); $this->hasMany('competence', array( 'local' => 'matricule', 'foreign' => 'matricule')); $this->hasMany('experiences_professionnelles', array( 'local' => 'matricule', 'foreign' => 'matricule')); $timestampable0 = new Doctrine_Template_Tim
Re: [symfony-users] Re: Fatal error: Call to a member function getprenom() on a non-object
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 >> >> >> 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(sfWebRequest $request) >>> { >>> $this->utilisateur = >>> Doctrine::getTable('utilisateur')->find(array($request->getParameter('matricule'))); >>> $this->forward404Unless($this->utilisateur); >>> } >>> >>> >>> >>> >>> Matricule: >>> getmatricule() ?> >>> >>> >>> Password: >>> getpassword() ?> >>> >>> >>> Nom: >>> getnom() ?> >>> >>> >>> Prenom: >>> getprenom() ?> >>> >>> >>> Id groupe: >>> getid_groupe() ?> >>> >>> >>> Matr manager: >>> getmatr_manager() ?> >>> >>> >>> Date de naissance: >>> getdate_de_naissance() ?> >>> >>> >>> Lieu de naissance: >>> getlieu_de_naissance() ?> >>> >>> >>> Adresse: >>> getadresse() ?> >>> >>> >>> Tel mobile: >>> gettel_mobile() ?> >>> >>> >>> E mail: >>> gete_mail() ?> >>> >>> >>> Status familiale: >>> getstatus_familiale() ?> >>> >>> >>> Status: >>> getstatus() ?> >>> >>> >>> Created at: >>> getcreated_at() ?> >>> >>> >>> Updated at: >>> getupdated_at() ?> >>> >>> >>> >>> >>> >>> >>> you see with this code i can view this module and it manipulate the same >>> function getprenom() ans it works >>> >>> 2011/3/31 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 mysql >>>> database table column name is "my_column" then we use getMyColumn(). >>>> >>>> similarly you may try getPrenom() if your column name is "prenom" . >>>> >>>> -deepak >>>> >>>> >>>> On Mar 31, 2:01 pm, mohamed sabri ben sassi >>>> wrote: >>>> > 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: Call to a member function getprenom() on a non-object >>>> > >>>> > please give some solutions >>>> > 2011/3/31 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 k
Re: [symfony-users] Re: Fatal error: Call to a member function getprenom() on a non-object
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(sfWebRequest $request) > { > $this->utilisateur = > Doctrine::getTable('utilisateur')->find(array($request->getParameter('matricule'))); > $this->forward404Unless($this->utilisateur); > } > > > > > Matricule: > getmatricule() ?> > > > Password: > getpassword() ?> > > > Nom: > getnom() ?> > > > Prenom: > getprenom() ?> > > > Id groupe: > getid_groupe() ?> > > > Matr manager: > getmatr_manager() ?> > > > Date de naissance: > getdate_de_naissance() ?> > > > Lieu de naissance: > getlieu_de_naissance() ?> > > > Adresse: > getadresse() ?> > > > Tel mobile: > gettel_mobile() ?> > > > E mail: > gete_mail() ?> > > > Status familiale: > getstatus_familiale() ?> > > > Status: > getstatus() ?> > > > Created at: > getcreated_at() ?> > > > Updated at: > getupdated_at() ?> > > > > > > > you see with this code i can view this module and it manipulate the same > function getprenom() ans it works > > 2011/3/31 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 mysql >> database table column name is "my_column" then we use getMyColumn(). >> >> similarly you may try getPrenom() if your column name is "prenom" . >> >> -deepak >> >> >> On Mar 31, 2:01 pm, mohamed sabri ben sassi >> wrote: >> > 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: Call to a member function getprenom() on a non-object >> > >> > please give some solutions >> > 2011/3/31 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:19 pm, mohamed sabri ben sassi >> > > wrote: >> > > > 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\frontend\modules\login\templates\CVSuccess.php on >> > > line*55* >> > > > * >> > > > * >> > > > *there is the code of fuction executecv:* >> > > > * >> > > > class loginActions extends sfActions >> > > > { >> > > > public function executeCv(sfWebRequest $request) >> > > > { >> > >> > > > $this->utilisateur = >> > >> > > >> Doctrine::getTable('utilisateur')->find(array($request->getParameter('matri >> > > cule'))); >> &g
Re: [symfony-users] Re: Fatal error: Call to a member function getprenom() on a non-object
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::getTable('utilisateur')->find(array($request->getParameter('matricule'))); $this->forward404Unless($this->utilisateur); } Matricule: getmatricule() ?> Password: getpassword() ?> Nom: getnom() ?> Prenom: getprenom() ?> Id groupe: getid_groupe() ?> Matr manager: getmatr_manager() ?> Date de naissance: getdate_de_naissance() ?> Lieu de naissance: getlieu_de_naissance() ?> Adresse: getadresse() ?> Tel mobile: gettel_mobile() ?> E mail: gete_mail() ?> Status familiale: getstatus_familiale() ?> Status: getstatus() ?> Created at: getcreated_at() ?> Updated at: getupdated_at() ?> you see with this code i can view this module and it manipulate the same function getprenom() ans it works 2011/3/31 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 mysql > database table column name is "my_column" then we use getMyColumn(). > > similarly you may try getPrenom() if your column name is "prenom" . > > -deepak > > > On Mar 31, 2:01 pm, mohamed sabri ben sassi > wrote: > > 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: Call to a member function getprenom() on a non-object > > > > please give some solutions > > 2011/3/31 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:19 pm, mohamed sabri ben sassi > > > wrote: > > > > 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\frontend\modules\login\templates\CVSuccess.php on > > > line*55* > > > > * > > > > * > > > > *there is the code of fuction executecv:* > > > > * > > > > class loginActions extends sfActions > > > > { > > > > public function executeCv(sfWebRequest $request) > > > > { > > > > > > $this->utilisateur = > > > > > > Doctrine::getTable('utilisateur')->find(array($request->getParameter('matri > > > cule'))); > > > > $this->forward404Unless($this->utilisateur); > > > > > > } > > > > > > and there is the code of cvsSuccess: > > > > > > Votre non > > > $utilisateur->getprenom(); ?> > > > > > > i need help please > > > > * > > > > > -- > > > 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
Re: [symfony-users] Re: Fatal error: Call to a member function getprenom() on a non-object
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: Call to a member function getprenom() on a non-object please give some solutions 2011/3/31 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:19 pm, mohamed sabri ben sassi > wrote: > > 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\frontend\modules\login\templates\CVSuccess.php on > line*55* > > * > > * > > *there is the code of fuction executecv:* > > * > > class loginActions extends sfActions > > { > > public function executeCv(sfWebRequest $request) > > { > > > > $this->utilisateur = > > > Doctrine::getTable('utilisateur')->find(array($request->getParameter('matri > cule'))); > > $this->forward404Unless($this->utilisateur); > > > > } > > > > and there is the code of cvsSuccess: > > > > Votre non > $utilisateur->getprenom(); ?> > > > > i need help please > > * > > -- > 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] Fatal error: Call to a member function getprenom() on a non-object
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\frontend\modules\login\templates\CVSuccess.php on line*55* * * *there is the code of fuction executecv:* * class loginActions extends sfActions { public function executeCv(sfWebRequest $request) { $this->utilisateur = Doctrine::getTable('utilisateur')->find(array($request->getParameter('matricule'))); $this->forward404Unless($this->utilisateur); } and there is the code of cvsSuccess: Votre nongetprenom(); ?> i need help please * -- 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] Fatal error: Call to a member function getprenom() on a non-object
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\modules\login\templates\CVSuccess.php on line*55* * * voila le code du function executecv() class loginActions extends sfActions { public function executeCv(sfWebRequest $request) { $this->utilisateur = Doctrine::getTable('utilisateur')->find(array($request->getParameter('matricule'))); $this->forward404Unless($this->utilisateur); } et voila le code du template cvSuccess Votre nongetprenom(); ?> alors svp aidez moi -- 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: erreur Call to a member function getprenom() on a non-object
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 getprenom() on a non-object in > C:\development\sfprojects\gestion des > competences\apps\frontend\modules\login\templates\CVSuccess.php on line * > 55* > * > * > voila le code du function executecv() > > class loginActions extends sfActions > { > public function executeCv(sfWebRequest $request) > { > > $this->utilisateur = > Doctrine::getTable('utilisateur')->find(array($request->getParameter('matricule'))); > $this->forward404Unless($this->utilisateur); > > > } > > et voila le code du template cvSuccess > > Votre non $utilisateur->getprenom(); ?> > > alors svp aidez moi > -- 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] erreur Call to a member function getprenom() on a non-object
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\modules\login\templates\CVSuccess.php on line *55* * * voila le code du function executecv() class loginActions extends sfActions { public function executeCv(sfWebRequest $request) { $this->utilisateur = Doctrine::getTable('utilisateur')->find(array($request->getParameter('matricule'))); $this->forward404Unless($this->utilisateur); } et voila le code du template cvSuccess Votre nongetprenom(); ?> alors svp aidez moi -- 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: probleme with function __tostring() undefined function
no the problem is not with user wright now ,,the problem that he is not making my form 2011/3/28 Sebastian Göttschkes > Hi there, > > > On Monday, March 28, 2011 4:25:26 PM UTC+2, mohamed sabri ben sassi wrote: > >> i'am making now a new form ,,i create a new class named loginform in >> the directory lib/form > > > Are you extending any class. I'm not quite sure which form has to be > extended! > Oh, and please have a loog at > http://www.symfony-project.org/jobeet/1_4/Doctrine/en/13 > as this is refering to the symfony way of dealing with user > authentification. > > Regards, > Sebastian > -- 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
Re: [symfony-users] probleme with function __tostring() undefined function
please i need help please help me iam really stack 2011/3/28 mohamed sabri ben sassi > hi guys ,, i nedd help with this probleme > i'am making now a new form ,,i create a new class named loginform in > the directory lib/form ,,i create a loginSuccess and i create a new > methode in file action named executelogin ,,,so here is the > problem,,, > when i open my page an error occured > > Fatal error: Call to undefined method LoginForm::__toString() in C: > \development\sfprojects\gestion des competences\lib\vendor\symfony\lib > \view\escaper\sfOutputEscaperObjectDecorator.class.php on line 98 > > so please give me a solution > > -- > 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] probleme with function __tostring() undefined function
hi guys ,, i nedd help with this probleme i'am making now a new form ,,i create a new class named loginform in the directory lib/form ,,i create a loginSuccess and i create a new methode in file action named executelogin ,,,so here is the problem,,, when i open my page an error occured Fatal error: Call to undefined method LoginForm::__toString() in C: \development\sfprojects\gestion des competences\lib\vendor\symfony\lib \view\escaper\sfOutputEscaperObjectDecorator.class.php on line 98 so please give me a solution -- 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
Re: [symfony-users] PDO Connection Error
i increase this variable to 128M but its same thing it rapport me the same message error PDO connection[2006] server mysql has gone away 2011/3/8 Francesco Levorato > On Tue, Mar 8, 2011 at 9:36 AM, mohamed sabri ben sassi < > mohamedsabri.bensa...@gmail.com> wrote: > >> how can i do this i didint understand you perfectly >> > > max_allowed_packet is a MySQL server configuration. If your server has a > low value for that configuration, it might fail when called with a large > query. > > You should search how to modify that value in the configuration of MySQL > server in Windows. Do some research, if you struggle with something, please > report what you tried and what's your setup. > > Cheers, > Francesco > > -- > francesco levorato aka flevour > http://flevour.net/ - @flevour > "Now while the blood is hot you should make your way with vigour to better > things." (Seneca) > > -- > 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
Re: [symfony-users] PDO Connection Error
hi fracessco,, when i write the command php symfony doctrine:build-sqland the file databse.yml ('mysql:host:localhost:9090;dbname=jobeet' root) it work and he generate the file sql but if i write the command php symfony doctrine:build-sqland the file databse.yml ('mysql:host=localhost:9090;dbname=jobeet' root) it didnt work its very weared really please help me 2011/3/8 mohamed sabri ben sassi > how can i do this i didint understand you perfectly > > 2011/3/7 Francesco Levorato > > Hi Mohamed, >> is it your first application using this MySQL server? >> You may try increasing a mysql server configuration variable >> called max_allowed_packet. >> Let us know how it goes! >> Cheers, >> Francesco >> >> On Mon, Mar 7, 2011 at 4:12 PM, mohamed sabri ben sassi < >> mohamedsabri.bensa...@gmail.com> wrote: >> >>> so can you help me please i am really stuked >>> >>> 2011/3/7 mohamed sabri ben sassi >>> >>> yes he's running normaly >>>> >>>> 2011/3/7 Jérémie >>>> >>>> >>>>> > While exporting model class 'JobeetAffiliate' to SQL: PDO Connection >>>>> > Error: SQ >>>>> > LSTATE[HY000] [2006] MySQL server has gone away >>>>> >>>>> Is the MySQL server still runnning? >>>>> >>>>> -- >>>>> 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 >>> >> >> >> >> -- >> francesco levorato aka flevour >> http://flevour.net/ - @flevour >> "Now while the blood is hot you should make your way with vigour to better >> things." (Seneca) >> >> -- >> 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
Re: [symfony-users] PDO Connection Error
how can i do this i didint understand you perfectly 2011/3/7 Francesco Levorato > Hi Mohamed, > is it your first application using this MySQL server? > You may try increasing a mysql server configuration variable > called max_allowed_packet. > Let us know how it goes! > Cheers, > Francesco > > On Mon, Mar 7, 2011 at 4:12 PM, mohamed sabri ben sassi < > mohamedsabri.bensa...@gmail.com> wrote: > >> so can you help me please i am really stuked >> >> 2011/3/7 mohamed sabri ben sassi >> >> yes he's running normaly >>> >>> 2011/3/7 Jérémie >>> >>> >>>> > While exporting model class 'JobeetAffiliate' to SQL: PDO Connection >>>> > Error: SQ >>>> > LSTATE[HY000] [2006] MySQL server has gone away >>>> >>>> Is the MySQL server still runnning? >>>> >>>> -- >>>> 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 >> > > > > -- > francesco levorato aka flevour > http://flevour.net/ - @flevour > "Now while the blood is hot you should make your way with vigour to better > things." (Seneca) > > -- > 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
Re: [symfony-users] PDO Connection Error
so can you help me please i am really stuked 2011/3/7 mohamed sabri ben sassi > yes he's running normaly > > 2011/3/7 Jérémie > > >> > While exporting model class 'JobeetAffiliate' to SQL: PDO Connection >> > Error: SQ >> > LSTATE[HY000] [2006] MySQL server has gone away >> >> Is the MySQL server still runnning? >> >> -- >> 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
Re: [symfony-users] PDO Connection Error
yes he's running normaly 2011/3/7 Jérémie > > > While exporting model class 'JobeetAffiliate' to SQL: PDO Connection > > Error: SQ > > LSTATE[HY000] [2006] MySQL server has gone away > > Is the MySQL server still runnning? > > -- > 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] PDO Connection Error
hi guys when i write the commandsymfony doctrine:build-sql on ms-dos i get this message :: t.php:1119 PHP 15. Doctrine_Export_Mysql->createTableSql() C:\development \sfprojects\jobee t\lib\vendor\symfony\lib\plugins\sfDoctrinePlugin\lib\vendor\doctrine \Doctrine\E xport.php:1251 PHP 16. Doctrine_Export->getFieldDeclarationList() C:\development \sfprojects\jo beet\lib\vendor\symfony\lib\plugins\sfDoctrinePlugin\lib\vendor \doctrine\Doctrin e\Export\Mysql.php:121 PHP 17. Doctrine_Export_Mysql->getDeclaration() C:\development \sfprojects\jobee t\lib\vendor\symfony\lib\plugins\sfDoctrinePlugin\lib\vendor\doctrine \Doctrine\E xport.php:673 PHP 18. Doctrine_Export_Mysql->getDefaultFieldDeclaration() C: \development\sfpr ojects\jobeet\lib\vendor\symfony\lib\plugins\sfDoctrinePlugin\lib \vendor\doctrin e\Doctrine\Export\Mysql.php:249 PHP 19. Doctrine_Connection->quote() C:\development\sfprojects\jobeet \lib\vendo r\symfony\lib\plugins\sfDoctrinePlugin\lib\vendor\doctrine\Doctrine \Export\Mysql .php:632 PHP 20. Doctrine_Formatter->quote() C:\development\sfprojects\jobeet \lib\vendor \symfony\lib\plugins\sfDoctrinePlugin\lib\vendor\doctrine\Doctrine \Connection.ph p:785 PHP 21. Doctrine_Connection_Mysql->connect() C:\development\sfprojects \jobeet\l ib\vendor\symfony\lib\plugins\sfDoctrinePlugin\lib\vendor\doctrine \Doctrine\Form atter.php:191 PHP 22. Doctrine_Connection->connect() C:\development\sfprojects \jobeet\lib\ven dor\symfony\lib\plugins\sfDoctrinePlugin\lib\vendor\doctrine\Doctrine \Connection \Mysql.php:101 PHP 23. PDO->__construct() C:\development\sfprojects\jobeet\lib\vendor \symfony\ lib\plugins\sfDoctrinePlugin\lib\vendor\doctrine\Doctrine \Connection.php:467 Warning: PDO::__construct(): Error while reading greeting packet. PID=5032 in C: \development\sfprojects\jobeet\lib\vendor\symfony\lib\plugins \sfDoctrinePlugin\l ib\vendor\doctrine\Doctrine\Connection.php on line 467 Call Stack: 0.0004 324168 1. {main}() C:\development\sfprojects\jobeet \symfony:0 0.0071 567488 2. include('C:\development\sfprojects\jobeet \lib\vendor\ symfony\lib\command\cli.php') C:\development\sfprojects\jobeet\symfony: 14 0.41755142512 3. sfSymfonyCommandApplication->run() C: \development\sfp rojects\jobeet\lib\vendor\symfony\lib\command\cli.php:20 0.42995308448 4. sfTask->runFromCLI() C:\development \sfprojects\jobeet \lib\vendor\symfony\lib\command\sfSymfonyCommandApplication.class.php: 76 0.43005308552 5. sfBaseTask->doRun() C:\development \sfprojects\jobeet\ lib\vendor\symfony\lib\task\sfTask.class.php:77 0.53536181304 6. sfDoctrineBuildSqlTask->execute() C: \development\sfpr ojects\jobeet\lib\vendor\symfony\lib\task\sfBaseTask.class.php:63 0.56366935680 7. sfDoctrineBaseTask->callDoctrineCli() C: \development\ sfprojects\jobeet\lib\vendor\symfony\lib\plugins\sfDoctrinePlugin\lib \task\sfDoc trineBuildSqlTask.class.php:59 0.59537501416 8. Doctrine_Cli->run() C:\development \sfprojects\jobeet\ lib\vendor\symfony\lib\plugins\sfDoctrinePlugin\lib\task \sfDoctrineBaseTask.clas s.php:112 0.59537501416 9. Doctrine_Cli->_run() C:\development \sfprojects\jobeet \lib\vendor\symfony\lib\plugins\sfDoctrinePlugin\lib\vendor\doctrine \Doctrine\Cl i.php:91 0.59807765280 10. Doctrine_Task_GenerateSql->execute() C: \development\s fprojects\jobeet\lib\vendor\symfony\lib\plugins\sfDoctrinePlugin\lib \vendor\doct rine\Doctrine\Cli.php:152 0.59827765288 11. Doctrine::generateSqlFromModels() C: \development\sfpr ojects\jobeet\lib\vendor\symfony\lib\plugins\sfDoctrinePlugin\lib \vendor\doctrin e\Doctrine\Task\GenerateSql.php:50 0.60448263272 12. Doctrine_Export->exportSql() C:\development \sfproject s\jobeet\lib\vendor\symfony\lib\plugins\sfDoctrinePlugin\lib\vendor \doctrine\Doc trine.php:782 0.6299 10027728 13. Doctrine_Export->exportSortedClassesSql() C: \developm ent\sfprojects\jobeet\lib\vendor\symfony\lib\plugins\sfDoctrinePlugin \lib\vendor \doctrine\Doctrine\Export.php:1352 0.6300 10029416 14. Doctrine_Export->exportClassesSql() C: \development\sf projects\jobeet\lib\vendor\symfony\lib\plugins\sfDoctrinePlugin\lib \vendor\doctr ine\Doctrine\Export.php:1119 0.6495 10598176 15. Doctrine_Export_Mysql->createTableSql() C: \developmen t\sfprojects\jobeet\lib\vendor\symfony\lib\plugins\sfDoctrinePlugin\lib \vendor\d octrine\Doctrine\Export.php:1251 0.6495 10598176 16. Doctrine_Export->getFieldDeclarationList() C:\develop ment\sfprojects\jobeet\lib\vendor\symfony\lib\plugins\sfDoctrinePlugin \lib\vendo r\doctrine\Doctrine\Export\Mysql.php:121 0.6526 10765632 17. Doctrine_Export_Mysql->getDeclaration() C: \developmen t\sfprojects\jobeet\lib\vendor\symfony\lib\plugins\sfDoctrinePlugin\lib \vendor\d octrine\Doctrine\Export.php:673 0.6526 10765632 18. Doctrine_Export_Mysql- >getDefaultFieldDeclaration() C :\development\sfprojects\jobeet\lib\vendor\symfony\lib\plugins \sfDoc
[symfony-users] Re: How to change default sfValidatorString max length message?
inside your form's configure method, you need to set the error message for each error on each validator e.g. $this->getValidator('name')->setMessage('max_length', 'Your text was too long, please keep it short'); On Jan 18, 5:47 pm, Basil Hussain wrote: > I have a couple of forms with many sfValidatorString validators on > them. The default 'max_length' error message ('"%value%" is too long > (%max_length% characters max).') is really not suitable to the way my > forms are laid out in the HTML, because repeating the too-long value > within the message throws everything out of alignment. > > So, I want to set a shorter message (e.g. 'Too long, %max_length% > characters max'), but I don't want to have to add the same message > array repeatedly for every single sfValidatorString instance on these > forms - each has 20 of them! > > Is there a way to set a default 'max_length' message once for every > sfValidatorString on a 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] sfWidgetFormDateRange with a Propel Form
Hi, I currently have the following problem: I got a form that has 2 Date fields in it. What I want to do is that the user has to specify a date range in the form. I now need a validation method that checks if the from field's date is < than the to field's date, so that the user cannot specify an invalid range. I looked through the api documentation and found the validator sfWidgetFormDateRange which does what I want. But how to use it with propel? I have to add the sfWidgetFormDateRange as a new widget in my form and therefore the widgetSchema['from'] and widgetSchema['to'] would be empty. Do I have to manually overwrite them later with he values from the dateRange widget? And if I have to do so: how to do it? Thanks in advance for your help! -- 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
Re: [symfony-users] deployment - rsync problem
hi, yes you have to install rsync in your cygwin environment and have to make sure that rsync is installed on the server as well! Greetings Ben Am 11.11.2010 17:54, schrieb hribo: > Hello, > i am finishing my first project in symfony and i want to deploy it > from localhost to production server. i also didn't use any deployment > strategies before. > > i am running on windows. to run symfony commands i use cyqwin linux > emulator. > on my production server i have enabled cli shell and ssh connection. > so probably that's all basic stuff i should have to be able to run > following task from localhost properly: > > symfony project:deploy production --go > > but i am getting this error. > > 'rsync' is not recognized as an internal or external command, > > Is it necessary to install some kind of rsync server on windows to > make this command run properly? > I was searching for some information. there i have found some advices > to install openssh, cwRsync server to run rsync. > but i didn't find anything about this for symfony. > that's i would like to ask you firstly, if these installations are > needed in order to get symfony deploy task working. if yes, is there > any good tutorial to set up windows to run rsync with symfony? > > or if you know some better way to deploy project, i would be thankful > for your advices. what i have read i saw e.g.:capifony,... > > thanks > -- 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
Re: [symfony-users] dynamic security with credentials
Hi, thank you for the advice. I will look into the source code of sfGuard and see how it works. Maybe I will have to implement my own authentication plugin for symfony, because I have to migrate an already existing application with a user-database to symfony. Greetings, Ben On Mon, 25 Oct 2010 12:58:04 +0200, Stéphane wrote: > If I understand right, what you want is already implemented. > > To secure a module/action with a credential, you have to: > 1/define the needed credential within security.yml > 2/create the credential in the DB > 3/link your users or groups with the credential. > > There is a module to manage credentials, users and groups, look in the > sfDoctrineGuardPlugin. > > Regards, > > Before Printing, Think about Your Environmental Responsibility! > Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! -- 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] dynamic security with credentials
Hi dear symfony community, my question is how do I do this: I want to seure my wep-app with different user-roles. But a admin user should be able to configure what group can access which modules in my symfony app. I can configure credentials in the security.yml, but that would be a static solution. How can I use these per-module-restrictions with credentials dynamically? So that a module always checks from the DB what credential is required for the module that is currently called? Many thanks four your replies 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: Why does sfPartialView need a new response class when caching is enabled?
Tracked it down to: http://trac.symfony-project.org/changeset/7725 Commit msg is: "fixed caching of partial and components (now with css, js, and slots support) (closes #2685) " So its something to do with making CSS/JS/slots work with caching . On Sep 16, 6:00 pm, Ben Lumley wrote: > Totally academic question here > > Encountered this bug/issue: > > http://trac.symfony-project.org/ticket/4185 > > The proposed solution works. > > But I don't understand why sfPartialView needs to set up a new > response class when caching is enabled, which is the cause of the bug. > Sure there's a really good reason - just not sure what it is its > annoying me now, someone put me out of my misery! Please? > > Ben > > PS: First post here - hello! -- 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] Why does sfPartialView need a new response class when caching is enabled?
Totally academic question here Encountered this bug/issue: http://trac.symfony-project.org/ticket/4185 The proposed solution works. But I don't understand why sfPartialView needs to set up a new response class when caching is enabled, which is the cause of the bug. Sure there's a really good reason - just not sure what it is its annoying me now, someone put me out of my misery! Please? Ben PS: First post here - hello! -- 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
Re: [symfony-users] URL with accents
Hi, using accents is a very bad idea! You should generate slugs without special characters like in the Jobeet Tutorial: http://www.symfony-project.org/jobeet/1_4/Propel/en/05#chapter_05_object_route_class most likely your urls will break becuase of the rewriting that has to be done with the .htaccess I think. AFAIK apache cannot handle these characters... Greetings Ben Am 20.07.2010 12:14, schrieb HiDDeN: > I have this URL that works well (camion means truck in spanish): > > http://www.example.com/s/all-site/camion > > But if I add an accent to the word, it will not work (it doesn't find > the route, so it gives a 404 error): > > http://www.example.com/s/all-site/camión > > It's strange, because if I add index.php, it works perfectly!! > > http://www.example.com/index.php/s/all-site/camión > > Could this be related to .htaccess? > -- 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
Re: [symfony-users] Re: How to pass PHP values to addJavascript() (or something else) ?
Am 25.06.2010 18:14, schrieb Tom Ptacnik: > Ajax was in my mind too, but I don't like to create a request for the > recieving a translation text... If I need 5 info messages, there will > be 5 requests. It looks bad to me... slowing down the app > unnecessarily. > Hi, I wouldn't say that. You could use the routing framework, create a dedicated module for that task with a parameter. So you have everything you need in one module and the javascript calls it with different parameters for your texts or other stuff. So, you have at least 1 more request, thats for sure. But nothing could stop you from requesting multiple things with just 1 reqeuest. Or other Idea, if you want to display info messages, I would do it that way: * Write all info messages in the User Class Session (in an array or sth) * Let the javascript call a module * The module deliver all available messages and clear the message array in the User Class -- 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
Re: [symfony-users] Re: How to pass PHP values to addJavascript() (or something else) ?
On Thu, 24 Jun 2010 23:27:38 -0700 (PDT), Tom Ptacnik wrote: > And what do you suggest if I need for example some texts... some info > messages .. assume that I'm using I18n. Is there another way than read > it from the DOM .. some hidden generated div, or span.. or whatever. > Hi, maybe you could load them via an ajax call? Would be an elegant solution I think. You could write a litle web service especially for your javascript's needs or so.. would be grat for i18n too because the language is set in php and your webservice always delivers the correct language then. -- 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
Re: [symfony-users] methods wiped out by svn export - using externals
On Thu, 17 Jun 2010 03:03:28 -0700 (PDT), Tofuwarrior wrote: > Hi Everyone, > > I installed sfGuardPlugin using svn externals and have since added a > few methods to sfGuardUser.php. > Every time I export the svn repo to deploy, those additional methods > disappear. Hi, I think the problem is that you do an svn export. Export always checks out all files and writes them to your specified location. If u want to keep your local changes you should do a svn co (checkout). So it won't overwrite your local changes but installes some .svn folders to keep track of your changes. Greetings Ben -- 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
Re: [symfony-users] how to deal with pagination?
Am 02.06.2010 08:22, schrieb mel_06: > hi guys! > > i'm just new to symfony. i can already list data from my database but > now needs to be paginated. > > hope you can help me! thanks!!! > Did you read the "Practical Symfony" Howto? It seems not, because theres Pagination in an example: http://www.symfony-project.org/jobeet/1_4/Doctrine/en/07 -- 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
Re: [symfony-users] Re: Jobeet Tutorial - Day 3 - databases.yml problem
Hi, yeah maybe that was the problem that sth wrong was stuck in the cache. I'm new to Symfony too but what I've learned so far is if sth goes wrong, clear the cache first, if it goes wrong again, then you have a problem ;) Most of the time you got to clear the cache when you have new classes for example. But good that it works now :) Greetings Ben On Thu, 27 May 2010 01:12:06 -0400, Tony Peng wrote: > I started the project over from scratch and I am no longer > experiencing this problem. > > The only thing I did differently was that I executed ./symfony cc > before I created the module. Not sure if that was the problem, but > thank you comb and Garry for your help. > -- 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
Re: [symfony-users] How to got the last id from a table, usinf criteria
Hi there, I'm very new to symfony too but your idea is genereally very bad. So, what happens if you make a new propel object, fill it with data and do something like $myPropelObject->save(); It will get saved into the database. So if it is saved the object should get the primaryKey Value stored in itself. So why don't you simply retrieve the value from the object with sth like $lastInsertedId = $myPropelObject->getPrimaryKey(); after you just used the save() function? This should work? Or am I wrong? Greetings Ben On Fri, 21 May 2010 13:04:54 +0200, Gábor Fási wrote: > If last means the biggest id, something like this in your peer class will > do: > > public static function getLastId() > { > $c = new Criteria(); > $c->addDescendingOrderByColumn(self::ID); > $item = self::doSelectOne($c); > return $item->getId(); > } > -- 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 task with progress bar
Hi list, I've been working on a task to import a load of data from one site to another (>1M records in some cases), I was getting pretty frustrated that I couldn't track the progress very well, so I wrote an extension to sfBaseTask, which I then use as the base class for any task needing a progress bar. It works for me, so I thought I'd share it. Here's the class: http://pastebin.com/HLEZqYY9 Steps to integrate: 1. Create your new task the usual way (symfony generate:task [--dir="..."] [--use-database="..."] [--brief-description="..."] task_name) 2. Edit the new task definition, set it to extend mySfTask rather than sfBaseTask 3. Use the progress bar as follows: // Here's the loop I'd like to track the progress of: for($i = 0; $i < 1000; $i++) { $this->progressBar($i,1000); } What the progress bar outputs: - activity indicator (a single character that cycles through /, -, \ and | on each iteration) - percentage progress - a wget-style progress bar e.g.: - 50% [> ] This should be compatible with sf1.2 and above, but I've only tried it with sf1.4 - YMMV. Last thing - anyone know how I can auto-set the width of the progress bar from the width of the terminal? Thanks, Ben -- 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] Fabien's Symfony 2 presentation now available as a video
Sorry for the delay in getting this up. HD (720p) uploads to Vimeo.com kept failing. So here is a lower resolution version. Enjoy and of course thanks to all Symfony devs and sflive2010 organisers! http://www.vimeo.com/9636197 -- 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: sflive2010 Symfony Core Dev Q&A session
Absolutely... as I get to upload them. Unfortunately power is scarce a the conference and handbrake doesn't run that fast on my Mac ;) I'll have uploaded them all by the end of the week. On 17 Feb, 14:56, Dennis Benkert wrote: > This is great, thanks very much for sharing this! > > Will you provide more of them in the days? > > - Dennis > > 2010/2/17 Ben Haines : > > > After Stefan Koopmanschap's talk about community on Saturday at > > sflive2010 I feel compelled to give something back ;) > > > So here is the Symfony Core Dev Team in HD ;) Enjoy! > > >http://www.vimeo.com/user1491208/videos > > > Ben > > > -- > > 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] sflive2010 Symfony Core Dev Q&A session
After Stefan Koopmanschap's talk about community on Saturday at sflive2010 I feel compelled to give something back ;) So here is the Symfony Core Dev Team in HD ;) Enjoy! http://www.vimeo.com/user1491208/videos Ben -- 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] gmail problem
How can I block mail symfony group because I always suppime the mail received? -- 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] intégration de jqueryGrid
bonjour - Masquer le texte des messages précédents - Je cherche comment intègre le maquette de jqgrid juste j'ai besoin de table de ce tu peux consulter le demo http://www.trirand.com/jqgrid/jqgrid.html ensuite clique sur Live Data Manipulation >>Navigator bon j'ai bien faire la maquette mais d'autre cote je sais pas comment je peux passe mais donnes de table produit par exp qui est générer par le crud de symfony a ce table donc comment en peux remplace les colNames:['Inv No','Date', 'Client','Amount','Tax','Total','Closed','Ship via','Notes'], colModel:[ . ], par des fonction javascript pour faire l'appel au donnes et de lui éditer et supprimer? juste une idée comment faire sa ? et merci pour votre compréhension très cordialement. -- 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. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=.
[symfony-users] symfony debug toolbar where is the database??
Hi, In 1.1.2 in the symfony debug toolbar, we had the database calls (we could see all the queries in there). In 1.1.7, I do not see it anymore. Not even the number of queries. How do I reset it like it was? Thanks -Hassen Ben Tanfous --~--~-~--~~~---~--~~ 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] bug with sfPropelPager
Hi, There is a regression in the behavior of the haveToPaginate() function I am using 1.1.7 and I just noticed a bug. Bug: *The pager links do not appear when one selects the last page and the number of results are inferior to the pagination limit.* The haveToPaginate function returns false when it used to return true. This causes the pagination links to disappear at the end. Please let me know if this is the desired behavior and if not I will try to post a patch a.s.a.p Thanks Sincerely, -Hassen Ben Tanfous PS: I am using the sfPropelPager to initiate the pager Here is some code: - $this->pager = new sfPropelPager('UserFavorite', sfConfig :: get('app_favorites.listfavorites.pagination.limit')); $this->pager->setCriteria($c); $this->pager->setPage($this->getRequestParameter('page', 1)); $this->pager->init(); --- *haveToPaginate()): ?>* "0", 'align' => 'absmiddle', 'alt' => __('First'), 'title' => __('First'))), array ( 'update' => $update_id, 'url' => $link . '?page=1&' . $params )) ?> "0", 'align' => 'absmiddle', 'alt' => __('Previous'), 'title' => __('Previous'))), array ( 'update' => $update_id, 'url' => $link . '?page='.$pager->getPreviousPage() . '&' . $params )) ?> getLinks() as $page): ?> getPage()): ?> $update_id, 'url' => $link . '?page='.$page . '&' . $params )) ?> "0", 'align' => 'absmiddle', 'alt' => __('Next'), 'title' => __('Next'))), array ( 'update' => $update_id, 'url' => $link . '?page='.$pager->getNextPage() . '&' . $params )) ?> "0", 'align' => 'absmiddle', 'alt' => __('Last'), 'title' => __('Last'))), array ( 'update' => $update_id, 'url' => $link .'?page='.$pager->getLastPage(). '&' . $params )) ?> --~--~-~--~~~---~--~~ 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] CSRF tokens and attacks
Hi, I started looking at the new code in symfony 1.2 and I have a question. If I understand the way CSRF token works, it is generated as a hidden field in a form and if I use the link_to helpers, it is appended as a parameter in my links. Am I right? Now, what prevents a hacker from writing a javascript to retrieve a page from a logged in user on my site, retrieve the CSRF token and make another javascript request using the token on my forms?? Thanks in advance for any replies Cheers -Hassen Ben Tanfous --~--~-~--~~~---~--~~ 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: propel-build-schema fails - No database selected?
@Tomasz Ignatiuk Thank you so much! This solved the problem. The docs say that I should put all my db config stuff relating to propel:build-schema in propel.ini, but maybe they are out of date now. Thanks very much! Cheers, Ben On Feb 12, 7:10 pm, Tomasz Ignatiuk wrote: > Try write in config/database.yml > > all: > propel: > class: sfPropelDatabase > param: > classname: PropelPDO > dsn: 'mysql:host=localhost;dbname=mydbname' > username: root > password: youpasswordornull > encoding: utf8 > persistent: true > pooling: true > > And remember to have at the top of you schema.yml this: > > propel: > _attributes: > package: lib.model > defaultIdMethod: native --~--~-~--~~~---~--~~ 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: propel-build-schema fails - No database selected?
No luck :( On Feb 12, 3:32 pm, Sid Bachtiar wrote: > Try without single quotes for the dsn in databases.yml > > > > On Thu, Feb 12, 2009 at 6:08 PM, Ben Novakovic wrote: > > > Hi everyone, I'm new to symfony and am currently still testing to see > > whether it suits my needs. But I don't seem to be getting very far > > with that I am doing. > > > I'm using the sandbox install on linux, I have the vhost working and > > can browse the new demo project that comes with the sandbox install, > > but not I would like to try and build an admin panel to an existing > > database schema I have. > > > I'm trying to run: propel-build-schema like this: > > > -- > > 04:58:22|b...@dev:/srv/www/sym/sf_sandbox$ ./symfony propel-build- > > schema > >>> propel Running "reverse" phing task > > [propel-schema-reverse] There was an error building XML from metadata: > > SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected > > > Some problems occurred when executing the task: > > Read the logs to fix them > > > 04:58:26|b...@dev:/srv/www/sym/sf_sandbox$ > > -- > > > I'm trying to work out what the problem is, I can only assume its > > referring to the fact that it can't find the database I'm wanting to > > use. I have the database.yml and propel.ini files setup as per the > > documentation > > > database.yml: > > -- > > all: > > propel: > > class: sfPropelDatabase > > param: > > phptype: mysql > > dsn: 'mysql://user:x...@localhost/dbname' > > > propel.ini > > -- > > propel.database.createUrl = mysql://user:x...@localhost > > propel.database.url = mysql://user:x...@localhost/dbname > > propel.database.user = user > > propel.database.password = xxx > > > Am I missing some other config file that needs to be changed too? I > > noticed it says I need to rebuild all my models if i change > > propel.ini, but I don't have any yet.. I'm trying to create them! > > > Any help would be greatly appreciated! > > > Cheers, > > Ben > > -- > Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz --~--~-~--~~~---~--~~ 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] propel-build-schema fails - No database selected?
Hi everyone, I'm new to symfony and am currently still testing to see whether it suits my needs. But I don't seem to be getting very far with that I am doing. I'm using the sandbox install on linux, I have the vhost working and can browse the new demo project that comes with the sandbox install, but not I would like to try and build an admin panel to an existing database schema I have. I'm trying to run: propel-build-schema like this: -- 04:58:22|b...@dev:/srv/www/sym/sf_sandbox$ ./symfony propel-build- schema >> propelRunning "reverse" phing task [propel-schema-reverse] There was an error building XML from metadata: SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected Some problems occurred when executing the task: Read the logs to fix them 04:58:26|b...@dev:/srv/www/sym/sf_sandbox$ -- I'm trying to work out what the problem is, I can only assume its referring to the fact that it can't find the database I'm wanting to use. I have the database.yml and propel.ini files setup as per the documentation database.yml: -- all: propel: class: sfPropelDatabase param: phptype: mysql dsn: 'mysql://user:x...@localhost/dbname' propel.ini -- propel.database.createUrl = mysql://user:x...@localhost propel.database.url = mysql://user:x...@localhost/dbname propel.database.user = user propel.database.password = xxx Am I missing some other config file that needs to be changed too? I noticed it says I need to rebuild all my models if i change propel.ini, but I don't have any yet.. I'm trying to create them! Any help would be greatly appreciated! Cheers, Ben --~--~-~--~~~---~--~~ 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: Admin generator - how to force a field type in 'list' view?
Thanks Jill, not quite what I was after but thanks anyway. Basically, in the 'list' view I've created a new partial column "has_attribute_x" which (obviously) corresponds to getHasAttributeX() in my actions. That method does nothing more than: public function getHasAttributeX() { return $this->getAttributeX() ? true : false; } ...so what I'd like to achieve on the List view is a simple indication of whether or not a record has attribute x, in the same way that the list view presents boolean fields. At the moment the list view just shows '1' or null for that partial column. Sorry, hopefully that's a bit more clear. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Admin generator - how to force a field type in 'list' view?
Hi, I have a partial field that displays a boolean in list-view using a generated admin module. At the moment, it displays as '1' when true, but I'd like it to show the 'tick'. What's the proper way to achieve this? I could, of course, have the method return the HTML string to the image, but that's far from ideal. Thanks, Ben --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: app.yml in a plugin
Hello, I would like to know how can I define an app.yml file in a plugin and make the content over writable by the current application. At the moment, I'm using the config.php, to set a bunch of constants sfConfig::set(xxx)... but how can I do it using an app.yml in the plugin Thanks in advance -Hassen --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---