Re: [symfony-users] Images source problem
Try wrapping your image url in a `public_path()` call. On Wed, Feb 3, 2010 at 17:05, wueb wrote: > Hi, i'm getting a problem on the images source. > > > Here: http://localhost/frontend_dev.php/settings - My image works > fine. > > Here: http://localhost/frontend_dev.php/settings/edit - My image > doesn't work fine. > > > > The problem is that he looks to the action like a folter and the > source should be > > instead of > > > The source from the image is coming from: > > > The getAvatar() method have the folowing code: > public function getAvatar(){ > > return sfConfig::get('app_upload_avatars').$get_users->getFirst()- >>getAvatar(); > ... > } > > Any help please? > > -- > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@googlegroups.com. > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] How to know if a user is logged in
$sf_user->isAuthenticated() On Fri, Feb 5, 2010 at 23:34, ReynierPM wrote: > Hi: > I need to know if a user is logged in or not from my layout.php file, is > this possible? How? > -- > Cheers > ReynierPM > > -- > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@googlegroups.com. > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Edit/Show - protect against non permission access
At the beginning of your action do a forward404Unless(current user is the owner). On Mon, Feb 8, 2010 at 17:29, wueb wrote: > Hello buddies, need help! > > On my Edit/Show actions i use the route to get the object to Edit/ > Show. > > Edit: > $this->form = new LeadsForm($this->getRoute()->getObject()); > > Show: > $this->leads = $this->getRoute()->getObject(); > > > All normal here and works fine, but i need something more secure. > > For example: > I'm the owner from the fields on the table with ID=1 and ID=2; Someone > that is no owner from that fields try to "hack" my values, for that he > goes to URL and type: http://localhost/frontend_dev.php/leads/1 > > He will be able to Edit/Show my values. How can i prevent this thing > happen? > > -- > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@googlegroups.com. > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Re: Edit/Show - protect against non permission access
No, it gets called while in the routing process - after the request uri has been matched to a route, a database call is made to retrieve the matching object. Use $this->getUser() in your action, $sf_user in your template. On Tue, Feb 9, 2010 at 13:07, wueb wrote: > Thank you very much Gábor and Tony. > > Only 2 things Tony. > > First - that findOwned method is called when? When i make $this->leads > = $this->getRoute()->getObject(); ? > > Second - i always read make sfContext::getInstance()->getUser()- >>getGuardUser()->getId()); is not very recommended because the context > can change(?). You know other way to do it? > > Cheers. > > -- > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@googlegroups.com. > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] sfDoctrineGuardExtraPlugin & Symfony 1.4.2
Did you enable the plugin? On Wed, Feb 10, 2010 at 19:18, Don_Busi wrote: > Hi everybody, > > I'm trying to create a new application with Symfony 1.4.2, Doctrine > and sfGuard. > > Somehow I cannot properly install the sfDoctrineGuardExtraPlugin. I > checked out the latest version from the 1.3 branch (as there is no 1.4 > branch) into my "plugins" folder. > > For some reason, the plugin and it's modules is not accessible in the > application. > > What am I doing wrong? Is it because my symfony-core is 1.4.2 and the > plugin is only for 1.3? > > Any help is appreciated. > > Thanx in advance, > Don > > -- > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@googlegroups.com. > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Re: sfDoctrineGuardExtraPlugin & Symfony 1.4.2
You need to enable the plugin in your ProjectConfiguration. http://www.symfony-project.org/tutorial/1_2/en/whats-new#chapter_3fb3b0c857177a2b6740a5dcbc0fb8c7_configuration On Wed, Feb 10, 2010 at 22:14, Don_Busi wrote: > Hi, > > I added the following to the settings.yml of my Application. > > -- > all: > .settings: > enabled_modules: [default, sfGuardAuth, > sfGuardForgotPassword, sfGuardRegister] > -- > > Other than that I didn't enable anything. The two modules > (sfGuardForgotPassword & sfGuardRegister) are not available in the > apps at runtime. > > Do I need to do anything else to enable the plugin? > > Cheers, > Don > > > On Feb 10, 7:25 pm, Gábor Fási wrote: >> Did you enable the plugin? >> >> On Wed, Feb 10, 2010 at 19:18, Don_Busi wrote: >> > Hi everybody, >> >> > I'm trying to create a new application with Symfony 1.4.2, Doctrine >> > and sfGuard. >> >> > Somehow I cannot properly install the sfDoctrineGuardExtraPlugin. I >> > checked out the latest version from the 1.3 branch (as there is no 1.4 >> > branch) into my "plugins" folder. >> >> > For some reason, the plugin and it's modules is not accessible in the >> > application. >> >> > What am I doing wrong? Is it because my symfony-core is 1.4.2 and the >> > plugin is only for 1.3? >> >> > Any help is appreciated. >> >> > Thanx in advance, >> > Don >> >> > -- >> > 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. > > -- 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.
Re: [symfony-users] JavaScript and Css Fails to Load from the View.yml
You need to call include_stylesheets() and include_javascripts() in your layout. On Sat, Feb 13, 2010 at 21:50, t00cool wrote: > Guys, > I am trying to set up a new project. I want to include some css files > and javascript files via the global view.yml. I have placed the > javascript files under web/js/ and placed the css under web/css/. I > would expect that the auto loader would pick up these files. I have > tried to include the files in the layout.php file with the lines > > > > > > > However I still do not see the javascript or css appear. Any help > would be greatly appricated as I am totally stumped? > > This is my view.yml > > # You can find more information about this file on the symfony > website: > # http://www.symfony-project.org/reference/1_4/en/13-View > > default: > http_metas: > content-type: text/html > > metas: > #title: symfony project > #description: symfony project > #keywords: symfony, project > #language: en > #robots: index, follow > > stylesheets: [main.css] > > javascripts: [jquery.js] > > has_layout: on > layout: layout > > -- > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@googlegroups.com. > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] symfony project:disable backend does not work
Did you clear your cache after enabling check_lock? On Mon, Feb 15, 2010 at 20:10, Darren884 wrote: > When I run this and go to look at my backend it still displays, even > though I have check_lock: true under my settings. Is this an error? Do > I have to manually create an unavailable page? > > -- > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@googlegroups.com. > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Re: Javascript files included no matter what
That's not really true. First of all, sfCommonFilter has been deprecated in 1.3 and removed in 1.4 [1], and with the include functions you can specify where to put the include statements (like javascripts are recommended to be included right before the tag). [1] http://www.symfony-project.org/tutorial/1_4/en/upgrade#chapter_161aacbf11b8cc24bbdc6951ba0fb57d_sub_removal_of_the_common_filter On Tue, Feb 16, 2010 at 15:38, Salim wrote: > yes I cleaned the cache. > > I just figured out that it was sfCommonFilter that includes CSS and JS > even if you don't want them. > So include_stylesheets and include_javascripts are no more needed in > layouts. > > On 16 fév, 14:40, Eno wrote: >> On Tue, 16 Feb 2010, Salim wrote: >> > I have a project where i commented all include_javascripts statements >> > but they are included anyway. >> > Is it a known issue, or am i missing something? >> >> You commented them out where exactly? >> >> Did you clear cache too? >> >> -- > > -- > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@googlegroups.com. > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] White screen only in production enviroment
Edit your frontend's settings.yml, specifically prod's error_reporting so you can see the error. Do not forget to uncomment the line when you're done. On Wed, Feb 17, 2010 at 14:37, Trailfinder wrote: > Hi all, > > My dev enviroment works great. But when I deploy to my production > enviroment, I get a white screen only. Strange thing is, my backend is > working. My frontend only gives white screens. > > I can imagine there can be multiple places to look. But is there a way > to test effectively where the problem is? > > Thanks! > > B. > > -- > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@googlegroups.com. > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Re: Id being lost on update..
This looks fine. Can we see your form's configure() method? On Thu, Feb 18, 2010 at 16:08, Samuel Morhaim wrote: > Here goes the extra info. :) > > 1. I am just doing a simple edit. (based almost on the generated CRUD > actions) > 2. Yes, it is unique, (schema below). > 3. I am NOT trying to update/modify the ID since it is unique, etc. > THAT IS the problem.. for some reason it trying to set the ID to > empty. OR should not be updating the ID at all, but it is doing it > > > > > Actions: > > public function executeEdit(sfWebRequest $request) > { > $this->forward404Unless($campaign = > Doctrine::getTable('Campaign')->find(array($request->getParameter('id'))), > sprintf('Object campaign does not exist (%s).', > $request->getParameter('id'))); > $this->form = new CampaignForm($campaign); > } > > public function executeUpdate(sfWebRequest $request) > { > $this->forward404Unless($request->isMethod(sfRequest::POST) || > $request->isMethod(sfRequest::PUT)); > $this->forward404Unless($campaign = > Doctrine::getTable('Campaign')->find(array($request->getParameter('id'))), > sprintf('Object campaign does not exist (%s).', > $request->getParameter('id'))); > $this->form = new CampaignForm($campaign); > > $this->processForm($request, $this->form); > > $this->campaigns = > Doctrine::getTable('Campaign')->getCampaigns($this->getUser()->getGuardUser()->Organization); > $this->setLayout(AJAX_ENABLED); > return $this->renderPartial('campaign/list', array('campaigns' => > $this->campaigns)); > } > > protected function processForm(sfWebRequest $request, sfForm $form) > { > $form->bind($request->getParameter($form->getName()), > $request->getFiles($form->getName())); > if ($form->isValid()) > { > $campaign = $form->save(); > > } > } > > > > == > > > SCHEMA > > Campaign: > columns: > id: > primary: true > unique: true > type: integer > notnull: true > autoincrement: true > organization_id: > type: integer > notnull: true > name: > unique: false > type: string(255) > notnull: true > description: > type: blob(0) > is_active: > default: true > type: boolean > notnull: true > indexes: > IX_Campaign_1: > fields: [id] > IX_Campaign_2: > fields: [is_active] > relations: > Organization: > local: organization_id > foreign: id > > > > === > > > > 2010/2/18 Michał Piotrowski : >> I'm wondering why do you want to update id? I assume that you are >> using id as primary key, so updating it to other value just doesn't >> makes sense. >> >> Maybe someone will help you if you explain what do you want to do. >> Actually we don't have enough information on such things as: >> - what do you want to do >> - what you are doing - iow - show us the code - maybe others are, but >> I'm not a seer :) >> >> Regards, >> Michal >> >> 2010/2/18 Samuel Morhaim : >>> Anyone? >>> >>> On 2/17/10, Samuel Morhaim wrote: If it helps.. this is the error, of course because it lost the id.. SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '0' for key 1 stack trace * at () in SF_SYMFONY_LIB_DIR/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection.php line 1082 ... 1079. $message .= sprintf('. Failing Query: "%s"', $query); On Wed, Feb 17, 2010 at 5:20 PM, Samuel Morhaim wrote: > I am getting an error when doing a simple edit/update ... the ID of > the item is being lost. > > This is the DB log... maybe somebody can help ? > > > # > > SELECT c.id AS c__id, c.organization_id AS c__organization_id, c.name > AS c__name, c.description AS c__description, c.is_active AS > c__is_active FROM campaign c WHERE (c.id = '2') LIMIT 1 > 0.00s, "doctrine" connection Toggle debug stack > #23 » in sfDoctrineConnectionProfiler->preStmtExecute() from > SF_SYMFONY_LIB_DIR/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/EventListener/Chain.php > line 494 > #22 » in Doctrine_EventListener_Chain->preStmtExecute() from > SF_SYMFONY_LIB_DIR/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection/Statement.php > line 231 > #21 » in Doctrine_Connection_Statement->execute() from > SF_SYMFONY_LIB_DIR/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection.php > line 1006 > #20 » in Doctrine_Connection->execute() from > SF_SYMFONY_LIB_DIR/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Query/Abstract.php > line 976 > #19 » in Doctrine_Query_Abstract->_execute() from > SF_SYMFONY_LIB_DIR/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Query/Abstract.php > line 1026 > #18 » in Doctrine_Query_Abstract->execute() from > SF_SYMFONY_LIB_DIR/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Qu
Re: [symfony-users] Tutorials / Differences in 1.x and 2.0
The 1.4 version will have 3 years of support, so it is definitely still worth learning. 2.0 is just a preview version right now, I believe a lot will change in the time till its release. No manual, no tutorial, no instructions - it's not worth writing them yet. However, you can read a quick tour on http://symfony-reloaded.org/ On Fri, Feb 19, 2010 at 16:30, maxarbos wrote: > Hello, > > I am looking at starting to use (S)symfony again and now that 2.0 is > scheduled to be released this year, is it still worth trying to learn > the 1.x version? > Since this will a new way of working with designers, would it be > advisable to use 2.0 only (on smaller projects) to get familiar with > it? > > Are there tutorials or instructions on how to use 2.0? > > Thanks. > > -- > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@googlegroups.com. > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. > > -- 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.
Re: [symfony-users] Fabien's Symfony 2 presentation now available as a video
Works for me Thanks Ben! On Mon, Feb 22, 2010 at 09:00, Romain Pouclet wrote: > The video is private, is it normal? :x > > Le 22 févr. 2010 à 08:54, Ben Haines a écrit : > >> 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. >> > > -- > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@googlegroups.com. > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] what I am I missing?: form save does an insert when I want an update
Put your id (or something else unique) in the url, so you can use that to retrieve the object. On Wed, Feb 24, 2010 at 01:04, Roland Cruse wrote: > Thanks. That did it! > > Now I have: > > $parameters = $request->getParameter('td_excursion'); > $this->excursion = > Doctrine::getTable('TdExcursion')->findOneById($parameters['id']); > $this->form = new TdExcursionForm($this->excursion); > > Though I am thinking there is a better way to get the hard coded array > name which $form->getName() can do...but hasn't been instantiated > yet... > > Thanks for your help. > > On Tue, Feb 23, 2010 at 2:52 PM, Christian Hammers wrote: >> Hi >> >> This could mean that the form is always initialized with an empty >> $this->excursion. Sure that find() does not return an array? >> I always use ->findOneById($request->getParameter('id')); to be sure. >> >> bye, >> >> -christian- >> >> Am Tue, 23 Feb 2010 14:06:02 -0800 >> schrieb Roland Cruse : >> >>> Hi >>> >>> I must be missing something. I am using symfony 1.3 and trying to >>> update a record in an action but what happens is an "insert >>> into".which generates an integrity error. >>> >>> Here is my code. >>> >>> $this->excursion = >>> Doctrine::getTable('TdExcursion')->find($request->getParameter('id')); >>> >>> $this->form = new TdExcursionForm($this->excursion); >>> >>> $this->form->bind($request->getParameter($this->form->getName())); >>> >>> if($this->form->isValid()) >>> { >>> $excursion = $this->form->save(); >>> } >>> >>> If someone could point me in the right direction that would be >>> excellent! >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "symfony users" group. >> To post to this group, send email to symfony-us...@googlegroups.com. >> To unsubscribe from this group, send email to >> symfony-users+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/symfony-users?hl=en. >> >> > > -- > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@googlegroups.com. > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. > > -- 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.
Re: [symfony-users] Blank page after uploading my project to a hosting provider
That thread is about another kind of log. You need your site's error log. On Wed, Feb 24, 2010 at 21:19, Javier Garcia wrote: > On 02/24/2010 09:14 PM, Eno wrote: >> >> Did you clear cache? >> >> I would also question why your provider can't have logs... >> > > Ok, just remove the content of the cache folder...Thanks. > > This is what i got about the log: > > http://byet.net/showthread.php?15957-Is-there-any-log-file-to-check-the-uploading-process&daysprune=-1 > > Javi > > -- > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@googlegroups.com. > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Re: How to get form object in preSave()
Overwrite the setPassword() function of your object class, something like this: function setPassword($v) { return parent::setPassword(md5($v)); } On Wed, Feb 24, 2010 at 18:05, Dong YANG wrote: > Hi JP, > > Thanks for your reply. > > I use propel 1.5 and I have a form which contains the field password. > Before do save (create), I would like call md5() to encode it. So I tried to > use preSave() to do this thing. But in this method, I cant get the value > entered by user. > > Here is the method preSave() > >public function preSave(PropelPDO $con = null) > > { > // Inside, I can't get form value > } > > I think that maybe I should overwrite executeCreate() or processForm() > in order to update the user value before do save. > > > Maybe there is a better and correct way to do so. > > I hope that my example is clear and any suggest is welcome. > > Regards, > > > JoJo > > > > > > > 2010/2/24 jp_morvan >> >> >> On 24 fév, 14:52, Dong YANG wrote: >> > Hello everyone, >> > >> > I would like to know if is that possible to get form object in >> > preSave() method? >> > >> > In fact, before save the form value (fill in by user), I want to >> > treate the input value in preSave() method. But I don't know how to and >> > I >> > don't know whether I can do so. >> > >> > Please suggest. >> > >> > Regards, >> > >> > JoJo >> >> Hi, >> Can you write an example please ? I don't really see the needs to do >> it on preSave() method. >> >> JP >> >> -- >> You received this message because you are subscribed to the Google Groups >> "symfony users" group. >> To post to this group, send email to symfony-us...@googlegroups.com. >> To unsubscribe from this group, send email to >> symfony-users+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/symfony-users?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@googlegroups.com. > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. > -- 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.
Re: [symfony-users] Re: How to get form object in preSave()
That would be pretty bad, as it would re-hash the password field at every save. On Wed, Feb 24, 2010 at 21:36, Alexandru-Emil Lupu wrote: > You can do it like that : > > public function save(PropelPDO $con = null) > { > $this->password = md5($this->password); > parent::save(); > } > -- 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.
Re: [symfony-users] Why are useful commands like "doctrine:build-all-reload" removed in symfony 1.4?
php symfony doctrine:build --all --and-load On Wed, Feb 24, 2010 at 16:50, SymfonyNewbie wrote: > Here is all the commands: > > Available tasks for the "doctrine" namespace: > :build > :build-db > :build-filters > :build-forms > :build-model > :build-schema > :build-sql > :clean-model-files > :create-model-tables > :data-dump > :data-load > :delete-model-files > :dql > :drop-db > :generate-admin > :generate-migration > :generate-migrations-db > :generate-migrations-diff > :generate-migrations-models > :generate-module > :generate-module-for-route > :insert-sql > :migrate > > It's very inconvenient if I want to re-do something. > > -- > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@googlegroups.com. > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] How to use framset with symfony?
There is no reason why it should not work - it should. Double-check that you echoed the correct urls in your layout. On Thu, Feb 25, 2010 at 12:02, SameerB wrote: > Hi All, > I am creating an application containing 5 pages and I want to > show some links at the left side for navigation. I tried adding > framset in layout.php but it gives "Action does not exits" error > message. Can anyone tell me or give me some example how to use > frameset in symfony. Or if it is not supported/possible, what can use > to display links at the left side which is common to all pages and > hence should be included in layout. > > Thanks in advance, > SameerB > > -- > 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] sfAction Different In 1.4?
This is the header of sfComponent's execute(): abstract function execute($request); So drop the sfWebRequest, and it'll be fine. And by the way: it did not change, it is the exact same in 1.2. On Thu, Feb 25, 2010 at 19:07, Darren884 wrote: > I get this error: > Fatal error: Declaration of homeAction::execute() must be compatible > with that of sfComponent::execute() in /var/www/vhosts/blackhawk.biz/ > symfony/apps/frontend/modules/pages/actions/homeAction.class.php on > line 11 > > When I use this code: > > /** > * home action. > * > * @package Black Hawk Tobacco > * @subpackage pages > * @author Darren Labey > * @version SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z > Kris.Wallsmith $ > */ > class homeAction extends sfAction > { > public function execute(sfWebRequest $request) > { > } > } > > My action is named homeAction.class.php > > Am I forgetting something in 1.4? Or has this changed or somethign? > Does anyone know? > > Thanks, > Darren > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] frontend_dev.php dissapears
Check the referer, you probably have an incorrect url echoed there. On Fri, Feb 26, 2010 at 09:34, Parijat Kalia wrote: > Hey guys, > > while traversing to one of the pages on my website, the frontend_dev.php > seems to disappear. It does exist when I traverse other pages, but the > moment I traverse to this specific page, it disappears, and from thereon, if > I traverse to any other page, it will not come back. > > Off course, while I do this, I am on local host and not anything else. > > Anyone with any leads on this? > > Parijat > > -- > 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] addcredential creates new session_id
It is a security measure to prevent session fixation (and probably other) attacks. On Sat, Feb 27, 2010 at 13:29, Daniel Lohse wrote: > It's correct that the session id gets regenerated. If you have a look at the > sfBasicSecurityUser class you'll see that it calls > $this->storage->regenerate(false). It doesn't destroy the session (the false > parameter indicates this) and the sfSessionStorage class calls PHP's own > session_regenerate_id method > (http://www.php.net/manual/en/function.session-regenerate-id.php). It keeps > the current session data but as to why this function is needed is also a > mystery to me... Anyone? > > Regards, Daniel > > On 27.02.2010, at 13:15, Pino wrote: > >> Hi, >> >> I noticed that after calling addcredential() in Symfony 1.2.11 my >> session_id gets regenerated. Is this normal behaviour and why is this? >> >> -- >> If you want to report a vulnerability issue on symfony, please send it to >> security at symfony-project.com >> >> You received this message because you are subscribed to the Google >> Groups "symfony users" group. >> To post to this group, send email to symfony-users@googlegroups.com >> To unsubscribe from this group, send email to >> symfony-users+unsubscr...@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/symfony-users?hl=en > > -- > 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] sym 1.2.9 Pagination using Propel........
http://www.symfony-project.org/jobeet/1_2/Propel/en/07#chapter_07_list_pagination On Mon, Mar 1, 2010 at 08:47, karansoni wrote: > Hii everyvone.,, > > I am quite new to symfony and using 1.2.9 as the project development. > An important feature of Pagination i do not know how to do it. I have > listened about sfPager plugin but do not know how to install and > integrate it or is there any other method to do that > > Please help me wth this > > > sincerely, > karan soni > > -- > 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] Jobeet Tutorial: jobs.yml data fixture example won't doctrine:data-load.
Try with this one: http://svn.jobeet.org/doctrine/trunk/data/fixtures/jobs.yml On Mon, Mar 1, 2010 at 14:44, Trung Huynh wrote: > I'm aware that indentation should be spaces etc. Its the data fixture > with php combined: jobs.yml > > I exactly copy paste the example and i still get this error. > >>> doctrine Loading data fixtures from >>> "/Use...g/Websites/jobeet/data/fixtures" > Unable to parse string: Unable to parse line 1 ( job_100:). > > > http://www.symfony-project.org/jobeet/1_4/Doctrine/en/06: > # Starts at the beginning of the line (no whitespace before) > > job_: > JobeetCategory: programming > company: Company > position: Web Developer > location: Paris, France > description: Lorem ipsum dolor sit amet, consectetur adipisicing > elit. > how_to_apply: | > Send your resume to lorem.ipsum [at] company_>.sit > is_public: true > is_activated: true > token: job_ > email: ...@example.com > > > > Please help because I really like to play with symfony (all day). > > -- > 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] sf_flash gone in 1.4?
$sf_user->hasFlash() On Mon, Mar 1, 2010 at 19:14, Darren884 wrote: > In my template I put the following: > has('status')): ?> > get('status') ?> > > > Now I get: > > Notice: Undefined variable: sf_flash in /var/www/vhosts/blackhawk.biz/ > symfony/apps/frontend/modules/customers/templates/loginSuccess.php on > line 2 > > Fatal error: Call to a member function has() on a non-object in /var/ > www/vhosts/blackhawk.biz/symfony/apps/frontend/modules/customers/ > templates/loginSuccess.php on line 2 > > Why the hell would they deprecate this? > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- 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] Validations
They got replaced by the form framework. I believe you can still use them with the sfCompat10Plugin, but you'd better use the form fw. On Wed, Mar 3, 2010 at 23:00, Parijat Kalia wrote: > Hey guys, > > whatever happened to the good old validateXXX() methods and the > validate.yaml files symfony had. I have a validateXXX() for a couple of my > actions but they don't run. Not only that, when I run modules, the only > thing that get's generated when a generate:module function is called is > actions and templates folder. Am I missing something here? > > Parijat > > -- > 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] Adding a validator to a Doctrine Form
$this->validatorSchema['email'] = new sfValidatorAnd(array( $this->validatorSchema['email'], new sfValidatorEmail(), )); On Thu, Mar 4, 2010 at 17:56, HiDDeN wrote: > I defined validators to my Doctrine model, so it generated automatic > validators (such as maxlength, required, etc). > > Now I would like to add a validator directly in my form, but without > losing the ones defined by Doctrine, is this possible? How could I > achieve it? > > > 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 > -- 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] Task "init-project" is not defined
The task init-project has been renamed to generate:project, try it that way. On Tue, Mar 9, 2010 at 08:56, SteTod wrote: > Hi > I use two PCs one for my job with Windows XP another for my train- > journeys with W7. > Always in local i use XAMPP 1.7.2 - PHP 5.3.0 - Apache 2.2.12. > Usually i use XAMPP for my web application with PHP/MySql. > About the installation, i already changed before the PATH constants > system. > I downloaded symfony libraries (symfony-1.4.3.zip) from "www.symfony- > project.org/installation" > I created the directory "sf_lingue" so my local web path is > C:\xampp\htdocs\sf_lingue with this subdirectories: > --- data > --- lib > --- licenses > --- test > The statment >php -v tell me this: > == > C:\Documents and Settings\stodaro>php -v > PHP 5.3.0 (cli) (built: Jul 2 2009 21:08:11) > Copyright (c) 1997-2009 The PHP Group > Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies > == > The command line >symfony -V: > == > C:\xampp\htdocs\sf_lingue\data\bin>symfony -V > symfony version 1.4.3 (C:\xampp\htdocs\sf_lingue\lib) > == > I can't see so any congratulations page from symfony system, because > when i try to create a new project with this command line from my > shell: >>symfony init-project sf_lingue > the symfony diplay me this message: > == > C:\xampp\htdocs\sf_lingue\data\bin>symfony init-project sf_lingue > > Task "init-project" is not defined. > == > I don't undestand why because before i follow all the procedure > about sf_sandbox (also with other manual) and i created projects, > application and model and obviously i saw the congratulations page > Could you help me to understand where i wrong something and how can i > resolve my headache?!?!? > Ciao > > -- > 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] Error 500 when i try to login the web app in production
"client denied by server configuration" check your sever config On Tue, Mar 9, 2010 at 13:01, Javier Garcia wrote: > Hi, > > in production when i try to login to a user session of my web app, i get an > error 500. > > This is what i'm founding in the php error log: > > [Tue Mar 09 05:47:02 2010] [error] [client 174.37.227.194] client denied by > server configuration: /home/mainhost/public_html/whm-server-status > [Tue Mar 09 05:47:02 2010] [error] [client 174.37.227.194] File does not > exist: /home/mainhost/public_html/403.shtml > > Is related to Symfony? Any idea? > > Javi > > -- > 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: Error 500 when i try to login the web app in production
You have to add that in your apache config (httpd.conf or similar). Also, try commenting the very first line (Options...) and try it that way (obviously removing the part you just added). On Tue, Mar 9, 2010 at 20:19, Javier Garcia wrote: > Hi again, > > On 03/09/2010 02:34 PM, Billy Paradise wrote: > > client denied by server configuration is usually an apache error - I > would check there first. > > Make sure you have something like: > > > Options Indexes FollowSymLinks > AllowOverride All > Order allow,deny > Allow from all > > > in there. > > > Where should i write that? I tried to add it to "public_html/web/.htaccess" > but i get an error (see below). This is the final file: > > Options +FollowSymLinks +ExecCGI > > > Options Indexes FollowSymLinks > AllowOverride All > Order allow,deny > Allow from all > > > > RewriteEngine On > > # uncomment the following line, if you are having trouble > # getting no_script_name to work > #RewriteBase / > > # we skip all files with .something > #RewriteCond %{REQUEST_URI} \..+$ > #RewriteCond %{REQUEST_URI} !\.html$ > #RewriteRule .* - [L] > > # we check if the .html version is here (caching) > RewriteRule ^$ index.html [QSA] > RewriteRule ^([^.]+)$ $1.html [QSA] > RewriteCond %{REQUEST_FILENAME} !-f > > # no, so we redirect to our front web controller > RewriteRule ^(.*)$ index.php [QSA,L] > > > > Internal Server Error > > The server encountered an internal error or misconfiguration and was unable > to complete your request. > > Please contact the server administrator, webmas...@tirengarfio.com and > inform them of the time the error occurred, and anything you might have done > that may have caused the error. > > More information about this error may be available in the server error log. > > Additionally, a 404 Not Found error was encountered while trying to use an > ErrorDocument to handle the request. > > Javi > > -- > 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: Error 500 when i try to login the web app in production
Then try what I said, and comment the Options.. line in your .htaccess. I've seen that line cause troubles. On Wed, Mar 10, 2010 at 13:34, Javier Garcia wrote: > On 03/10/2010 10:07 AM, Eno wrote: >> >> You need to ask whoever is hosting the application to add the config >> directives to your vhost configuration >> > > Do you mean modify httpd.conf? I can not modify httpd.conf, not even if i > ask to modify it. > > On 03/10/2010 10:07 AM, Eno wrote: >> >> You need to ask whoever is hosting the application to add the config >> directives to your vhost configuration (or switch on .htaccess for your >> vhost). >> > > From my hosting provider told me i have enable .htaccess (mod_rewrite). > > Javi > > -- > 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] yml validators in Symfony 1.4
The form framework. On Tue, Mar 9, 2010 at 14:01, SlimShaggy wrote: > Hi folks, > > I'm trying to upgrade a project from 1.2 to 1.4 > I've read that the validate/action.yml files are no longer supported. > What is the alternative, then ? > > 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 > -- 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] propel:build-schema not working[jobeet]
Did you generate your project with `--orm=Propel` ? Check your ProjectConfiguration class, is the propel plugin enabled? On Thu, Mar 11, 2010 at 13:26, Tahar Yazid Touaibia wrote: > Hello, > I am new to symfony, i just installed it and am trying to follow the > jobeet tutorial. When i run the following command i got an error : > php symfony propel:build-schema > > The message displayed : > > "there are no tasks defined in the "Propel" namespace. > > I running symfony on wamp and here is the result of my > check_configuration.php file : > > ** Mandatory requirements ** > > OK PHP version is at least 5.2.4 (5.2.5) > > ** Optional checks ** > > OK PDO is installed > OK PDO has some drivers installed: mysql, sqlite2 > OK PHP-XML module is installed > OK XSL module is installed > OK The token_get_all() function is available > OK The mb_strlen() function is available > OK The iconv() function is available > OK The utf8_decode() is available > [[WARNING]] The posix_isatty() is available: FAILED > *** Enable the php_posix extension (used to colorized the > CLI output) *** > [[WARNING]] A PHP accelerator is installed: FAILED > *** Install a PHP accelerator like APC (highly recommended) *** > OK php.ini has short_open_tag set to off > OK php.ini has magic_quotes_gpc set to off > OK php.ini has register_globals set to off > OK php.ini has session.auto_start set to off > OK PHP version is not 5.2.9 > > > I would appreciate any help that can let me go further in the tutorial. > Thanks in advance > Yaz > > -- > > -- > 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: about transfert of a symfony project
If your project is self-contained, i.e. every file it needs is in the project folder, you'll simply need to copy it to the other machine, run a configure:database in case those settings changed, do a cc and you're good to go. On Sat, Mar 13, 2010 at 10:00, mbello wrote: > if my project is for example jobeet if i begin it in my desk top and i > would like to continu it in my laptop > is there any particular configuration that i have to do or it it only > instal symfony in my laptop, and > copy jobeet project and paste it in my new symfony installation ? > i want a details please > thanks in advance > mbello > > On 11 mar, 15:15, Raphael Schumacher > wrote: >> Ensure symfony and dev tools being properly installed on your new >> laptop, and copy your project files to the new laptop... >> --> is there anything specific that you would wish to hear as an >> answer? > > -- > 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] propel:build-schema not working[jobeet]
Correction: in 1.2 Propel is the default, it has been changed to Doctrine in 1.3/4 On Fri, Mar 12, 2010 at 07:15, Gareth McCumskey wrote: > Just change sfDoctrinePlugin to sfPropelPlugin :) If you don't specify > --orm=Propel on project creation symfony from 1.2 and up defaults to > Doctrine. > > On Fri, Mar 12, 2010 at 6:10 AM, Tahar Yazid Touaibia > wrote: >> in the tutorial, i did not see any instruction concerning : >> --orm=Propel >> in my configuration file here is what i got : >> > >> require_once >> dirname(__FILE__).'/..\lib\vendor\lib/autoload/sfCoreAutoload.class.php'; >> sfCoreAutoload::register(); >> >> class ProjectConfiguration extends sfProjectConfiguration >> { >> public function setup() >> { >> $this->enablePlugins('sfDoctrinePlugin'); >> } >> } >> >> do i need to create a new project ? >> Thanks for your help >> yaz >> 2010/3/11 Gábor Fási : >>> Did you generate your project with `--orm=Propel` ? >>> Check your ProjectConfiguration class, is the propel plugin enabled? >>> >>> On Thu, Mar 11, 2010 at 13:26, Tahar Yazid Touaibia >>> wrote: >>>> Hello, >>>> I am new to symfony, i just installed it and am trying to follow the >>>> jobeet tutorial. When i run the following command i got an error : >>>> php symfony propel:build-schema >>>> >>>> The message displayed : >>>> >>>> "there are no tasks defined in the "Propel" namespace. >>>> >>>> I running symfony on wamp and here is the result of my >>>> check_configuration.php file : >>>> >>>> ** Mandatory requirements ** >>>> >>>> OK PHP version is at least 5.2.4 (5.2.5) >>>> >>>> ** Optional checks ** >>>> >>>> OK PDO is installed >>>> OK PDO has some drivers installed: mysql, sqlite2 >>>> OK PHP-XML module is installed >>>> OK XSL module is installed >>>> OK The token_get_all() function is available >>>> OK The mb_strlen() function is available >>>> OK The iconv() function is available >>>> OK The utf8_decode() is available >>>> [[WARNING]] The posix_isatty() is available: FAILED >>>> *** Enable the php_posix extension (used to colorized the >>>> CLI output) *** >>>> [[WARNING]] A PHP accelerator is installed: FAILED >>>> *** Install a PHP accelerator like APC (highly recommended) *** >>>> OK php.ini has short_open_tag set to off >>>> OK php.ini has magic_quotes_gpc set to off >>>> OK php.ini has register_globals set to off >>>> OK php.ini has session.auto_start set to off >>>> OK PHP version is not 5.2.9 >>>> >>>> >>>> I would appreciate any help that can let me go further in the tutorial. >>>> Thanks in advance >>>> Yaz >>>> >>>> -- >>>> >>>> -- >>>> 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 >>> >> >> >> >> -- >> Tahar Yazid Touaibia >> Creation de Sites >> http://www.dotshopdesign.com >> >> -- >> If you want to report a vulnerability issue on symfony, please send
Re: [symfony-users] Linking to the upload path from a template.
public_path(), http://www.symfony-project.org/api/1_4/UrlHelper#method_public_path On Fri, Mar 12, 2010 at 16:58, Luis Alberto Zarrabeitia wrote: > Moreover, it produces the image tag, but I can't find the way to > access the url (for instance, if I want to link to it). Any thoughts? -- 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] Error 500 backend application in production
Check your loginform's template to see if it echoes the correct url in the action property, also check if you have no_script_name disabled in the backend's settings.yml On Mon, Mar 22, 2010 at 01:24, Jose San Gil wrote: > Hi everybody, > > I'm working in a project with frontend and backend application. The > index.php of the project points to the frontend app and all the > actions work great in this app over the production server > > However, when I try to use the backend application, the problems > start. If I try to login (sfGuardDoctrine), the following error is > displayed: > > The template "_login.php" does not exist or is unreadable in "". > > So, it looks like a routing problem, because when I press the submit > button of the login form, the url: > > http://mydom.com/backend.php/ > > changes to this one: > > http://mydom.com/login > > Due to that change, symfony is trying to execute the action in the > frontend app, but that action doesn't exist and an error 500 is > displayed. > > If I try to access to the dev server instead of prod, the actions are > executed perfectly. > > i.e: http://mydom.com/backend_dev.php > > This is my routing.yml file: > > ## > /apps/backend/config/routing.yml > > sf_guard_user: > class: sfDoctrineRouteCollection > options: > model: sfGuardUser > module: sfGuardUser > prefix_path: usuarios > segment_names: { new: crear, edit: editar, delete: eliminar } > column: id > with_wildcard_routes: true > > sf_guard_signin: > url: /login > param: { module: sfGuardAuth, action: signin } > > sf_guard_signout: > url: /logout > param: { module: sfGuardAuth, action: signout } > > sf_guard_password: > url: /request_password > param: { module: sfGuardAuth, action: password } > > ajax_getstates: > url: /getStates > param: { module: sfGuardUser, action: getStates } > > ajax_getcities: > url: /getCities > param: {module: sfGuardUser, action: getCities} > > ajax_gettalleres: > url: /getTalleres > param: {module: siniestro, action: getTalleres} > > # default rules > homepage: > url: / > param: { module: poliza, action: index } > > default_index: > url: /:module > param: { action: index } > > default: > url: /:module/:action/* > ### > > I will appreciate if you could help me. > > 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 > > To unsubscribe from this group, send email to > symfony-users+unsubscribegooglegroups.com or reply to this email with the > words "REMOVE ME" as the subject. > -- 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 To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
Re: [symfony-users] Re: how get an object saved in session
Then instead of saving an object, save an array that contains the properties of the object that you will create after the last step. Alternatively, you can try experimenting with the __sleep() and __wakeup() magic functions of your object, but the recommended way is the one above. On Tue, Mar 23, 2010 at 14:11, Belgacem TLILI wrote: > i need to store object in session because i dont like to save them in > database in the first action > i'm doing a inscription form in 4 steps so i have to save the 3 object > of the 3 first steps and when the user confirm his inscription i will > save the 3 object in data base > > i dont like to save an object in database for every step (in the user > cancel his inscription for exemple ) > > On Mar 23, 1:14 pm, Tom Haskins-Vaughan > wrote: >> I don't think storing objects is recommended. I think the prefered >> method is to save the object and store the id in the user session. >> >> On 3/23/10, Belgacem TLILI wrote: >> >> >> >> > i have save an object ($book) in the user session with the name bk >> >> > $this->getUser()->setAttribute('bk',$book); >> >> > i need to save this object in the database after other actions >> > i use >> >> > $book= $this->getUser()->getAttribute('bk'); >> >> > $book->save(); >> >> > but this return all time null >> >> > anybody have an idea plz >> >> > -- >> > 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 >> >> > To unsubscribe from this group, send email to >> > symfony-users+unsubscribegooglegroups.com or reply to this email with the >> > words "REMOVE ME" as the subject. >> >> -- >> Sent from my mobile device > > -- > 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 > > To unsubscribe from this group, send email to > symfony-users+unsubscribegooglegroups.com or reply to this email with the > words "REMOVE ME" as the subject. > -- 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 To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
Re: [symfony-users] Re: Error 500 backend application in production
If you have no_script_name enabled, it means it will not include the current front controller in the generated url, thus making it point to index.php Disable this setting (and enable it in the frontend), clear your cache and you should be fine. On Wed, Mar 24, 2010 at 03:56, Jose San Gil wrote: > Hi Gábor, > > I checked in the settings.yml and the no_script_name is enable. > > Also, I took a look to the login form's template signinSuccess.php and > the action is ok: > > I don't know if this has something to do, but the first application > that I created was the backend. A few time after that, I generated the > frontend. I think that this is not important, but if I change the > index.php to point the backend app, the project works in the > production server for both apps. > > So, what could be the problem? > > I really appreciate your help. > > > > On Mar 22, 3:37 am, Gábor Fási wrote: >> Check your loginform's template to see if it echoes the correct url in >> the action property, also check if you have no_script_name disabled in >> the backend's settings.yml >> >> On Mon, Mar 22, 2010 at 01:24, Jose San Gil wrote: >> >> > Hi everybody, >> >> > I'm working in a project with frontend and backend application. The >> > index.php of the project points to the frontend app and all the >> > actions work great in this app over the production server >> >> > However, when I try to use the backend application, the problems >> > start. If I try to login (sfGuardDoctrine), the followingerroris >> > displayed: >> >> > The template "_login.php" does not exist or is unreadable in "". >> >> > So, it looks like a routing problem, because when I press the submit >> > button of the login form, the url: >> >> >http://mydom.com/backend.php/ >> >> > changes to this one: >> >> >http://mydom.com/login >> >> > Due to that change, symfony is trying to execute the action in the >> > frontend app, but that action doesn't exist and anerror500is >> > displayed. >> >> > If I try to access to the dev server instead of prod, the actions are >> > executed perfectly. >> >> > i.e:http://mydom.com/backend_dev.php >> >> > This is my routing.yml file: >> >> > ## >> > /apps/backend/config/routing.yml >> >> > sf_guard_user: >> > class: sfDoctrineRouteCollection >> > options: >> > model: sfGuardUser >> > module: sfGuardUser >> > prefix_path: usuarios >> > segment_names: { new: crear, edit: editar, delete: eliminar } >> > column: id >> > with_wildcard_routes: true >> >> > sf_guard_signin: >> > url: /login >> > param: { module: sfGuardAuth, action: signin } >> >> > sf_guard_signout: >> > url: /logout >> > param: { module: sfGuardAuth, action: signout } >> >> > sf_guard_password: >> > url: /request_password >> > param: { module: sfGuardAuth, action: password } >> >> > ajax_getstates: >> > url: /getStates >> > param: { module: sfGuardUser, action: getStates } >> >> > ajax_getcities: >> > url: /getCities >> > param: {module: sfGuardUser, action: getCities} >> >> > ajax_gettalleres: >> > url: /getTalleres >> > param: {module: siniestro, action: getTalleres} >> >> > # default rules >> > homepage: >> > url: / >> > param: { module: poliza, action: index } >> >> > default_index: >> > url: /:module >> > param: { action: index } >> >> > default: >> > url: /:module/:action/* >> > ### >> >> > I will appreciate if you could help me. >> >> > 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] Losing data upon creating new tables
Do a {propel,doctrine}:build-sql, then open the generated .sql file in /data/ and run the appropriate queries by hand. On Wed, Mar 24, 2010 at 07:20, Parijat Kalia wrote: > Hey, > > So we all know that when you create new tables with Symfony in the database, > it will delete all the existing data in the database. > > I don't want that to happen. Is symfony trying to tell me that there is no > way around this? That I absolutely must loose all my data so as to be able > to add new data? OMG! > > I am sure we have a solution for this. Please can anyone guide me. I'll > appreciate all responses > > Parijat Kalia > > -- > 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 > > To unsubscribe from this group, send email to > symfony-users+unsubscribegooglegroups.com or reply to this email with the > words "REMOVE ME" as the subject. > -- 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 To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
Re: [symfony-users] return redirect() breaks the code ?
Calling redirect() throws an sfStopException [1] to stop the execution, as it is not needed anymore after you have redirected. http://trac.symfony-project.org/browser/branches/1.4/lib/action/sfAction.class.php#L204 On Tue, Mar 30, 2010 at 17:14, NOOVEO - Christophe Brun wrote: > I want to catch some exceptions in my actions and to display nice and > informative messages for my users. > > class utilisateursActions extends autoUtilisateursActions { > public function executeDelete(sfWebRequest $request) { > try { > // do stuff... > sfContext::getInstance()->getLogger()->err(__METHOD__." ligne > ".__LINE__); // line 50 > return $this->redirect('@avalidroute'); > } > catch(Exception $x) { > sfContext::getInstance()->getLogger()->err(__METHOD__." ligne > ".__LINE__); // line 54 > $this->getUser()->setFlash('error', 'KO'); > } > } > } > > Unfortunately, the flash and the log tells me that the code goes through 50, > redirects to the required route, AND goes on to line 54 + flashes the error. > > I already knew that $action->redirect() has the side effect (very > unfortunate as all side effects are IMHO) to break the standard flow of > code, that's why you must return $action-redirect() instead. > But what if return $obj->redirect() also breaks the flow ? > Or am I missing some elephant hidden in my kitchen ? > > -- > 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 > > To unsubscribe from this group, send email to > symfony-users+unsubscribegooglegroups.com or reply to this email with the > words "REMOVE ME" as the subject. > -- 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 To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
Re: [symfony-users] What about the "Remember me" widget? What it serves for? Is useful?
It is not the browser's remember password feature. If checked, the plugin will set a cookie for a longer period, that kinda acts like a long-term sessionid cookie. It means the user will not need to log in, even after the browser is closed and the session cookie is deleted. On Tue, Mar 30, 2010 at 17:37, Javier Garcia wrote: > Hi, > > the signin form of sfDoctrineGuardPlugin shows the widget "Remember me". > > I suppose it serves for the web browser 'remember' the password, but now i > think it is not very used so i should remove it.. > > Am i right? > > Javi > > -- > 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 > > To unsubscribe from this group, send email to > symfony-users+unsubscribegooglegroups.com or reply to this email with the > words "REMOVE ME" as the subject. > -- 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 To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
Re: [symfony-users] login with email instead of a separate username
http://bluehorn.co.nz/2009/06/12/symfony-12-propel-and-sfguardplugin-email-login/ On Wed, Mar 31, 2010 at 09:13, gopi wrote: > Hi.. > > I was looking for an authentication module (including registration by > mail, forgot password etc) in symfony and installed sfGuardDoctrine > sfForkedDoctrineApply, But these plugins use a separate userid for > login instead of using the email address. > > Is there any plugin or a patch to use emailid for login instead of a > separate login id? > > thx > gopi > > -- > 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 > > To unsubscribe, reply using "remove me" as the subject. > -- 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] a question about lucene in symfony
I created a task that fetches all the data in the table (via pdo instead of propel, so it uses a lot less memory), and add them to the index one by one. Probably not the prettiest one out there, but here's my task: http://github.com/maerlyn/tibiahu/blob/master/lib/task/TibiahuRebuildIndexTask.class.php On Tue, Apr 6, 2010 at 07:57, Lee Joseph wrote: > I learned how to use lucene to create a index when add or modify data > on the website, but I want to know is this possible to build index > from a existing data in table? and how? > > thanks for all 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 > > To unsubscribe, reply using "remove me" as the subject. > -- 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] sorry to bother you all about the production env..
Clear your cache. On Wed, Apr 7, 2010 at 13:52, Lee Joseph wrote: > when create the project there are two php file in the web directory: > frontend_dev.php and index.php > > in index.php I find this ' $configuration = > ProjectConfiguration::getApplicationConfiguration('frontend', 'prod', > false);' > > when i visit .localhost/frontend_dev.php I can use the route.yml > configure to go to a module with index action > > but as I visit .localhost or .localhost/index.php I can > only see the default symfony project homepage. > > how can I change the configure or something else to made the product > environment accessable ? > > -- > 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 > > To unsubscribe, reply using "remove me" as the subject. > -- 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] Disable checkbox without loosing value?
It gets overwritten because browsers do not send disabled inputs' values, just like when a checkbox is not checked. Therefore symfony interprets it as a false. Overwrite the forms doBind() method, to set the fields current value in the input (tainted) array. On Wed, Apr 7, 2010 at 16:13, axel at wrote: > hello, > > to disable a checkbox in a form for certain users I use: > > if (!user->mayXY() { > $this->widgetSchema['active'] = new > sfWidgetFormInputCheckbox(array(), array('disabled' => 'disabled')); > } > to disable editing of the checkbox but still displaying the current > setting. > > the problem is that symfony overwrites the current value with 0 in > case of form submit! > > > (using symfony 1.4.3 > schema.yml > active: { type: boolean, notnull: true, default: 0 } > > (same problem with sfWidgetFormInput but here it works to set readonly > new sfWidgetFormInput(array(), array('readonly' => 'readonly', 'class' > => 'readonly'));) > > > -- > 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 > > To unsubscribe, reply using "remove me" as the subject. > -- 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] Action "xx/xx does not exist.
These functions need to be public, you made it protected. On Fri, Apr 9, 2010 at 17:23, Omar El Mazny wrote: > i followed symfony rules i wanted to creat my own function that > returns the result of a query > like this > protected function executeListlab(sfWebRequest $request){ > > $this->membres = Doctrine::getTable('Member') > ->createQuery('m') > ->where('m.member_type = ?', 'lab') > ->execute(); > } > > when i try to access the action i get an error page like this > > 404 | Not Found | sfError404Exception > Action "membre/listlab" does not exist. > > thank you 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 > > To unsubscribe, reply using "remove me" as the subject. > -- 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] use_javascripts_for_form($form) apparently not working
That's not how it works. Define a getJavascripts() function in your form class that return an array of the neccessary js files. See the links: http://trac.symfony-project.org/browser/branches/1.4/lib/helper/AssetHelper.php#L621 http://trac.symfony-project.org/browser/branches/1.4/lib/form/sfForm.class.php#L727 On Mon, Apr 12, 2010 at 00:52, michael hodges wrote: > Hello all, > > Not sure how something so fundamental to Symfony is not working for > me, but for my backend module I have in my templates directory a > _form.php file and a _form.js file. The php file is functioning in > that my form and subforms etc render properly, but the javascript > functions in the js file appear not to be available. Browser view- > source provides no reference that suggests that the js file is > available either. > > I'm concluding that the use_javascripts_for_form($form) function at > the top of my php files is not finding the js file. No error messages > are generated. After searching the forums and web, I've had no luck > finding suggestions. Any advice would be appreciated. Thanks. > > Directory structure: > /backend/modules/transaction_receipt/templates/ > _form.php > _form.js > > For Symfony 1.4.2, Doctrine 1.2 > > - Michael > > -- > 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 > > To unsubscribe, reply using "remove me" as the subject. > -- 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] Please Help! Stable version of Symphony in 2009
If you mean Symphony, the CMS, check their site: http://symphony-cms.com/ If you mean symfony, the PHP framework, there were three stable major versions: - 1.0 (support ended in January 2010) - 1.1 (support ended in June 2009) - 1.2 (released in December 2008, support ended in November 2009) All three had multiple minor, maintenance releases in that period. You can still access every single version via svn: http://svn.symfony-project.org/tags/ On Mon, Apr 12, 2010 at 00:28, User wrote: > I need to know what ws the most stable version of Symphony Between > January and June of 2009. If there were multiple versions stable > during this time, what date (month) did they become stable? Please > help! If you can tell me where I can find this information in > writing, I would appreciate that too. > > Thank you > > -- > 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 > > To unsubscribe, reply using "remove me" as the subject. > -- 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] Installing a plugin manually. From one project to another
You have to enable it in the project's configuration. On Tue, Apr 13, 2010 at 21:09, Javier Garcia wrote: > Hi, > > i have the folder plugin/sfDoctrineGuardExtraPlugin in a project and it's > working ok. > > I want to copy it to another project so i copied that folder to the folder > 'plugins' of the other project. > > I have typed "plugin:publish-assets" in the second project but it doesnt > show the new plugin. > > Any idea? > > -- > Javi > > Ubuntu 8.04 > > -- > 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 > > To unsubscribe, reply using "remove me" as the subject. > -- 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] symfony 1.4 install
It means the file is not there. Did you check it? On Fri, Apr 16, 2010 at 04:33, Angel wrote: > When I run this command from the sfproject directory: > php lib/vendor/symfony/data/bin/symfony generate:project PROJECT_NAME > > I receive this error: > Could not open input file: lib/vendor/symfony/data/bin/symfony > > I performed this checkout: > svn checkout http://svn.symfony-project.com/branches/1.4/ > > OS fedora 12 (constantine) > php -v > PHP 5.3.2 (cli) (built: Mar 6 2010 08:33:02) > Copyright (c) 1997-2010 The PHP Group > Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies > > I also ran the same command of the install on a web server and > received the same error. > > Any ideas? Please advise. > > Thank you. > > -- > 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] symfony 1.4 install
Change this to `Listen 8080` and try again (ie. remove the IP, only list the port). On Fri, Apr 16, 2010 at 18:29, Angel Robert Marquez wrote: > Listen 127.0.0.1:8080 -- 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] help_sfPhpExcelPlugi
You're supposed to use it via symfony, not standalone. On Mon, Apr 19, 2010 at 13:42, safa boubekri wrote: > hi, > i have installed sfPhpexcel Plugin and set the default properties in > config/phpexcel.yml, i got an error like this when i executed the command > $>php plugins/sfPhpExcelPlugin/examples_1_2/01simple.php > > > after Create new PHPExcel object > > Fatal error: Class 'sfConfig' not found in > /home/sfprojects/jobeet/plugins/sfPhpExcelPlugin/lib/sfPhpEx cel.class.php > on line 9 > > > i don't no were i went wrong... 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 > -- 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] Potential issue with SQL been generated by Propel!!?? or an issue with my schema??
You just copied a long schema and sql file, without any highlight of the problem whatsoever. You'd have better chances of getting an answer if you pointed to the problem, or at least gave us an error message. On Wed, Apr 21, 2010 at 09:14, Slavka wrote: > Ok i came accross this weird issue the other day... i created a > schema.yml file > > ~ > propel: > _attributes: { package: lib.model.ams, > defaultIdMethod: native } > ams_company: > id: ~ > company: { type: varchar(255), > required: true } > created_at: ~ > updated_at: ~ > ams_type: > id: ~ > type: { type: varchar(255), > required: true } > created_at: ~ > updated_at: ~ > ams_transaction_type: > id: ~ > type: { type: varchar(255), > required: true } > created_at: ~ > updated_at: ~ > ams_reporting_close: > id: ~ > close_date: { type: timestamp, > required: true } > ams_company_id: { type: integer, > foreignTable: ams_company, foreignReference: id, required: true } > sf_guard_user_id: { type: integer, > foreignTable: sf_guard_user, foreignReference: id, required: true } > created_at: ~ > updated_at: ~ > ams_transaction_group: > id: ~ > ams_type_id: { type: integer, > foreignTable: ams_type, foreignReference: id, required: true } > ams_company_id: { type: integer, > foreignTable: ams_company, foreignReference: id, required: true } > deal_id: { type: integer, required: > true } > generated_name: { type: varchar(255), > required: true } > default_transaction_date: { type: date, required: > true } > post_date: { type: timestamp, > required: true } > third_party_name: { type: varchar(255), > required: true } > sf_guard_user_id: { type: integer, > foreignTable: sf_guard_user, foreignReference: id, required: true } > created_at: ~ > updated_at: ~ > _uniques: > ams_type_id_ams_transaction_group_id: [ams_type_id, id] > ams_asset: > id: ~ > domain_id: { type: integer, required: > true } > domain_name: { type: varchar(255), > required: true } > ams_company_id: { type: integer, > foreignTable: ams_company, foreignReference: id, required: true } > post_date: { type: timestamp, > required: true } > sf_guard_user_id: { type: integer, > foreignTable: sf_guard_user, foreignReference: id, required: true } > created_at: ~ > updated_at: ~ > ams_transaction: > id: ~ > ams_company_id: { type: integer, > foreignTable: ams_company, foreignReference: id, required: true } > ams_type_id: { type: integer, required: > true } > ams_transaction_group_id: { type: integer, required: > true } > ams_asset_id: { type: integer, > foreignTable: ams_asset, foreignReference: id, required: true } > domain_name: { type: varchar(255), > required: true } > transaction_date: { type: date, required: > true } > price: { type: double, required: > true } > asset_change: { type: double, required: > true } > asset_total: { type: double, required: > true } > post_date: { type: timestamp, > required: true } > sf_guard_user_id: { type: integer, > foreignTable: sf_guard_user, foreignReference: id, required: true } > reversed_by_ams_transaction_id: { type: integer, > foreignTable: ams_transaction, foreignReference: id, required: false } > is_reversal: { type: boolean } > is_current: { type: boolean } > reporting_close_id: { type: boolean } > created_at: ~ > updated_at: ~ > _foreignKeys: > ams_transaction_group_fk: > foreignTable: ams_transaction_group > onDelete: cascade > references: > - { local: ams_type_id, foreign: id } > - { local: ams_transaction_group_id, foreign: id } > > > Then i generated the sql based on that... > ~~~ > > > # This is a fix for InnoDB in MySQL >= 4.1.x > # It "suspends judgement" for fkey relationships until are tables are > set. > SET FOREIGN_KEY_CHECKS = 0; > > #- > #-- ams_company > #
Re: [symfony-users] stupid question about securing backend with sfGuard?
sfGuardAuth is the module that handles the authentication and authorization, you'll need to enable that as well. The other modules are to manage the users, the permissions, etc. On Fri, Apr 23, 2010 at 15:56, Tofuwarrior wrote: > Hi, > > I've followed through the sfGuard installation and have used it fine > for the front end. > > Now I have enabled it in the backend and set > default: > is_secure: true > > in the backend but it displays a page saying this page is not public > and saying I need to login in the login form This isn't displayed, it > just links to the same page (/default/login) > > I've trawled around and it seems that this is a common issue over the > years but for different reasons and none of them are my reason by the > look of it. > > I am expecting sfGuard to do the same as frontend - ie show me a login > form so my first question is, is this how it should work? > > I am presuming it is. So now I am stumped, I have enabled the > following as per the instructions. > > backend/../settings.yml > all: > enabled_modules: [default, sfGuardGroup, sfGuardPermission, > sfGuardUser] > > > I've done ./symfony cc > I've done propel:build-all-load > > Then the instructions talk about the front end application so I didn't > do that stuff because it is referring to sfGuardAuth which the guide > explcitly says is only needed for the frontend. > > This seems a bit wierd - what does the authentication for the backend > then. I feel like I am missing something fundamental about how this > happens, should I redirect backend authentication to the frontend or > something? That just doesn't seem to make sense. > > I'm lost! Anyone help. > I've looked at the extended sfGuardDocs in the wiki as well as stuff > on the forum and web generally. > > Thanks, > > Paul > > > > > -- > 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] Form not processing upon submit
Do you echo a form tag as well? On Sun, Apr 25, 2010 at 22:53, Parijat Kalia wrote: > Hey guys, > > Here is a piece of code in my action that I can't seem to understand what > has gone wrong with > > if($this->getRequest()->isMethod('post')) > { > echo "hello"; > ... > ... > } > > this should print hello in to my page...but that is not happening...I have > the submit_tag('Next Step'); in my template...and I start with echo > use_helper('Form') and end with > > But I can't understand what's going wrong here.any leads anyone? > > Thanks and regards, > > parijat Kalia > > -- > 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] Form not processing upon submit
That alone does not echo a form tag, as you can easily see if you check the generated source. You need to create a tag manually, call the form_tag() helper, or call the renderFormTag() method of an sfForm instance. On Sun, Apr 25, 2010 at 23:41, Parijat Kalia wrote: > yES, I am doing echo use_helper('Form'), is that wrong? > > On Sun, Apr 25, 2010 at 2:04 PM, Gábor Fási wrote: >> >> Do you echo a form tag as well? >> >> On Sun, Apr 25, 2010 at 22:53, Parijat Kalia >> wrote: >> > Hey guys, >> > >> > Here is a piece of code in my action that I can't seem to understand >> > what >> > has gone wrong with >> > >> > if($this->getRequest()->isMethod('post')) >> > { >> > echo "hello"; >> > ... >> > ... >> > } >> > >> > this should print hello in to my page...but that is not happening...I >> > have >> > the submit_tag('Next Step'); in my template...and I start with echo >> > use_helper('Form') and end with >> > >> > But I can't understand what's going wrong here.any leads anyone? >> > >> > Thanks and regards, >> > >> > parijat Kalia >> > >> > -- >> > 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] Strange happenings: Nothing being echoed out!
Keep in mind that you echo it in the action instead of the template, so it will be at the very beginning of your output, not in the usual place. On Mon, Apr 26, 2010 at 02:59, Parijat Kalia wrote: > Hey guys, > > This is slightly strange to me, I am not sure why, I have a bunch of pages > in a module of mine (say admin module, pages step1,step2,step3) etc. > > Now they have their corresponding step1Success.php and step2Success.php and > so on and so forth. > > The pages render themselves fine...but when I try and post, nothing is > happening > > i use $this->getRequest()->isMethod('post')the form tags are placed > fine, as the page does redirect to the intended page. > > On further probing I noticed that I have an echo "hello" statement in my > public function executeStep2{ echo "hello";} This does not execute > itself either. > > So this is very strange, as the page is being rendered, implies that the > name of the template and action are perfectly fine, but it is refusing to > read whatever is inside the action. > > I am sure, this is a silly mistake, but if anyone has an understanding of > it, please help! > > Thanks and regards, > > Parijat Kalia > > -- > 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] Functions other than executeActionXXX()
You can add you own functions to the actions class. Unless their name starts with execute you won't be able to access them from the outside. If their name starts with execute, declare them as private or protected, so they won't be available either. Also think about moving the function to a custom class under the lib/ directory. On Mon, Apr 26, 2010 at 04:10, Parijat Kalia wrote: > Hey guys, > > I am sure we can define different functions in Symfony, other than the > executeActionXXX() types. Suppose I wanna define a function that does a task > in several other functions. How can I go about doing this? > for e.g > > executeActionXXX() > { > $var = functionXX(); > > } > > executeActionYYY() > { $var = functionXX(); } > Thanks and regards, > > parijat kalia > > -- > 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] Execute javascript from action
No, there is not. The action is executed on the server, the javascript is executed on the client's machine. The best you can do is to create a periodical updater in your JS code that checks the action's progress every now and then. On Wed, Apr 28, 2010 at 23:39, Rodrigo Ruiz Fuentes wrote: > Hi, > is there any way to execute javascript from an action?, The idea is to > update the contents of a div while running processes in action. > > Thanks. > > -- > Rodrigo Ruiz Fuentes > > -- > 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] Automated Database Check
Put the code in a component, and include it in your layout. On Thu, Apr 29, 2010 at 02:02, Ozzy wrote: > Hi, > I am developing a social network application using Symfony. I want to > show a alert message to the users when they have new private messages. > > In order to achieve this, I need to check the private messages table > everytime the user navigates in the site. Where should I put this > database check in the Symfony structure? Is there a script that is > executed everytime when the user navigates? > > Thanks 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 > -- 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] Symfony 1.4 and AJAX helpers
They have been removed, you cannot enable them. If you need similar behavior, check the sfJqueryReloadedPlugin. You can check the available helpers here: http://www.symfony-project.org/api/1_4/helper On Wed, May 5, 2010 at 22:54, Alessandro Massignan wrote: > Hi all, > > do you know how could i enable AJAX helpers with Symfony 1.4? > And what are available helpers (e.g. observe_field())? > > > Cheers, > ff > > -- > 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: sf/doctrine performance
Yes, doctrine gives you the PDO connection it uses. On Sat, May 8, 2010 at 05:30, dan wrote: > Will using raw SQL via the Doctrine connection object still utilize > PDO? -- 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] insert sfguard user into a form
`$username=Doctrine_Core::getTable('sfGuardUser')->getUser();` after executing this line, the value of $username is an sfGuardUser object. You try to pass it to a function that expects a string. What you need is this: `$username=Doctrine_Core::getTable('sfGuardUser')->getUser()->getUsername();` On Sat, May 8, 2010 at 21:24, Billy Paradise wrote: > Hi, > > I'm trying to create a form, like a "shoutbox". > > A user is logged in via sfGuard > > They create new post. I'm using the Jobeet example. The commented out > lines are what I thought would work. The "somebody" line works, but if > I try to insert the currently logged in username into the posted_by > column, it bombs out with the error: > > Unknown method sfGuardUserTable::getUser > > lib/model/doctrine/Listing.class.php: > > class Listing extends BaseListing > { > > public function save(Doctrine_Connection $conn = null) > { > // $username=Doctrine_Core::getTable('sfGuardUser')->getUser(); > > if (!$this->getPostedBy()) > { > // $this->setPostedBy($username); > $this->setPostedBy('somebody'); > } > > return parent::save($conn); > } > > > Please show me where I'm going wrong. 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 > -- 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] bug? or i am missing something?
You're missing a comma: `sort: [created_at, desc]` On Thu, May 13, 2010 at 04:00, fRAnKEnSTEin wrote: > Hi there, > > i have a module called "availability" in my backend app, it's > "generator.yml" file has: > > ... > list: > ... > ... > sort: [created_at desc] > ... > > Suddenly when i try to enter into the module i get an error: > > SQLSTATE[42000]: Syntax error or access violation: 1064 You have an > error in your SQL syntax; check the manual that corresponds to your > MySQL server version for the right syntax to use near > > If i delete or comment the "sort: [created_at desc]" part, the module > works fine. For some extrange reason de auto generated SQL tryes to > make an "order by" using "desc" and "asc" clausules both at the same > time in the query...that's why i get the exception...i have searched > for this error and found out some possible fixes, but none of them > works for me...is this a bug? i am using symfony 1.4 is there any > patch or possible fix? > > Regards > > -- > 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] Error Message
It's pretty clear that you have a permission problem. On Wed, May 19, 2010 at 13:27, DEEPAK BHATIA wrote: > Hi, > > I installed a project using symfony 1.4.1 but when I type the URL to access > my application I get the below error. > > == > Warning: > require_once(/root/sfproject/lib/vendor/symfony/lib/autoload/sfCoreAutoload.class.php) > [function.require-once]: failed to open stream: Permission denied in > /opt/lampp/htdocs/pist/config/ProjectConfiguration.class.php on line 3 > > Fatal error: require_once() [function.require]: Failed opening required > '/root/sfproject/lib/vendor/symfony/lib/autoload/sfCoreAutoload.class.php' > (include_path='.:/opt/lampp/lib/php') in > /opt/lampp/htdocs/pist/config/ProjectConfiguration.class.php on line 3 > = > > -- > 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] Error Message
That's probably the problem. Make sure the user your httpd runs as has read access to your project, and write access to the cache and log folders. Run a project:permissions task, that should fix these errors. On Wed, May 19, 2010 at 15:22, DEEPAK BHATIA wrote: > How do I resolve this ? I am root to the linux while creating everything. > > On Wed, May 19, 2010 at 6:05 PM, Gábor Fási wrote: >> >> It's pretty clear that you have a permission problem. >> >> On Wed, May 19, 2010 at 13:27, DEEPAK BHATIA >> wrote: >> > Hi, >> > >> > I installed a project using symfony 1.4.1 but when I type the URL to >> > access >> > my application I get the below error. >> > >> > == >> > Warning: >> > >> > require_once(/root/sfproject/lib/vendor/symfony/lib/autoload/sfCoreAutoload.class.php) >> > [function.require-once]: failed to open stream: Permission denied in >> > /opt/lampp/htdocs/pist/config/ProjectConfiguration.class.php on line 3 >> > >> > Fatal error: require_once() [function.require]: Failed opening required >> > >> > '/root/sfproject/lib/vendor/symfony/lib/autoload/sfCoreAutoload.class.php' >> > (include_path='.:/opt/lampp/lib/php') in >> > /opt/lampp/htdocs/pist/config/ProjectConfiguration.class.php on line 3 >> > = >> > >> > -- >> > 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 to got the last id from a table, usinf criteria
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(); } On Fri, May 21, 2010 at 12:14, kadia dia wrote: > Thank u for your answer, but I use Propel. I have not found an answer yet, > so if u can help me. It will be really good for me. > > 2010/5/20 Abraham Montilla >> >> you mean using Propel? in Doctrine is as simple as using the getLast() >> method after the execute() method. >> >> 2010/5/20 kadia >>> >>> I have a problem for getting the last id from a table, I have to use >>> criteria for that. >>> Thank you >>> >>> -- >>> 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 >> >> >> >> -- >> Have a nice day. >> Abraham Montilla. >> >> -- >> 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 to got the last id from a table, usinf criteria
My solition is more generic. I know that the object has access to it's values (including the primary key), but you do not neccesarily have the object. You can call the function I wrote anywhere, anytime, and get the current greatest ID. On Fri, May 21, 2010 at 14:15, Ben Bieker wrote: > 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 > -- 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] Trying to retrieve a variable saved using sfContext::getInstance()
Calling redirect() means browser redirection, meaning a new context. Save the variable in the session, using $this->getUser()->setAttribute(), or use forward(), that forwards internally. On Mon, May 24, 2010 at 12:36, Javier Garcia wrote: > Hi, > > i have these methods in module1/actions/actions.class.php: > > public function executeMethod1(sfWebRequest $request){ > > $a = 10; > > sfContext::getInstance()->set('a', $a); > return $this->redirect('module1/method2'); > > } > > public function executeMethod2(sfWebRequest $request){ > > echo sfContext::getInstance()->get('a'); > > } > > > When i execute module1/method1 i get this error: > > "The "a" object does not exist in the current context." > > Any idea? > > -- > Javi > > Ubuntu 8.04 - Symfony 1.3 > > -- > 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: How to check if a variable saved in sfContext is set or not?
Yes, you can use it as a registry - but for the current request only. Data stored in the context are not persisted in any way. The user does not need to be signed in for you to be able to use the session. Using the context directly means using sfContext::getInstance(), instead of other was, like $this->getContext() in the action. On Wed, May 26, 2010 at 11:45, Javier Garcia wrote: > There is this below in the 1.4 jobeet manual: > > "You can even use sfContext as a registry and add your own objects using the > set() methods. It takes a name and an object as arguments and the get() > method can be used later on to retrieve an object by name: > > sfContext::getInstance()->set('job', $job); > $job = sfContext::getInstance()->get('job'); > > On 05/25/2010 10:51 AM, pghoratiu wrote: > > Variables > that need to be persisted across multiple requests have to be stored > in the session as explained in the documentation. > > > The user won't be signed in when the action where i throw the "if" I write > in my first post, is executed > > Also using sfContext directly is a bad practice and should be avoided > as much possible. > > > What do you mean with "using sfContext directly"? > > > -- > Javi > > Ubuntu 8.04 - Symfony 1.3 > > -- > 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]  problem
That seems to be the Byte Order Mark at the very beginning of your utf-8 encoded pages. Make sure you save your files without the BOM, as it breaks important functionality, like sessions or any header() call. On Mon, Jun 7, 2010 at 11:45, wueb wrote: > In some of my pages are appearing this  on the top when is loading > the webpage. > > Anyone know what problem is this? > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- 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] A pagination issue
$request->getParameter() offers more, than $_GET - for example, it also has the post values, and allows them to be filtered via the request.filter_parameters event. Even though $_GET works in most cases, $request->getParameter() is the way to go. Check the sfWebRequest class to see what's going on behind the courtain. I believe Eno meant using multiple question marks in a query string by incorrect. A valid one is like this: url?parameter1=value1¶meter2=value2... So it has only one question mark, before the very first parameter, after that the others are separated by an amperstand. Check if you get the username and the page values correctly in pages>=2, if not, your problem is the query string. If you do, then your problem is most probably in the $this->getPager() function, not in the code you showed us. On Thu, Jun 10, 2010 at 06:41, Parijat Kalia wrote: > What's wrong with using $_GET, i have used it elsewhere with little trouble, > also why would the query string format be wrong? Because it is the same > format I follow everywhere else. > Thanks! > > On Wed, Jun 9, 2010 at 9:12 PM, Eno wrote: >> >> On Wed, 9 Jun 2010, Parijat Kalia wrote: >> >> > So in the summary of records page, when I click upon one of the students >> > records, this students name is transferred to the detailed records page >> > in >> > the URL parameter. >> > IN the detailed records page action, here is what I do >> > >> > $username = $_GET['Name']; >> > $this->pager = $this->getPager($username); >> > >> > This pager displays data in the template, clearly with pagination, >> > however, >> > when I move to the next page (page 2 , or 3, or 4), it fails to >> > retrieve >> > the necessary data for the page and displays zero questionsthe >> > pagination code is like: >> > >> > haveToPaginate()) { ?> >> > >> > >> > >> > >> > >> >> Why are you using $_GET instead of $request->getParameter()? >> >> Maybe you need to read about controllers: >> >> http://www.symfony-project.org/gentle-introduction/1_4/en/06-Inside-the-Controller-Layer >> >> You also need to read up on what a query string is and how to format it >> because your code above is incorrect. >> >> http://en.wikipedia.org/wiki/Query_string >> >> >> >> -- >> >> >> -- >> 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: sfPropel15Plugin won't install
It means you have to download the plugin either from svn, or as a .tgz file from the website. The latter one is easier, here's the link: http://plugins.symfony-project.org/get/sfPropel15Plugin/sfPropel15Plugin-1.0.0.tgz Unpack it to your project's plugins directory, then open your config/ProjectConfiguration.class.php in your editor, and look for a line like this: $this->enablePlugins(array('sfPropelPlugin')); change it to: $this->enablePlugins('sfPropel15Plugin'); according to the plugin's readme, you'll also need to change the path of the symfony behaviors in the config/propel.ini file of your project: propel.behavior.symfony.class = plugins.sfPropel15Plugin.lib.behavior.SfPropelBehaviorSymfony propel.behavior.symfony_i18n.class = plugins.sfPropel15Plugin.lib.behavior.SfPropelBehaviorI18n propel.behavior.symfony_i18n_translation.class = plugins.sfPropel15Plugin.lib.behavior.SfPropelBehaviorI18nTranslation propel.behavior.symfony_behaviors.class= plugins.sfPropel15Plugin.lib.behavior.SfPropelBehaviorSymfonyBehaviors propel.behavior.symfony_timestampable.class= plugins.sfPropel15Plugin.lib.behavior.SfPropelBehaviorTimestampable clear your cache, do a `plugin:publish-assets`, rebuild your models and you are done. On Thu, Jun 10, 2010 at 15:42, lecochien wrote: > Hi, > (it's my first question, be indulgent ;-) > Ive got the same problem > What does it means "enable it manualy" I've change my > PrjectConfiguration.class.php to enble the plugin, but now...? what > can i do ?. i'm little bit confused... thanks. > > symfony plugin:install sfPropel15Plugin >>> plugin installing plugin "sfPropel15Plugin" > > > No release available for plugin "sfPropel15Plugin" > > On 21 mai, 20:04, Három D. Márk wrote: >> Unpack the archive in your plugins folder and enable it manually in >> the ProjectConfiguration. >> >> >> >> On Fri, May 21, 2010 at 17:00, ferdjuan wrote: >> > I tried: >> >> > symfony plugin:installsfPropel15Plugin >> >> > and got: >> >> >>> plugin installing plugin "sfPropel15Plugin" >> > No release available for plugin "sfPropel15Plugin" in state >> > "stable" >> >> > So I downloaded the package .tgz and tried to install that and I got: >> >> >>> sfPearFrontendPlugin ...done: 1,525,189 bytes >> >>> sfPearFrontendPlugin Validation Error: No files in section of >> >>> sfPearFrontendPlugin package.xml >> >>> sfPearFrontendPlugin Validation Error: No maintainers found, at least >> >>> one must be >> >>> sfPearFrontendPlugin defined >> >>> sfPearFrontendPlugin Validation Error: No release notes found >> >>> sfPearFrontendPlugin Validation Error: No release date found >> >>> sfPearFrontendPlugin Validation Error: No release state found >> >>> sfPearFrontendPlugin Validation Error: No release version found >> >>> sfPearFrontendPlugin Validation Error: Missing license >> >>> sfPearFrontendPlugin Validation Error: Missing description >> >>> sfPearFrontendPlugin Validation Error: No summary found >> >>> sfPearFrontendPlugin Validation Error: Missing Package Name >> >>> sfPearFrontendPlugin Parsing of package.xml from file >> >>> sfPearFrontendPlugin >> >>> "/storage2/home/admin/domains/dev.immense.net/apollo/cache/.pear/sfPropel15Plugin-0.9.3/lib/vendor/propel-generator/pear/build-pear-package.xml" >> >>> sfPearFrontendPlugin failed >> >>> sfPearFrontendPlugin Download of "symfony-plugins/sfPropel15Plugin" >> >>> succeeded, but >> >>> sfPearFrontendPlugin it is not a valid package archive >> >>> sfPearFrontendPlugin Error: cannot download >> >>> "symfony-plugins/sfPropel15Plugin" >> >> > Plugin "sfPropel15Plugin-0.9.3.tgz" installation failed: Download >> > failed >> >> > I'm running symfony 1.3.1, any ideas? >> >> > -- >> > 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 >> athttp://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
Re: [symfony-users] Re: practical symfony guide 1.4 routing (or apache?) question
The symptoms you described show otherwise. Try to uncomment the tags in your .htaccess, if you get an internal server error, you surely have it disabled. Also, even if it is enabled globally, it may be disabled for your vhost. Check your related config, and look for the AllowOverride directive. I am not sure what you need to enable there, my one usually looks like `AllowOverride all`, obviously only on the dev machine. On Sat, Jun 12, 2010 at 07:47, Marvin Frederickson wrote: > I do have it enabled. If I browse to just http://jobeet.artemisu.local/ > it works, but when I include the other items in the url (such as when > looking up a job, as mentioned in the first email) it does not work. > > Any other ideas? > > On Jun 11, 12:55 am, pghoratiu wrote: >> Check if you have mod_rewrite enabled in your apache setup. >> >> gabriel >> >> On Jun 10, 2:48 am, Marvin Frederickson >> >> wrote: >> > I'm up to day 5 (page 69) in the guide. When I browse to >> > http://jobeet.artemisu.local/ the job list comes up fine. But when I >> > click on the first job in the list, I get an apache page not found >> > error. The url is this: >> >> >http://jobeet.artemisu.local/job/sensio-labs/paris-france/1/web-devel... >> >> > It works fine if I include the index.php or frontend_dev.php filename >> > in the url, but not if I omit it. Why is that? And how can I fix it? >> >> > 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 > -- 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] IP address
http://www.symfony-project.org/api/1_4/sfWebRequest#method_getremoteaddress On Tue, Jun 15, 2010 at 11:50, HAUSa wrote: > How do I lookup the users IP address? > > -- > 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] sfWidgetFormChoice
"choices" => array( "choice1" => "choice1", "choice2" => "choice2", ); On Tue, Jun 15, 2010 at 10:24, Joe wrote: > I am working on a module generated by the admin generator. I added the > sfWidgetFormChoice widget to the lib/form file, like this : > > class MyModule extends BaseMyModule > { > public function configure() > { > $this->widgetSchema['field'] = new sfWidgetFormChoice (array( > 'choices' => array ('Choice1', 'Choice2') > )); > } > } > > My problem is that the choices are converted to '0' and '1' before > Insert(). I would like to insert the values of 'choices' (in this case > Choice1 and Choice2). > > Help would be appreciated. I hope I am clear enough. > > -- > 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] change pages displayed by pager?
I'm guessing you need the $nb_links parameter of the getLinks function: http://trac.symfony-project.org/browser/branches/1.4/lib/addon/sfPager.class.php#L105 On Fri, Jun 18, 2010 at 11:19, Tofuwarrior wrote: > Hi Everyone, > > Does anyone know how to change the number of pages displayed in the > list at the bottom when using the pager? > Currently it shows the buttons and then 5 pages but I have 60odd pages > so it is very cumbersome. > > I've searched everywhere and can't find out how to change it so it > displays more page numbers in the list. > > Additionally I would like to implement a drop down so users can just > select which page they want. > Anyone got any pointers on how to extend the pager to do this. > > I feel like I'm missing something really obvious. > > Cheers, > > Paul > > -- > 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] i18n doubts backend generator
You also need to pass a third parameter, a catalog - in your case it is 'sf_admin'. The default is 'messages', so unless you specify otherwise, symfony is looking for a translation in the 'messages' file. On Thu, Jul 1, 2010 at 21:03, fRAnKEnSTEin wrote: > hi there, > > I have added i18n support to my app's backend(generated using backend > generator ), following next steps: > > 1- Create folder called "i18n" in my app's "backeng" folder > 2- Copy/paste file called "sf_admin.es.xml" to "i18n" folder just > created > 3- Set in apps/backend/config/settings.yml > > ... > all: > .settings: > ... > ... > standard_helpers: ['Partial', 'I18N', 'Cache'] > i18n: true > ... > > Now when i chage the language using the combobox, the language changes > in all admin generator different parts, but the menu options that i > have in my app like: > > > > does not. in fact nothing but adim generator specific parts are > translated(like filter section etc). for example if i just put some > text like: > > > > It does not work ether. > > Any idea why? > > Cheers > > -- > 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: Question about set/get methods of model classes
The question is doctrine-related, not propel. Doctrine indeed uses magic methods instead of generating them. On Sat, Jul 3, 2010 at 14:58, rumianom wrote: > What do you mean "on the air"? > Set/get methods are generated in base model classes and you can > override them in your model class ( OOP ). > When you build-model, base model is generated once more time but your > model classes remain untouched. > From my knowledge of Propel. > > On 2 Lip, 17:51, Javier Garcia wrote: >> Hi, >> >> why the get and set methods of the model classes are created "on the >> air", instead of generating them when the model class is created? is >> there any advantage? >> >> -- >> Javi >> >> Ubuntu 8.04 - Symfony 1.3 > > -- > 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] Newbie question: where's the css?
There's a different css for the default symfony pages, you can find it at lib/vendor/symfony/data/web/sf/sf_default/css. This is partially the reason for the /sf alias during the webserver config. On Mon, Jul 12, 2010 at 10:32, finn wrote: > I'm have just created my first Symfony project. > > According to this tutorial: > > http://www.symfony-project.org/getting-started/1_4/en/05-Web-Server-Configuration > > - there should be a nice-looking css in the project already when you > have created the project. But in my project, the main.css is empty. > How come? > > -- > 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] Qustion about routing
Why not use the route's name? link_to("bar", "@mensaje_nuevo") On Tue, Jul 13, 2010 at 14:53, Javier Garcia wrote: > Hi, > > I have this rule in routing.yml: > > mensaje_nuevo: > url: /mensaje/nuevo > > and this link in a template: > > echo link_to('Foo', 'mensaje/nuevo'); > > > When i execute the action that renders the link, it gives me this error: > > "Unable to find a matching route to generate url for params "array ( > 'action' => 'nuevo', 'module' => 'mensaje',)"." > > Any idea? > > -- > > Javi > > Ubuntu 8.04 - Symfony 1.3 > > -- > 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] Question about object routing and slugging
The slug field needs to be a real column, not a virtual one that you created. When the url is accessed, doctrine is looking for a single object matching the fields found in the url - in your case, no fields, that's why you see the very first record in your table. The query logger should show something like "select * from tablename limit 1;". A note regarding your url: are you sure there will not be multiple people with the same name? If such a collision occures, noone will be able to see the 2nd, 3rd, etc. person's page. On Tue, Jul 13, 2010 at 20:48, Javier Garcia wrote: > Hi, > > in order to not show the ID's of the members of my social network in the > URL, I have created this route: > > perfil_miembro: > url: /miembros/:nombre_apellidos > class: sfDoctrineRoute > options: { model: Usuario, type: object} > param: { module: miembros, action: show} > > and added this line in the show action: > > $this->usuario = $this->getRoute()->getObject(); > > It works ok: when i click on their names the corresponding profile is > showed, and the URL is this type: > > frontend_dev.php/miembros/Maria+de+Miguel+Alvarado > > > Now I would like to slug the names in the URL so i have changed the route > this way: > > perfil_miembro: > url: /miembros/:nombre_apellidos_slug > class: sfDoctrineRoute > options: { model: Usuario, type: object} > param: { module: miembros, action: show} > > > And i have created this methods: > > public function getNombreApellidosSlug() > { > > return Tirengarfio::slugify($this->getNombreApellidos()); > } > > class Tirengarfio > { > static public function slugify($text) > { > > // replace all non letters or digits by - > $text = preg_replace('/\W+/', '-', $text); > > // trim and lowercase > $text = strtolower(trim($text, '-')); > > return $text; > } > } > > Now when I click on the name of a member, this URL is showed: > > frontend_dev.php/miembros/maria-de-miguel-alvarado > > but it always shows the profile of the first member that i have in the > fixtures file.. > > Any idea? > > -- > Javi > > Ubuntu 8.04 - Symfony 1.3 > > -- > 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] genUrl with object
Is your route declared as sfPropelRoute/sfDoctrineRoute? On Wed, Jul 14, 2010 at 15:23, HAUSa wrote: > I can't use genUrl like this: > genUrl('advertisement_show', $Advertisement) > where $Advertisement is the object for the sfObjectRoute > > The only way to do so is to call it like this: > genUrl('advertisement_show?id=' . $Advertisement->getId() . '&slug=' . > $Advertisement->getSlug()) > > But that, ofcourse, kills the flexibility of the routing system! > How can I do the top solution with getUrl? > > -- > 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] Excluding from Filter and Form builder
I'm using this: _propel_behaviors: symfony: form: false filter: false On Thu, Jul 15, 2010 at 14:45, Sarel wrote: > Does anybody know whether it's possible in the schema.yml file to > exclude certain tables from the Filter and Form building? I.e. let's > say I have 10 tables, but only say 4 of them should have filters, > forms etc built... the rest should ONLY have the ORM's for data access? > > -- > 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: how can I get url without parameters in view ?
You might be looking for getCurrentRouteName() of sfPatternRouting: http://trac.symfony-project.org/browser/branches/1.4/lib/routing/sfPatternRouting.class.php#L140 On Fri, Jul 16, 2010 at 07:22, alexmm wrote: > I would like to have universal template for pagintion - so I need > something like that: > > > > On 16 Lip, 07:08, alexmm wrote: >> how can I get url without parameters in view ? >> For example when I have: "http://myapp.example.com/article/read/21"; - >> I would like to get: "article/read" > > -- > 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: genUrl with object
What's the error message? Did you try removing the *? On Fri, Jul 16, 2010 at 10:19, HAUSa wrote: > Anyone? > > On 14 jul, 15:39, HAUSa > wrote: >> Yes: >> >> advertisement_show: >> url: /:sf_culture/advertisement/show/:id/:slug/* >> class: sfPropelRoute >> options: { model: Advertisement, type: object } >> param: { module: advertisement, action: show } >> requirements: >> sf_method: [get, post] >> sf_culture: (?:en|es|de|fr|nl) >> >> On 14 jul, 15:32, Gábor Fási wrote: >> >> > Is your route declared as sfPropelRoute/sfDoctrineRoute? >> >> > On Wed, Jul 14, 2010 at 15:23, HAUSa >> >> > wrote: >> > > I can't use genUrl like this: >> > > genUrl('advertisement_show', $Advertisement) >> > > where $Advertisement is the object for the sfObjectRoute >> >> > > The only way to do so is to call it like this: >> > > genUrl('advertisement_show?id=' . $Advertisement->getId() . '&slug=' . >> > > $Advertisement->getSlug()) >> >> > > But that, ofcourse, kills the flexibility of the routing system! >> > > How can I do the top solution with getUrl? >> >> > > -- >> > > 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] Recommended method to add profile image
The error is pretty clear, you'll need to edit the bind() call to pass `$request->getFiles($form->getName)` (or sth like this) as the second parameter. On Fri, Jul 16, 2010 at 01:01, Dominic Preuss wrote: > What is the preferred way to add a profile image to a Symfony 1.4 > Doctrine Project? I tried to do this myself and via searching the > forum. This would seem to be a basic function that isn't supported > out of the the box and for which isn't a clear example/tutorial. Am I > missing something? > > I have tried to add a field called profile_image to the > sfGuardUserProfile object (and sfWidgetFormInputFileEditable form > element) to both the sfDoctrineApplyPlugin and the > sfForkedDoctrineApplyPlug but get the same error: > > Error: This form is multipart, which means you need to supply a files > array as the bind() method second argument. > > schema.yml > ... > sfGuardUserProfile: > tableName: sf_guard_user_profile > columns: > id: > type: integer(4) > primary: true > autoincrement: true > user_id: > type: integer(4) > notnull: true > email: > type: string(80) > validate: > type: string(17) > profile_image: > type: string(1024) > relations: > User: > class: sfGuardUser > foreign: id > local: user_id > type: one > onDelete: cascade > foreignType: one > foreignAlias: Profile > > > > form class > ... > class sfGuardUserProfileForm extends BasesfGuardUserProfileForm > { > public function configure() > { > $this->widgetSchema['profile_image'] = new > sfWidgetFormInputFileEditable(array( > 'label' => 'Profile Image', > 'file_src' => '/uploads/profile-images/'.$this->getObject()- >>getProfileImage(), > 'is_image' => true, > 'edit_mode' => !$this->isNew(), > 'template' => '%file%%input%%delete% > %delete_label%', > )); > > $this->validatorSchema['profile_image'] = new > sfValidatorFile(array( > 'required' => false, > 'path' => sfConfig::get('sf_upload_dir').'/profile- > images/', > 'mime_types' => 'web_images', > )); > } > } > > -- > 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: genUrl with object
Are you sure $oAdvertisement is not null? Can you call its getId and getSlug methods? On Sun, Jul 18, 2010 at 19:42, HAUSa wrote: > It says: > > The "/:sf_culture/advertisement/show/:id/:slug" route has some missing > mandatory parameters (:id, :slug). > > This means it doesn't receive the object. > While I actually do give it (and url_for would accept it this way): > > genUrl('advertisement_show', $oAdvertisement, true) > > > Thanks for thinking with me! > > > On 16 jul, 10:30, Gábor Fási wrote: >> What's the error message? Did you try removing the *? >> >> On Fri, Jul 16, 2010 at 10:19, HAUSa >> >> wrote: >> > Anyone? >> >> > On 14 jul, 15:39, HAUSa >> > wrote: >> >> Yes: >> >> >> advertisement_show: >> >> url: /:sf_culture/advertisement/show/:id/:slug/* >> >> class: sfPropelRoute >> >> options: { model: Advertisement, type: object } >> >> param: { module: advertisement, action: show } >> >> requirements: >> >> sf_method: [get, post] >> >> sf_culture: (?:en|es|de|fr|nl) >> >> >> On 14 jul, 15:32, Gábor Fási wrote: >> >> >> > Is your route declared as sfPropelRoute/sfDoctrineRoute? >> >> >> > On Wed, Jul 14, 2010 at 15:23, HAUSa >> >> >> > wrote: >> >> > > I can't use genUrl like this: >> >> > > genUrl('advertisement_show', $Advertisement) >> >> > > where $Advertisement is the object for the sfObjectRoute >> >> >> > > The only way to do so is to call it like this: >> >> > > genUrl('advertisement_show?id=' . $Advertisement->getId() . '&slug=' . >> >> > > $Advertisement->getSlug()) >> >> >> > > But that, ofcourse, kills the flexibility of the routing system! >> >> > > How can I do the top solution with getUrl? >> >> >> > > -- >> >> > > 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: genUrl with object
Try generateUrl instead of genUrl public function generateUrl($route, $params = array(), $absolute = false) On Sun, Jul 18, 2010 at 20:00, HAUSa wrote: > Yes, I'm sure. > Did a print_r($oAdvertisement) check just now to confirm. > > On 18 jul, 19:45, Gábor Fási wrote: >> Are you sure $oAdvertisement is not null? Can you call its getId and >> getSlug methods? >> >> On Sun, Jul 18, 2010 at 19:42, HAUSa >> >> wrote: >> > It says: >> >> > The "/:sf_culture/advertisement/show/:id/:slug" route has some missing >> > mandatory parameters (:id, :slug). >> >> > This means it doesn't receive the object. >> > While I actually do give it (and url_for would accept it this way): >> >> > genUrl('advertisement_show', $oAdvertisement, true) >> >> > Thanks for thinking with me! >> >> > On 16 jul, 10:30, Gábor Fási wrote: >> >> What's the error message? Did you try removing the *? >> >> >> On Fri, Jul 16, 2010 at 10:19, HAUSa >> >> >> wrote: >> >> > Anyone? >> >> >> > On 14 jul, 15:39, HAUSa >> >> > wrote: >> >> >> Yes: >> >> >> >> advertisement_show: >> >> >> url: /:sf_culture/advertisement/show/:id/:slug/* >> >> >> class: sfPropelRoute >> >> >> options: { model: Advertisement, type: object } >> >> >> param: { module: advertisement, action: show } >> >> >> requirements: >> >> >> sf_method: [get, post] >> >> >> sf_culture: (?:en|es|de|fr|nl) >> >> >> >> On 14 jul, 15:32, Gábor Fási wrote: >> >> >> >> > Is your route declared as sfPropelRoute/sfDoctrineRoute? >> >> >> >> > On Wed, Jul 14, 2010 at 15:23, HAUSa >> >> >> >> > wrote: >> >> >> > > I can't use genUrl like this: >> >> >> > > genUrl('advertisement_show', $Advertisement) >> >> >> > > where $Advertisement is the object for the sfObjectRoute >> >> >> >> > > The only way to do so is to call it like this: >> >> >> > > genUrl('advertisement_show?id=' . $Advertisement->getId() . >> >> >> > > '&slug=' . >> >> >> > > $Advertisement->getSlug()) >> >> >> >> > > But that, ofcourse, kills the flexibility of the routing system! >> >> >> > > How can I do the top solution with getUrl? >> >> >> >> > > -- >> >> >> > > 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] Re: preventing 's in sql created by Criteria
% is the wildcard similar to * in a like query On Sun, Jul 18, 2010 at 23:23, mlu...@gmail.com wrote: > Thank you for the answer, but this isn't exactly what I need. > > If I have "%bad%" in the blacklist and a user enters "badNew" the > entry isn't cought with the SQL: > > SELECT * > FROM userblacklist u > where entry LIKE "%badNew%"; > > But this would catch it > > SELECT * > FROM userblacklist u > where "%badNew%" like entry; > > michael > > > On 18 Jul., 23:12, nibsirahsieu wrote: >> $criteria->add( "'".$values["username"]."'", >> UserblackListPeer::ENTRY, >> Criteria::LIKE); >> i think it's should be: >> $criteria->setIgnoreCase(true); //add this If you want a column to be >> treated in case-sensitive fashion >> $criteria->add(UserblackListPeer::ENTRY, '%'.$values["username"].'%', >> Criteria::LIKE); >> >> On Jul 19, 4:03 am, "mlu...@gmail.com" wrote: >> >> > Hi! >> >> > In my registration form I want to make a blacklist for user names. For >> > this i made a table containing entryies that are not allowed for user >> > names. My idea was to work with "like" which allows entries like "%bad >> > %" in the blacklist. >> >> > The SQL would look like this: >> >> > SELECT * >> > FROM userblacklist u >> > where entry like "baduser"; >> >> > The problem is this SQL isn't working. This SQL is working: >> >> > SELECT * >> > FROM userblacklist u >> > where "basuser" like entry; >> >> > So I had the idea to build the criteria this way: >> >> > $criteria->add( "'".$values["username"]."'", UserblackListPeer::ENTRY, >> > Criteria::LIKE); >> >> > But the Criteria class adds ' to the second parameter and doesn't >> > resolve the field name, which leads to the following SQL: >> >> > SELECT * >> > FROM userblacklist u >> > where "basuser" like 'UserblackListPeer::ENTRY'; >> >> > Any ideas how I can make this working properly? >> >> > regards, >> >> > michael > > -- > 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] Can't configure Web Server
Actually, the 1.4 version has changed it to www.jobeet.com.localhost. Go to the link you gave, and scroll a bit down to the "Configure a dedicated Domain Name" box (it has no tag). On Mon, Jul 19, 2010 at 22:19, Eno wrote: > On Mon, 19 Jul 2010, Mspozzato wrote: > >> Help me, because I'm newer in Symfony and PHP. And, unfortunatelly, I >> cannot run the first home page after configurations: >> http://www.jobeet.com.localhost/index.php/ >> The web browser returns messages like "Cannot find server" or "Cannot >> be found". > > Means DNS lookup for www.jobeet.com.localhost failed. > > NOTE: the Jobeet tutorial talks about jobeet.localhost, not > www.jobeet.com.localhost. Whatever hostname you decide needs to be > resolvable in DNS. > >> I've started on reading the Tutorial "Practical Symfony, Day 1: >> Starting up the project". All the instructions were checked, but those >> about Web Server Configuration I think isn't good. > > You need to add that domain to your hosts file so the name can be > translated into an IP. In Windows, the file is > \WINDOWS\System32\drivers\etc\hosts > > It tells you in the docs: > http://www.symfony-project.org/jobeet/1_4/Doctrine/en/01#chapter_01_sub_web_server_configuration > > > > -- > A > > > > -- > 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] Admin generator edit/delete action link error
Make sure you have no_script_name disabled in your backend's settings.yml for the prod environment. And clear your cache. On Tue, Jul 20, 2010 at 16:44, Mohd Shakir bin Zakaria wrote: > Hi everyone, > > I'm using admin generator for one of my project, and the edit/delete > action in the list points to wrong URL. > > For example, for this URL, > > http://127.0.0.1/ems/admin/data > > the edit link of the first item is as the following, > http://127.0.0.1/ems/data/1/edit > > where the application name (admin) is not in the list, and so I get > the error when clicking the link. The same goes for the delete action. > > Things are OK if I'm using dev (http://127.0.0.1/ems/admin_dev.php/data). > > Any idea of what could be causing the problem? > > p/s: I'm still new with Symfony > > -- > Regards, > > Mohd Shakir Zakaria > http://www.mohdshakir.net > > -- > 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] new symfony 2 project
Symfony2 is still under heavy development, and is not yet ready to be used in production. Use symfony 1.4. On Thu, Jul 22, 2010 at 14:08, birko wrote: > Hi there. In our company we are creating new project . we use by now > the symfony 1.x framework but the new project we would like to build > on symfony 2. > I checkouted the svn version of symfony 2. > In the official symfony 2 page there is only the sandbox tutorial. Im > looking for something like documentation to create own project and i > have problems to find one :/ > > Thx for any 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 > -- 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: Unit tests fail with 'dubious' status
http://www.symfony-project.org/jobeet/1_4/Doctrine/en/08#chapter_08_doctrine_unit_tests On Thu, Jul 22, 2010 at 18:36, Lene Preuss wrote: > Yes, as I described above, this fails with a > Doctrine_Connection_Exception with message 'There is no open > connection': > > php ./test/unit/StoreTest.php > PHP Fatal error: Uncaught exception 'Doctrine_Connection_Exception' > with message 'There is no open connection' in lib/vendor/symfony/lib/ > plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Manager.php:662 > Stack trace: > #0 lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/ > Doctrine/Manager.php(557): Doctrine_Manager->getCurrentConnection() > #1 lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/ > Doctrine/Core.php(1095): Doctrine_Manager- >>getConnectionForComponent('Store') > #2 lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/ > Doctrine/Record.php(219): Doctrine_Core::getTable('Store') > #3 test/unit/StoreTest.php(9): Doctrine_Record->__construct() > #4 test/unit/StoreTest.php(51): StoreTestcase->__construct() > #5 {main} > thrown in lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/ > doctrine/Doctrine/Manager.php on line 662 > > This is kinda hard to decipher, as the mailing list breaks all lines > at 80 characters, sorry about that. but the message 'There is no open > connection' should be a hint. > > So I guess the real question is: How do I open a connection when > calling a test directly from the command line? What must I do first in > the test to open it? > > On Jul 22, 5:48 pm, Florian wrote: >> Hi! >> >> you normally can launch a test by doing : >> >> php test/unit/StoreTableTest.php >> >> By this way, you have the full output of your test script, even >> exceptions (dubious means script didn't ended as attended ( ie: fatal >> errors, uncaught exceptions, die(), ...). >> >> On 22 juil, 17:04, Lene Preuss wrote: >> >> >> >> > Well no, I'm using lime, I just wrote a wrapper that makes the tests >> > look more like PHPUnit, indeed. ;-) >> >> > On Jul 22, 4:20 pm, Dennis wrote: >> >> > > Whoops! I was directed by google search to the middle of your article, >> > > and it LOOKED like you were using PHPUnit. My apologies. >> >> > > On Jul 22, 7:18 am, Dennis wrote: >> >> > > > I am hving great difficultities with PHPUnit and Symofny myself. If >> > > > you are doing any changes to the database out of band, you can forget >> > > > doing all your tests in one run. My next approach is to run my tests >> > > > (each with 15 assertions, in separate files. I will run them using a >> > > > bash script and redirect of all the tests's outputs to a single file. >> >> > > > For me, I'm foind that either symfony or PHPUnit is remembering things >> > > > from the last test that no longer exist. >> >> > > > I was at a talk by Dustin Whittle several weeks ago. He says PHPUnit >> > > > is the future of Symfony, albeit with some exetensions. They are >> > > > saving that part of Symfony 2 for last if I remember correctly. I >> > > > think they have their work cut out ofr them. >> >> > > > On Jul 22, 12:36 am, Lene Preuss wrote: >> >> > > > > Hi there, >> >> > > > > any ideas, anybody? I'm kind of stuck here... >> >> > > > > Thanks, Lene >> >> > > > > On Jul 15, 6:55 pm, Lene Preuss wrote: >> >> > > > > > Hi list, I'm a newb to symfony, so forgive me if I'm asking a dumb >> > > > > > question. >> >> > > > > > I jumped into symfony writing unit tests. My tests run fine when I >> > > > > > run >> > > > > > them as single test, e.g. >> >> > > > > > > php symfony test:unit Store >> >> > > > > > but they all fail with a 'dubious' status when I run them all, e.g. >> >> > > > > > > php symfony test:unit >> >> > > > > > StoreTableTest...dubiou >> > > > > > s >> > > > > > Test returned status 255 >> > > > > > Failed tests: 0 >> > > > > > StoreTestdubiou >> > > > > > s >> > > > > > Test returned status 255 >> > > > > > Failed tests: 0 >> > > > > > Failed Test Stat Total Fail Errors List of >> > > > > > Failed >> > > > > > -- >> > > > > > StoreTableTest 255 1 1 0 0 >> > > > > > StoreTest 255 1 1 0 0 >> > > > > > Failed 2/2 test scripts, 0.00% okay. 2/0 subtests failed, 0.00% >> > > > > > okay. >> >> > > > > > I read that the tests should be able to run standalone, which they >> > > > > > don't. E.g: >> >> > > > > > > php test/unit/StoreTest.php >> >> > > > > > PHP Fatal error: Uncaught exception >> > > > > > 'Doctrine_Connection_Exception' >> > > > > > with message 'There is no open connection' in >> > > > > > /var/home/lene/workspace/ >> > > > > > my.agfaphoto/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/ >> > > > > > vendor/doctrine/Doctr
Re: [symfony-users] sfGuardPlugin: checking username with regex
It works, your expression is wrong. Try '/^[a-zA-Z]{1,}[a-zA-Z0-9]$/'. On Mon, Jul 26, 2010 at 15:34, mlu...@gmail.com wrote: > Hi! > > In my app i am using sfGuardPlugin. I have extended the class > sfGuardUserForm to build my own registration form class. In the > overridden configure method I have code below to define the rules for > the username: > > $this->setValidator('username', > new sfValidatorAnd( > array( > new sfValidatorString( > array( > 'required' => true, > 'max_length' => 64, > 'min_length' => 4 > ), > array( > 'invalid' => "The username isn't available.", > 'required' => 'Please enter a username.', > 'max_length' => 'The username can not be longer than > %max_length% characters.', > 'min_length' => 'The username can not be shorter than > %max_length% characters.' > ) > ), > new sfBlacklistValidator( > array('listed_error' => "The username '%value%' isn't > available." ) > ), > new sfValidatorRegex( > array( > 'pattern' => '/[a-zA-Z]{1,}[a-zA-Z0-9]/' > ), > array( > 'invalid' => "Your username isn't valid. Please start with a > character and use characters from a to z and numbers only." > ) > ) > ) > ) > ); > > I want the username to begin with an character followed by any number > of characters ot numbers, but the RegexValidator doesn't seen to work, > because I can register the username "0" which is starting with a > zero. > > Any ideas what I am doing wrong? > > regards, > > michael > > -- > 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: latest verion of sfForkedDoctrineApplyPlugin is broken
Did you clear your cache? Did you rebuild your models? On Mon, Jul 26, 2010 at 15:06, Tristan wrote: > it broke everything : > > even after removing the plugin, i stil have this message. > > -- > 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: Symfony 1.4: Get current route name
sfPatternRouting has a function called getCurrentInternalUri [1], you should use that. Also, there is no reason to use sfContext::getInstance() in this case, you should use $this->getContext()->getRouting(). [1] http://trac.symfony-project.org/browser/branches/1.4/lib/routing/sfPatternRouting.class.php#L130 On Tue, Jul 27, 2010 at 08:53, sebastian wrote: > You can access routes via sfContext::getInstance()->getRouting()- >>getRoutes() and then go from there > > > > On 27 Jul., 07:15, Johannes Trommer > wrote: >> Hello, >> >> How can I get the current route name in the module's action? >> >> This is my route: >> >> powerplantsTypes: >> url: /type/:slug.html >> param: { module: powerplants, action: list } >> >> In the action i want the retrieve the route name 'powerplantsTypes'. >> >> Thanks in advance! > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- 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] Simple Display Problem
Your email address doesn't come as 'email', it comes as 'formname[email]' - this is why you can bind with $request->getParameter($form->getName()). You might want to try `$form->getValue("email")`, it will return the cleaned email address. On Tue, Jul 27, 2010 at 21:31, Andro Fumero wrote: > Hi guys, > > Please bare with me with my simple problem,i'm just new in symfony, but i > haven't solved this one for the whole day. > > protected function processForm(sfWebRequest $request, sfForm $form) > { > $form->bind($request->getParameter($form->getName()), > $request->getFiles($form->getName())); > if ($form->isValid()) > { > //HERE IS THE DISPLAY > //I JUST WANT TO DISPLAY THE EMAIL THAT USER SAVE BUT ITS EMPTY AS > ALWAYS > $this->getUser()->setFlash('notice', sprintf('Here is your email > (%s).', $request->getParameter('email'))); > > $member = $form->save(); > $this->redirect('member/edit?id='.$member->getId()); > } > > 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 > -- 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] propel-build-model not making models
What's the output of the task? Also, use "propel:build-model" instead. On Thu, Jul 29, 2010 at 15:00, Siameseguy wrote: > Hi, im new to symfony and am running into a problem. i have just > built a schema and tried using the "propel-build-model" command, but > its not creating anything. Any suggestions? > > -- > 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