Re: [symfony-users] static pages
It looks like you are doing everything correctly so far. I am going to type all the things you need to do to get this to work: 1. Did you create the _about_us.php file in static/templates? 2. Did you add the static page/content route in apps/frontend/config/routing.yml (you may have to delete the default route)? 3. Do you have the include partial line in your indexSuccess.php file in your static/templates folder? 4. If you have all these things clear your cache (./symfony cc) and if you have apc or some other caching system running restart apache. Good luck! On Sat, Oct 16, 2010 at 2:31 PM, xpanshun wrote: > Hi all, > > I made the module for static pages (following the tutorial at > http://trac.symfony-project.org/wiki/HowtoServeStaticContent). But it > doesn't work. I do everything the tutorial says but when I try to > browse the "about us" page I get a '404 not found error' page. What > could be wrong? > > This is the default actions.class.php after creation of the module: > > > class staticActions extends sfActions > { > /** >* Executes index action >* >* @param sfRequest $request A request object >*/ >public function executeIndex(sfWebRequest $request) >{ > $this->forward('default', 'module'); >} > } > > > Which honestly, I'm not sure what is going on inside the function :\ > > The tutorial, however, shows this for actions.class.php: > > > class staticActions extends sfActions > { > public function executeIndex() > { >$this->content = $this->getRequestParameter('content'); > } > } > > > I'm highly confused as to what's going on and why the process isn't > working for me. What should my actions.class.php look like? If you > need any more info just let me know. Thanks in advance for the 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
[symfony-users] static pages
Hi all, I made the module for static pages (following the tutorial at http://trac.symfony-project.org/wiki/HowtoServeStaticContent). But it doesn't work. I do everything the tutorial says but when I try to browse the "about us" page I get a '404 not found error' page. What could be wrong? This is the default actions.class.php after creation of the module: class staticActions extends sfActions { /** * Executes index action * * @param sfRequest $request A request object */ public function executeIndex(sfWebRequest $request) { $this->forward('default', 'module'); } } Which honestly, I'm not sure what is going on inside the function :\ The tutorial, however, shows this for actions.class.php: class staticActions extends sfActions { public function executeIndex() { $this->content = $this->getRequestParameter('content'); } } I'm highly confused as to what's going on and why the process isn't working for me. What should my actions.class.php look like? If you need any more info just let me know. Thanks in advance for the 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
[symfony-users] sfGuard/sfApply username/email are case sensitive? oh no
Hello, I am using sfDoctrineGuard (trunk version) and sfDoctrineApply (branch 1.2 version) in my application and found that registration is case sensitive but login is not. 1. I registered the user "Hello1" (notice the capitol) 2. Immedately after, I login with success as the user "hello1" (notice the lowercase) 3. Then, I register the user "hello1" with success. This seems to be a failure of unique usernames with sfApply, or at least the sfDoctrineUnique validator. Even worse, I register the email a...@b.com, confirm it, then I register another user with the email a...@b.com, and I am successful. These are the exact same email according to the RFC which sfDoctrineGuard claims they are unique. I hope I am wrong and that I missed something when trying to configure this plugin. Did I do something wrong? Or is this a known issue? Thanks a lot! Love Symfony -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, 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] HTTPS/SSL standard in 1.4
Well, I'll be the first to admit I'm wrong. Sorry for the overlook and thanks for pointing that out. I'll take a look at this and the one that web_dev sent: http://blog.tigregroup.com/programming/creating-an-ssl-redirect-filter-in- symfony/ I wonder if the one on the blog post might be a little more robust, but in any event, thanks for the heads up! -Jamie -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of Georg Sent: Friday, October 15, 2010 2:02 PM To: symfony-users@googlegroups.com Subject: Re: [symfony-users] HTTPS/SSL standard in 1.4 Actually it is in the 1.4 docs, see http://www.symfony-project.org/gentle-introduction/1_4/en/06-Inside-the-Co ntroller-Layer Listing 6-33 I admit it's hard to find, it seems google does not index 1.4 docs :-( Am 15.10.2010 02:07, schrieb JamesD: > Hello, > > First off I'd like to commend everyone who has contributed to Symfony. > Amazing stuff. There seems to be one thing lacking in the > documentation for 1.4 though, and I haven't had too much success > figuring out what the standard is in Symfony for managing HTTPS. Is > the Symfony plugin the standard for working with secure pages? It's > odd that it isn't tagged with 1.4 nor mentioned in the docs if that's > the case. > > http://www.symfony-project.org/plugins/sfSslRequirementPlugin > > Anyways, I've found a few blog posts on the internet that attempt to > also address the issue, but I just find it surprising that the Symfony > documentation doesn't even talk about HTTPS. Here are a couple of > options I discovered: > > http://www.saynotoflash.com/archives/symfony-1-2-redirect-specific-modules -and-actions-to-https-ssl/ > http://usefulthink.com/2010-04/using-ssl-for-some-routes-in-symfony-1-3/ > > If someone could point me in the correct direction for the best > practice for HTTPS in symfony, that would be greatly appreciated. > > 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
[symfony-users] Re: Symfony2 UnitTest error in Sandbox app
Thanks again. You were correct - my config_test.yml file had this in it: app.config: error_handler: false test: ~ I changed the ~ to true and everything now works. Thank you. On Oct 16, 2:13 am, gordonslondon wrote: > Your test client isn't loaded. You have to manually configure it. > you have to add this to your config-test file : > > app.config: > test: true > > for this i suppose you use the latest version. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, 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: HTTPS/SSL standard in 1.4
Agreed about your point with there being different "options" to choose from. I just thought that it is a worthwhile issue to address in the documentation. Anyways, thank you for pointing this out to me and for being my guinea pig with it :) Cheers, -Jamie -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of webdev_aw_ucsb Sent: Friday, October 15, 2010 10:02 AM To: symfony users Subject: [symfony-users] Re: HTTPS/SSL standard in 1.4 Well I wouldn't say there's a standard regarding how to do SSL in Symfony -- just as you have choices in ORM usage. In general there are various plugins 1 could use. I am using this plugin in Symfony 1.4 (the author said he'd bundle it as an official plugin -- but I dont think he got around to it): http://blog.tigregroup.com/programming/creating-an-ssl-redirect-filter-in- symfony/ cheers, David -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, 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 or Symfony 2?
Symfony 2.0 does not have any production experience, but I'd prefer 2.0. Hard choice. On Fri, Oct 15, 2010 at 8:19 PM, Gareth McCumskey wrote: > I guess the only way to answer this is .. depends. If you expect your > project to be ready to go live for production use within the next couple of > months, then you should use 1.4. Otherwise, if you expect the development > time to be longer, say into next year, and you don't mind fixing things that > may break as Symfony 2 matures closer to release, then go for Symfony 2. > > On Thu, Oct 14, 2010 at 4:21 PM, Haulyn R. Jason wrote: > >> Hi, >> >> I am new to Symfony, I compare the two version symfony1.4 and symfony2.0 >> prefiew, I didn't find a way to upgrade symfony1.4 project to 2.0. But the >> official site says: 2.0 is not ready for production enviroment. >> >> At the moment, our project is on the way. We want to use 2.0, but I think >> I need some suggestion from symfony community. Any suggestions are welcome, >> Thanks. >> >> >> -- >> Thanks! >> >> http://www.haulynjason.net >> >> >> Haulyn Jason >> >> >> -- >> If you want to report a vulnerability issue on symfony, please send it to >> security at symfony-project.com >> >> You received this message because you are subscribed to the Google >> Groups "symfony users" group. >> To post to this group, send email to symfony-users@googlegroups.com >> >> To unsubscribe from this group, send email to >> symfony-users+unsubscr...@googlegroups.com >> >> For more options, visit this group at >> http://groups.google.com/group/symfony-users?hl=en >> > > > > -- > Gareth McCumskey > http://garethmccumskey.blogspot.com > twitter: @garethmcc > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- Thanks! http://me.haulynjason.net Haulyn Jason -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] deploying a symfony application on 1and1 shared hosting
Has anyone successfully deployed a symfony application on 1and1 shared hosting?Here are the steps taken so far but my site loads blank pages. 1) i uploaded my files to the the site's directory on the server 2) changed the site destination to point to /web directory 3) edited my .htaccess file as thus Options +FollowSymLinks +ExecCGI RewriteEngine On AddType x-mapp-php5 .php AddHandler x-mapp-php5 .php # 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] 4) i edited my database.yml file all: doctrine: class: sfDoctrineDatabase param: dsn: mysql:host=db1199.perfora.nett;dbname=db username: db password: db And lastly i cleared my cache but my site still loads blank. You can have a look at www.celestialdate.com This is urgent, i have finished the job for a while now and the client can't get to see his job. 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
[symfony-users] Re: Symfony2: doctrine:schema:create write "No Metadata Classes to process." for annotations
Solved by manualy added "orm:" prefix in all annotations, for instance @orm:Table(), @orm:Entity, etc. On 15 окт, 11:59, VolCh wrote: > Hello > > I try to create very simple entity and schema in sandbox, but can't do > it: > > $ app/console init:bundle "Application\SomeBundle" > Initializing bundle "SomeBundle" in "/home/volch/projects/sym2/src/ > Application" > $ app/console doctrine:generate:entity "Application\SomeBundle" "User" > --mapping-type="annotation" --fields="name:string(255)" > Generating entity for "SomeBundle" > > generating Application\Some\Entity\User > $ app/console doctrine:schema:create > No Metadata Classes to process. > > Where is a mistake? > > Generated Application\Some\Entity\User.php: > > namespace Application\SomeBundle\Entity; > > /** > * Application\SomeBundle\Entity\User > * > * @Table() > * @Entity > */ > class User > { > /** > * @var integer $id > * > * @Column(name="id", type="integer") > * @Id > * @GeneratedValue(strategy="AUTO") > */ > private $id; > > /** > * @var string $name > * > * @Column(name="name", type="string", length=255) > */ > private $name; > > > > } -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Plugins' assest web dir
it is possible to change, set etc the directory which the plugins publish their assets in? i've been looking for the answer but unfortunately did not find anything. for example instead of /web/ could be this /web/plugins/ or /web/themes/ thanks in advanced. laci -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] sfWidgetFormChoice radio and title
Hello, I have a problem to set title of each radio buttons (separately). When, I change title attribute: $this->widgetSchema['test'] = new sfWidgetFormChoice(array('choices' => array('one' => 'one', 'two' => 'two', 'three' => 'three'), 'expanded' => true), array('title' => array('one' => 'First one'))) It doesn't work, all title are set to "Array". Thank to help me :) -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: Multiple submit buttons/Multiple forms
Hey Raphael, That is exactly what I am trying to achieve here. So thanks for your tip, I'll take yours over Gareths' I do wanna shoot a couple of more questions to both of you that is essentially a spin off the existing question. First of all, Raphael, I noticed you made use of regular HTML tags, I tried using Symfony submit_Tag and set up a name parameter, such as: echo submit_tag('Comment'',' ', ' comments' ) but the HTML always renders itself as : WHich is to imply that the $name parameter of the submit_tag was not interpreted. I am hoping the format is correct, here is the API link that I referred to: http://www.symfony-project.org/api/1_2/FormHelper#method_submit_tag 2nd Could you guys shed some light upon $request variable. I see both of you guys using it, typically I use it always as: $this->getRequest()->getParameter()etc...but is there a way to initialize $request. Thanks a ton, Happy weekend![?] On Thu, Oct 14, 2010 at 4:32 AM, Raphael Schumacher < m...@raphaelschumacher.ch> wrote: > Provided that I haven't misunderstood your problem, I think that you > can add multiple submit buttons to one form, and that you can > differentiate them in the action through their name attributes. So > there would be no need to have multiple instances of the (same) form. > > E.g. in the template for your form, thw two submit button tags look > like something: > > > > Then your action can differentiate the chosen submit item as follows: > if ($request->hasParameter('_dothis')) { >// do this > } elseif ($request->hasParameter('_dothat')) { >// do that > } > OF course the detailed flow depends on your exact workflow. E.g. one > may offer two submit buttons "_doThis" and "_doThisAndThat", i.e. the > latter to perform something in addition what to happen by the first > submit. Then the code in the action could be like: > if ($request->hasParameter('_dothis')) { >// do this >if ($request->hasParameter('_doThisAndThat')) { >// additionally do that >} > } > > That's how I saw it in the symfony code (namely in the admin > generator). > > Hope that helps, RAPHAEL > > > > On 13 Okt., 23:32, Parijat Kalia wrote: > > tHANKS Gareth!!! > > > > On Wed, Oct 13, 2010 at 12:08 AM, Gareth McCumskey >wrote: > > > > > > > > > In each forms class that you define set the name format for each form > > > differently. For example in a forms configure() method: > > > > > $this->widgetSchema->setNameFormat('form1[%s]'); > > > > > The second form give it a different name format. Then in the action > that > > > recieves the post: > > > > > if ($request->isMethod('post')) > > > { > > > if ($request->hasParameter('form1')) //NOTE: without the [%s] portion > > > { > > > $form1 = new Form1(); > > > $form1->bind($request->getParameter('form1')); > > > //All the other code here to process form1 > > > } > > > else if ($request->hasParameter('form2')) > > > { > > > $form2 = new Form2(); > > > $form2->bind($request->getParameter('form2')); > > > //All the other code here to process form2 > > > } > > > } > > > > > Hope that helps :) > > > > > On Wed, Oct 13, 2010 at 8:37 AM, Parijat Kalia >wrote: > > > > >> Hi everyone, > > > > >> I have a page with a form [?], and this page actually has 2 > operations > > >> possible in it. So essentially multiple buttons are required, submit > button > > >> 1 carries out function 1 of the form, submit button 2 carries out some > other > > >> task. So essentially I think the answer is 2 forms, the way I think > this can > > >> be made possible is that each button has an onsubmit javascript that > causes > > >> form.submit that causes that particular form to be posted. But how do > I > > >> retrieve this information in the actions view It is easy to tell > in the > > >> template what form is being posted. But in the action, I am not sure > how I > > >> can go about differentiating. > > > > >> Any clues fellow human beings? > > > > >> Regards, > > > > >> 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 > > > > > -- > > > Gareth McCumskey > > >http://garethmccumskey.blogspot.com > > > twitter: @garethmcc > > > > > -- > > > If you want to report a vulnerability issue on symfony, please send it > to > > > security at symfony-project.com > > > > > You received this message because you are subscribed to the Google > > > Groups "symfony users" group. > > > To post to this group, send email to symfony-users@googlegroups.com > > > To unsubscribe from this gr