[symfony-users] Re: Add form widgets dynamically from javascript
If you know all inputs which can be added dynamicaly (and the number of them isn't infinite) then you can simply create a form with all of the inputs. Then by javascript hide them, and dynamicaly show them... On 28 kvě, 21:58, fRAnKEnSTEin wrote: > Hi, > > Luc thanks for your fast reply!. OK as i understand i do not need to > embed forms, because i do not need to "... input of data (edition or > adding new data) into multiple related objects.". What i need to do is > much simpler(i think) than that: > > **Just think, for example, that i want to create a "todo" site, so > everytime the user clicks over the "add another" link the app will > render a new textbox that will be part of the "todoForm", so you can > click the "add" link as many times you wish to create any amount of > todo's(new textboxes ), and then submit the form and save them.** > > So back to my problem, I have created one form called "stepOneForm" in > wich i have created 2 widgets( and validators form them too ) as > follows: > > class StepOneForm extends BaseForm > { > public function configure() { > $this->setWidgets(array( > 'txt_check_in' => , > 'txt_check_out' => , > )); > > $this->setValidators(array( > 'txt_check_in' => ..., > 'txt_check_out' => ..., > } // end configure > > } > > Then i have created a module called "reserve" wich has a template > called "StepOneSuccess"(and it's related action called > "executeStepOne"), that renders the widgets of the "StepOneForm" as > follows: > > method="post"> > > > > > renderError() ?> > render() ?> > > > renderError() ?> > render() ?> > > > > > +Add another room > > > > renderError() ?> > > > > Now, the above template and form("StepOneForm") does not have all the > inputs that i need to complete the process, i still need to add > "rooms", so the user can select a checkin-checkout date and then add > rooms as he/she needs to reserve. For this i have created the "add" > link, so everytime the user clicks on it, it fires an AJAX javascript > method that asks the server to create the widgets needed for entry the > room data (Note, this "room data" is not another form, they are just > widgets like "adult quantity" input, "children quantity" input and > "bed type" input, that i need to add to "steOneForm" dynamically when > the user clicks the "add" link)... > > And here is my problem: > > a) Do i need to embedForm? (the link you gave me used embedform..but i > am not sure if i need to use this) > b) How can i add dynamically new widgets to the "stepOneForm" when the > user clicks over the "add" link > c) How can i render this new widgets dynamically created into the > template > > any idea? > > Cheers, > > Shirkavand -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, 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: Jobeet Tutorial | Day 17 with sf1.4.4
I thing the error is clear ... getConnection() isn't a static method, so you can't call it with ::getConnection(), but with - >getConnection() you have to do something like Doctrine::getTable('SEO')->getConnection() or SEOTable::getInstance()->getConnection() (only in new version of Symfony .. look into your SEOTable.class.php if you have getInstance() method in it ) On 28 kvě, 10:59, Vincent UNG wrote: > Hi ! > I'm trying to include a search engine in my project with > Zend_Search_Lucene according to the day 17 of the jobeet tutorial. > I just copy/paste the code (http://www.symfony-project.org/jobeet/1_4/ > Doctrine/en/17) and replace by my model name. > > When I do this task symfony doctrine:data-load > I have an error > > PHP Strict Standards: Non-static method > Doctrine_Table::getConnection() should not be called statically, > assuming $this from incompatible context in [path_to_my_file] on line > 46 > Strict Standards: Non-static method Doctrine_Table::getConnection() > should not be called statically, assuming $this from incompatible > context in [path_to_my_file] on line 46 > > In fact, I use this in modelName.class.php : > "public function save(Doctrine_Connection $conn = null) > { > $conn = $conn ? $conn : SEOTable::getConnection(); [<-- this > is > the 46th line] > $conn->beginTransaction(); > try > { > $ret = parent::save($conn); > $this->updateLuceneIndex(); > $conn->commit(); > return $ret; > } > catch (Exception $e) > { > $conn->rollBack(); > throw $e; > } > }" > > Did I doing this wrong ? > I guess I don't have to modify Doctrine_Table model... So what can I > do ? > > Thanks for helping > Bye~~ > > Vincent -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, 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: configure getListBatchActions() in backend
Hello, Thanks for your help, I just read the document about caching and it learnt me a lot. Perharps I don't understand why in the backend the page is cached, when I see the cache.yml document there is just: default: enabled: false with_layout: false lifetime:86400 And in the modules there is no cache.yml file. So I don't know how to switch off caching from that page. All cache settings in my backend are made by the admin generator by default (I used the doctrine:generate-admin command). What I could do is copy the template _list_td_batch_action from the cache folder to backend/ modules/forum/templates and make the tests in this file, but I would prefer to do my tests in the file groupeGeneratorConfiguration. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, 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: configure getListBatchActions() in backend
What I tried to do too is clearing the cache of the backend in my frontend when the user log in. But I didn't achieve this. This was my code: class utilisateurActions extends sfActions { //... public function clearBackendCache($uri, $host) { sfContext::switchTo('backend'); //switch to the environment youw ish to clear $cache = sfContext::getInstance()->getViewCacheManager(); $this->forward404Unless($cache); if(is_array($uri)) { foreach ($uri as $value) { $result = $cache->remove($value, $host); } } else if(is_string($uri)) { $result = $cache->remove($uri, $host); } sfContext::switchTo('frontend'); //switch back to the environment you started from return $result; } public function executeLogin(sfWebRequest $request) { //... $this->clearBackendCache('forum/ index','backend.localhost'); } //... } -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, 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: configure getListBatchActions() in backend
The error in this code is that $cache is null so sfContext::getInstance()->getViewCacheManager(); doesn't return anything. And I don't know how to fix that. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, 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: method_backned
I don't see your method getTotals, so I can't tell you whats wrong. try var_dump($this->test ); and see if something is even in it... On 28 kvě, 14:57, safa boubekri wrote: > sir please > > i put in action > > public function executeIndex(sfWebRequest $request) > { > > $this->test = Doctrine_core::getTable('Cotisation')->getTotals(); } > > in template i call value test as: > > > > > but no result > > 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: prob routing whene i use ajax with symfony in edit action
You description of the problem is very poor. We can't help you What means "I use ajax" What URL? Show the exact error. On 28 kvě, 17:03, yongSymfo wrote: > helle , > i use ajax in Module form that it work good in create action but > whene i in edit action i have error and in firebug i the request url > is not correctly > if Some one have any information to resolve this. > > 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
[symfony-users] CSS and Javascript paths
I created multiple folders with an .htaccess defined for each one inside my web/ to the many apps i have. For example. http://localhost/app1 (access app1) http://localhost/app2 (access app2) http://localhost/appx (access appx) The problem now is that my CSS and JS defined on view.yml try to access the JS and CSS folders inside the web/app1, web/app2... when they are one directory back. Any idea how to resolve 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
[symfony-users] Read only/HTML form widget
Hi, This is something I quite often miss and therefore I would guess there is a solution for it. Quite often I want a field from an object shown in my form in a read only fashion. I.e the user sees the field but cannot edit it. Also, has someone created a simple widget for adding HTML elements into a form? Kind regards, Tarjei -- Regards / Med vennlig hilsen Tarjei Huse Mobil: 920 63 413 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, 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: sf 1.4: How can execute a task within another task? (tasks in a task)
sure u can: $this->commandApplication->getTask('TASKTOEXECUTE')->run(); greetz robert On May 31, 11:17 pm, Fernando Navarro Páez wrote: > Can I execute symfony build --all --no-confirmation --and-load in > MyTask? > > 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
[symfony-users] sfFacebookConnectPlugin - getCurrentFacebookUid() returns NULL
Hi there, I am trying to implement a simple Facebook connect on my website using sfFacebookConnectPlugin, Symfony 1.4 and Doctrine but I am not sure I am doing it right... Everything works fine up to the point where a guardUser is created and logged in after the user clicks the "connect with facebook" button but after that, the $sf_user->getCurrentFacebookUid() always return NULL (as well as sfFacebook::getFacebookClient()->get_loggedin_user()) the GuardUser created in the DB has a valid Facebook UID though... Am I missing something? Is it normal and should I use the FBuid stored in the db rather than get_loggedin_user()? Additional question: does the plugin provide a way to publish news feeds? I didn't find any documentation on this... 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] Re: method_backned
i add try var_dump($this->test ); but i have Undefined property: sfPHPView::$test for getTotals public function getTotals() { return $this->createQuery('c')-> SELECT('SUM(c.montant) FROM c')->execute(); } 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: sf 1.4: How can execute a task within another task? (tasks in a task)
Here's how I do it: $task = new sfDoctrineBuildTask(clone $this->dispatcher, clone $this->formatter); $task->setCommandApplication($this->commandApplication); $task->setConfiguration($this->configuration); $task->run(array(),array('all' => true, 'and-load' => true)); On Jun 1, 10:25 am, Robert Schoenthal wrote: > sure u can: > > $this->commandApplication->getTask('TASKTOEXECUTE')->run(); > > greetz > robert > > On May 31, 11:17 pm, Fernando Navarro Páez > > wrote: > > Can I execute symfony build --all --no-confirmation --and-load in > > MyTask? > > > 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
[symfony-users] Re: Read only/HTML form widget
Hi, http://snippets.symfony-project.org/snippet/387 You're welcome :) Thibault. On Jun 1, 11:16 am, Tarjei Huse wrote: > Hi, > > This is something I quite often miss and therefore I would guess there > is a solution for it. Quite often I want a field from an object shown in > my form in a read only fashion. I.e the user sees the field but cannot > edit it. > > Also, has someone created a simple widget for adding HTML elements into > a form? > > Kind regards, > Tarjei > > -- > Regards / Med vennlig hilsen > Tarjei Huse > Mobil: 920 63 413 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, 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 1.4: How can execute a task within another task? (tasks in a task)
$this->runTask($name, $arguments, $options) On Tue, Jun 1, 2010 at 3:52 PM, benlancaster wrote: > Here's how I do it: > >$task = new sfDoctrineBuildTask(clone $this->dispatcher, clone > $this->formatter); >$task->setCommandApplication($this->commandApplication); >$task->setConfiguration($this->configuration); >$task->run(array(),array('all' => true, 'and-load' => true)); > > > On Jun 1, 10:25 am, Robert Schoenthal wrote: > > sure u can: > > > > $this->commandApplication->getTask('TASKTOEXECUTE')->run(); > > > > greetz > > robert > > > > On May 31, 11:17 pm, Fernando Navarro Páez > > > > wrote: > > > Can I execute symfony build --all --no-confirmation --and-load in > > > MyTask? > > > > > 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 > -- Have a nice day! Alecs Certified ScrumMaster P.S. If you are on a list, please don't contact me privatelly, unless i have allowed to. Further messages will be ignored. There are no cannibals alive! I have ate the last one yesterday ... I am on web: http://www.alecslupu.ro/ I am on twitter: http://twitter.com/alecslupu I am on linkedIn: http://www.linkedin.com/in/alecslupu Tel: (+4)0722 621 280 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, 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] __tostring
Hello, In my database, I've a table *paiement * that contains a foreign key * id_person * that refers to a table person. I've created a module with the admin generator for each one. I've modified the *generator.yml* of my module *phone* to replace the phone type *id_person * by the nom & prenom of personne how can i get nom & person in the Id pf person in the table paimenet thank you and implemented classically the __toString() method in my model for the person class: class Personne extends BasePersonne { public function __toString() { return $this->getNom().' '.$this->getPrenom(); } } -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, 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: Read only/HTML form widget
On 06/01/2010 02:54 PM, Thibault Jouannic wrote: > Hi, > > http://snippets.symfony-project.org/snippet/387 > Jolly good! Have you asked for it's inclusion into sfForm main? IMHO it deserves to be there :) Tarjei > You're welcome :) > > Thibault. > > On Jun 1, 11:16 am, Tarjei Huse wrote: > >> Hi, >> >> This is something I quite often miss and therefore I would guess there >> is a solution for it. Quite often I want a field from an object shown in >> my form in a read only fashion. I.e the user sees the field but cannot >> edit it. >> >> Also, has someone created a simple widget for adding HTML elements into >> a form? >> >> Kind regards, >> Tarjei >> >> -- >> Regards / Med vennlig hilsen >> Tarjei Huse >> Mobil: 920 63 413 >> > -- Regards / Med vennlig hilsen Tarjei Huse Mobil: 920 63 413 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, 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: sfFacebookConnectPlugin - getCurrentFacebookUid() returns NULL
Hi Raphael, there must be some cookie issue in your application. Setting the Facebook cookies can be very tricky, especially when dealing with iframes inside the Facebook canvasin Safari. Are you sure you have published the plugin's assets ? You also should not use the outdated filters which everybody uses despite it never being mentioned in the documentation :-) Check this url to be sure you did everything correctly http://www.symfony-project.org/more-with-symfony/1_4/en/12-Developing-for-Facebook and use the latest github version : http://github.com/fabriceb/sfFacebookConnectPlugin Cheers ! Fabrice As for the publish_stream, just use the JS sdk directly. Facebook changes it every month, so there is no use abstracting it On Jun 1, 12:44 pm, Raphael wrote: > Hi there, > > I am trying to implement a simple Facebook connect on my website using > sfFacebookConnectPlugin, Symfony 1.4 and Doctrine but I am not sure I > am doing it right... > > Everything works fine up to the point where a guardUser is created and > logged in after the user clicks the "connect with facebook" button but > after that, the $sf_user->getCurrentFacebookUid() always return NULL > (as well as sfFacebook::getFacebookClient()->get_loggedin_user()) > the GuardUser created in the DB has a valid Facebook UID though... > Am I missing something? Is it normal and should I use the FBuid stored > in the db rather than get_loggedin_user()? > > Additional question: does the plugin provide a way to publish news > feeds? I didn't find any documentation on this... > > 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
[symfony-users] Re: Symfony 1.4 Alias
So at the end I can say the problem was resolved :D:D The easiest way to do what I want is written on the symfony page: http://www.symfony-project.org/book/1_2/03-Running-Symfony#chapter_03_sub_configuring_a_shared_host_server I can just say I didn't use any .htaccess file. I just changed the config/ProjectConfiguration.class.php file like it is explained. And it is working. I just thank all of you guys for help and your time :D:D:D On 1 Cze, 07:59, Gareth McCumskey wrote: > This is all easily answered by looking at the symfony documentation which has > a helpful section on setting up a symfony application on a shared web hosting > service, i.e. a service where you do not have root access to the machine > hosting the site: > > http://www.symfony-project.org/book/1_0/03-Running- > Symfony#chapter_03_sub_configuring_a_shared_host_server > > On Monday 31 May 2010 22:04:31 RedQueen wrote: > > > Ok... I really appreciate your help mr Donald. > > So answer 1) I can add alias through special menager panel for the > > hosting server. (but I dont want alias), everything what I can do with > > my serwer I have to do through this menager panel. I can use FTP > > client to upload and download files. > > 2) On my serwer I have 3 folders: cgi-bin, requetes and www. > > Everything what is in "www" folder we can se through the browser with > > the easiest URL likewww.my_page.com. Other folders are protected and > > there is no way to see the content of other folders through any > > browser. > > 3) I can upload files everywhere I want but like I said only files in > > "www" folder are visible in the browser. > > 4) I can use .htaccess > > > extra 5) I tried with .htaccess. I create .htaccess file next to "www" > > folder but didnt worked as I expected. So I moved it into "www" folder > > bot the same result. > > Content of the .htaccess file was at the first time: > > RewriteEngine on > > RewriteRule ^/$ /www/my_extra_folder/ > > > and after I moved it into www folder: > > RewriteEngine on > > RewriteRule ^/$ /my_extra_folder/ > > > And what can I say. Of course it redirect me to the "my_extra_folder" > > BUT the URL in the browser looked like this "www.my_page.com/ > > my_extra_folder". > > This mean that somebody can change the URL and get access to > > "www.my_page.com/apps/". > > > Also I wrote a mail to the company which provides hosting services for > > me but I'm sure it is to late to get the answer today. I asked about a > > way to change the root folder on the server from "www" to "www/ > > my_folder". > > > Maybe I will have to change the offer for more advanced. I have the > > cheapest offer so maybe I need something like PRO or higher. > > > I hope mr Donald we will be in contact to explain this issue to the > > end :D:D:D I understand maybe today is too late but I hope tomorow we > > will continue it. > > > If I can't do this on my server because it not allows me to change > > apache configuration maybe you will explain me how to understand this > > using localhost. > > > I have installed Wamp server on my notebook. I'm using Windows 7 x86. > > > On 31 Maj, 20:59, Donald Tyler wrote: > > > If you have no access to the Apache configuration, then I don't see how > > > you can use the symfony framework securely. You *must* be able to define > > > the web root of your virtual host for the symfony framework to be > > > secure. > > > > I'm sure there's a "hacky" way to get it to work with your setup. But you > > > really need to use a host where you can properly configure your site. The > > > "web" folder really needs to be your site root. If it's not, then your > > > going to have all kinds of security issues. > > > > To help you further with these, we are going to need more specifics on > > > your environment. We obviously know you are using apache, but: > > > > 1. What configuration options *do* you have access to. > > > 2. Do you have a single directory (your web root) that you are allowed > > > to upload files to? > > > 3. If not, what directories can you upload files to? > > > 4. Does your web host allow .htaccess overrides? > > > 5. etc.. > > > > On Mon, May 31, 2010 at 12:29 PM, RedQueen wrote: > > > > And I tried the solution number 2 from Massimiliano Arione. He said to > > > > copy the sf folder to web folder. I did it (I don't understand what > > > > for but I did it) and what? NOTHING. > > > > I still have to use URL like "www.my_page.com/web" and any stranger > > > > can change the url to "www.my_page.com/apps" and visit my private > > > > files. > > > > If I add alias I have short URL like "www.my_page:8083.com" or > > > > "www.stupid_alias.my_page.com" but on serwer I am in "web" folder. > > > > I want the same without this unnessesary alias > > > > > On 31 Maj, 19:19, RedQueen wrote: > > > > > The problem is I HAVE NO ACCESS TO APACHE.CONFIG. > > > > > And thats why I dont want the alias :D > > > > > > On 31 Maj, 19:10, Donald Tyler wrote: > > > > > > It sounds like you're jus
[symfony-users] Re: Symfony 1.4 Alias
So at the end I can say the problem was resolved :D:D The easiest way to do what I want is written on the symfony page: http://www.symfony-project.org/book/1_2/03-Running-Symfony#chapter_03_sub_configuring_a_shared_host_server I can just say I didn't use any .htaccess file. I just changed the config/ProjectConfiguration.class.php file like it is explained. And it is working. I just thank all of you guys for help and your time :D:D:D On 1 Cze, 07:59, Gareth McCumskey wrote: > This is all easily answered by looking at the symfony documentation which has > a helpful section on setting up a symfony application on a shared web hosting > service, i.e. a service where you do not have root access to the machine > hosting the site: > > http://www.symfony-project.org/book/1_0/03-Running- > Symfony#chapter_03_sub_configuring_a_shared_host_server > > On Monday 31 May 2010 22:04:31 RedQueen wrote: > > > Ok... I really appreciate your help mr Donald. > > So answer 1) I can add alias through special menager panel for the > > hosting server. (but I dont want alias), everything what I can do with > > my serwer I have to do through this menager panel. I can use FTP > > client to upload and download files. > > 2) On my serwer I have 3 folders: cgi-bin, requetes and www. > > Everything what is in "www" folder we can se through the browser with > > the easiest URL likewww.my_page.com. Other folders are protected and > > there is no way to see the content of other folders through any > > browser. > > 3) I can upload files everywhere I want but like I said only files in > > "www" folder are visible in the browser. > > 4) I can use .htaccess > > > extra 5) I tried with .htaccess. I create .htaccess file next to "www" > > folder but didnt worked as I expected. So I moved it into "www" folder > > bot the same result. > > Content of the .htaccess file was at the first time: > > RewriteEngine on > > RewriteRule ^/$ /www/my_extra_folder/ > > > and after I moved it into www folder: > > RewriteEngine on > > RewriteRule ^/$ /my_extra_folder/ > > > And what can I say. Of course it redirect me to the "my_extra_folder" > > BUT the URL in the browser looked like this "www.my_page.com/ > > my_extra_folder". > > This mean that somebody can change the URL and get access to > > "www.my_page.com/apps/". > > > Also I wrote a mail to the company which provides hosting services for > > me but I'm sure it is to late to get the answer today. I asked about a > > way to change the root folder on the server from "www" to "www/ > > my_folder". > > > Maybe I will have to change the offer for more advanced. I have the > > cheapest offer so maybe I need something like PRO or higher. > > > I hope mr Donald we will be in contact to explain this issue to the > > end :D:D:D I understand maybe today is too late but I hope tomorow we > > will continue it. > > > If I can't do this on my server because it not allows me to change > > apache configuration maybe you will explain me how to understand this > > using localhost. > > > I have installed Wamp server on my notebook. I'm using Windows 7 x86. > > > On 31 Maj, 20:59, Donald Tyler wrote: > > > If you have no access to the Apache configuration, then I don't see how > > > you can use the symfony framework securely. You *must* be able to define > > > the web root of your virtual host for the symfony framework to be > > > secure. > > > > I'm sure there's a "hacky" way to get it to work with your setup. But you > > > really need to use a host where you can properly configure your site. The > > > "web" folder really needs to be your site root. If it's not, then your > > > going to have all kinds of security issues. > > > > To help you further with these, we are going to need more specifics on > > > your environment. We obviously know you are using apache, but: > > > > 1. What configuration options *do* you have access to. > > > 2. Do you have a single directory (your web root) that you are allowed > > > to upload files to? > > > 3. If not, what directories can you upload files to? > > > 4. Does your web host allow .htaccess overrides? > > > 5. etc.. > > > > On Mon, May 31, 2010 at 12:29 PM, RedQueen wrote: > > > > And I tried the solution number 2 from Massimiliano Arione. He said to > > > > copy the sf folder to web folder. I did it (I don't understand what > > > > for but I did it) and what? NOTHING. > > > > I still have to use URL like "www.my_page.com/web" and any stranger > > > > can change the url to "www.my_page.com/apps" and visit my private > > > > files. > > > > If I add alias I have short URL like "www.my_page:8083.com" or > > > > "www.stupid_alias.my_page.com" but on serwer I am in "web" folder. > > > > I want the same without this unnessesary alias > > > > > On 31 Maj, 19:19, RedQueen wrote: > > > > > The problem is I HAVE NO ACCESS TO APACHE.CONFIG. > > > > > And thats why I dont want the alias :D > > > > > > On 31 Maj, 19:10, Donald Tyler wrote: > > > > > > It sounds like you're jus
[symfony-users] Re: Symfony 1.4 Alias
So at the end I can say the problem was resolved :D:D The easiest way to do what I want is written on the symfony page: http://www.symfony-project.org/book/1_2/03-Running-Symfony#chapter_03_sub_configuring_a_shared_host_server I can just say I didn't use any .htaccess file. I just changed the config/ProjectConfiguration.class.php file like it is explained. And it is working. I just thank all of you guys for help and your time :D:D:D On 1 Cze, 07:59, Gareth McCumskey wrote: > This is all easily answered by looking at the symfony documentation which has > a helpful section on setting up a symfony application on a shared web hosting > service, i.e. a service where you do not have root access to the machine > hosting the site: > > http://www.symfony-project.org/book/1_0/03-Running- > Symfony#chapter_03_sub_configuring_a_shared_host_server > > On Monday 31 May 2010 22:04:31 RedQueen wrote: > > > Ok... I really appreciate your help mr Donald. > > So answer 1) I can add alias through special menager panel for the > > hosting server. (but I dont want alias), everything what I can do with > > my serwer I have to do through this menager panel. I can use FTP > > client to upload and download files. > > 2) On my serwer I have 3 folders: cgi-bin, requetes and www. > > Everything what is in "www" folder we can se through the browser with > > the easiest URL likewww.my_page.com. Other folders are protected and > > there is no way to see the content of other folders through any > > browser. > > 3) I can upload files everywhere I want but like I said only files in > > "www" folder are visible in the browser. > > 4) I can use .htaccess > > > extra 5) I tried with .htaccess. I create .htaccess file next to "www" > > folder but didnt worked as I expected. So I moved it into "www" folder > > bot the same result. > > Content of the .htaccess file was at the first time: > > RewriteEngine on > > RewriteRule ^/$ /www/my_extra_folder/ > > > and after I moved it into www folder: > > RewriteEngine on > > RewriteRule ^/$ /my_extra_folder/ > > > And what can I say. Of course it redirect me to the "my_extra_folder" > > BUT the URL in the browser looked like this "www.my_page.com/ > > my_extra_folder". > > This mean that somebody can change the URL and get access to > > "www.my_page.com/apps/". > > > Also I wrote a mail to the company which provides hosting services for > > me but I'm sure it is to late to get the answer today. I asked about a > > way to change the root folder on the server from "www" to "www/ > > my_folder". > > > Maybe I will have to change the offer for more advanced. I have the > > cheapest offer so maybe I need something like PRO or higher. > > > I hope mr Donald we will be in contact to explain this issue to the > > end :D:D:D I understand maybe today is too late but I hope tomorow we > > will continue it. > > > If I can't do this on my server because it not allows me to change > > apache configuration maybe you will explain me how to understand this > > using localhost. > > > I have installed Wamp server on my notebook. I'm using Windows 7 x86. > > > On 31 Maj, 20:59, Donald Tyler wrote: > > > If you have no access to the Apache configuration, then I don't see how > > > you can use the symfony framework securely. You *must* be able to define > > > the web root of your virtual host for the symfony framework to be > > > secure. > > > > I'm sure there's a "hacky" way to get it to work with your setup. But you > > > really need to use a host where you can properly configure your site. The > > > "web" folder really needs to be your site root. If it's not, then your > > > going to have all kinds of security issues. > > > > To help you further with these, we are going to need more specifics on > > > your environment. We obviously know you are using apache, but: > > > > 1. What configuration options *do* you have access to. > > > 2. Do you have a single directory (your web root) that you are allowed > > > to upload files to? > > > 3. If not, what directories can you upload files to? > > > 4. Does your web host allow .htaccess overrides? > > > 5. etc.. > > > > On Mon, May 31, 2010 at 12:29 PM, RedQueen wrote: > > > > And I tried the solution number 2 from Massimiliano Arione. He said to > > > > copy the sf folder to web folder. I did it (I don't understand what > > > > for but I did it) and what? NOTHING. > > > > I still have to use URL like "www.my_page.com/web" and any stranger > > > > can change the url to "www.my_page.com/apps" and visit my private > > > > files. > > > > If I add alias I have short URL like "www.my_page:8083.com" or > > > > "www.stupid_alias.my_page.com" but on serwer I am in "web" folder. > > > > I want the same without this unnessesary alias > > > > > On 31 Maj, 19:19, RedQueen wrote: > > > > > The problem is I HAVE NO ACCESS TO APACHE.CONFIG. > > > > > And thats why I dont want the alias :D > > > > > > On 31 Maj, 19:10, Donald Tyler wrote: > > > > > > It sounds like you're jus
Re: [symfony-users] Re: Read only/HTML form widget
On Tue, 1 Jun 2010, Tarjei Huse wrote: > Have you asked for it's inclusion into sfForm main? IMHO it deserves to > be there :) +1 Its a nice clean solution. -- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: Symfony 1.4 Alias
On Tue, 1 Jun 2010, Gareth McCumskey wrote: > This is all easily answered by looking at the symfony documentation which has > a helpful section on setting up a symfony application on a shared web hosting > service, i.e. a service where you do not have root access to the machine > hosting the site: > > http://www.symfony-project.org/book/1_0/03-Running- > Symfony#chapter_03_sub_configuring_a_shared_host_server Those of us that have been using symfony for a few years, remember the excellent definitive guide and how to get to it. Its also great that we have it 'back' with the introduction of the gentle introduction book. BUT, its rather unfortunate that this old link has information that is no longer present in the current book. And there's no link to the old book on the current site, so only us 'oldies' know about it :-/ -- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, 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: CSS and Javascript paths
Hi! Try RewriteBase /appx In every .htaccess On 1 juin, 11:12, wueb wrote: > I created multiple folders with an .htaccess defined for each one > inside my web/ to the many apps i have. > > For example. > > http://localhost/app1(access app1)http://localhost/app2(access > app2)http://localhost/appx(access appx) > > The problem now is that my CSS and JS defined on view.yml try to > access the JS and CSS folders inside the web/app1, web/app2... when > they are one directory back. > > Any idea how to resolve 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
[symfony-users] embedded forms ans sfValidatorSchemaCompare
Hi everybody, I am facing a problem for wich I don't manage to find an answer. There is the situation: I have events and in each event I can have meetings. I have created a form wich allow my users to modify an events and its meetings all in once. My problem is: I want to control that the date for each meeting is between the beginnind and the ending date of the event they belong to. I should use sfValidatorShemaCompare but how as my values are this way: [event] (begin_date, end_date) [meetings] [0] (date) [1] (date) sfValidatorSchemaCompare use $values[leftfield] and $values[rightfield] to work. So what's the magic trick to have it work with embedded forms? (if possible) Should I do my own validator? Thanks a lot -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, 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: sf 1.4: How can execute a task within another task? (tasks in a task)
Thanks!! Too, there are information in Executing a Task inside a Task http://www.symfony-project.org/more-with-symfony/1_4/en/13-Leveraging-the-Power-of-the-Command-Line#chapter_13_executing_a_task_inside_a_task On 1 jun, 15:07, Alexandru-Emil Lupu wrote: > $this->runTask($name, $arguments, $options) > > On Tue, Jun 1, 2010 at 3:52 PM, benlancaster > wrote: > > > > > Here's how I do it: > > > $task = new sfDoctrineBuildTask(clone $this->dispatcher, clone > > $this->formatter); > > $task->setCommandApplication($this->commandApplication); > > $task->setConfiguration($this->configuration); > > $task->run(array(),array('all' => true, 'and-load' => true)); > > > On Jun 1, 10:25 am, Robert Schoenthal wrote: > > > sure u can: > > > > $this->commandApplication->getTask('TASKTOEXECUTE')->run(); > > > > greetz > > > robert > > > > On May 31, 11:17 pm, Fernando Navarro Páez > > > > wrote: > > > > Can I execute symfony build --all --no-confirmation --and-load in > > > > MyTask? > > > > > 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 > > -- > Have a nice day! > > Alecs > Certified ScrumMaster > > P.S. If you are on a list, please don't contact me privatelly, unless i have > allowed to. Further messages will be ignored. > > There are no cannibals alive! I have ate the last one yesterday ... > I am on web: http://www.alecslupu.ro/ > I am on twitter:http://twitter.com/alecslupu > I am on linkedIn:http://www.linkedin.com/in/alecslupu > Tel: (+4)0722 621 280 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, 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] Lucene-Search
Hi! I have 5 different Models that I want to be searchable. I don't know, how to implement the search right now. First thing I think of is Zend Lucene, but I read several times, that the performance is bad (cannot use the java implementation). No my question is: where is the limit of Zend Lucene? I expect about 1000-10.000 records per Model and a maximum of 100 search-requests per minute. (probably 1-10 per minute average) Can Zend Lucene handle that amount? Is there an other (PHP-)library that I could do the searching with, if Lucene is to slow? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, 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] Lucene-Search
Hi, 2010/6/1 comb : > Hi! > > I have 5 different Models that I want to be searchable. > I don't know, how to implement the search right now. First thing I > think of is Zend Lucene, but I read several times, that the > performance is bad (cannot use the java implementation). Performance is bad if you do this like in symfony tutorial. I noticed that when I run optimize() after each insert I get _really_ good performance. (Don't know why, but running optimize after several inserts doesn't do the trick) > > No my question is: where is the limit of Zend Lucene? I expect about > 1000-10.000 records per Model and a maximum of 100 search-requests per > minute. (probably 1-10 per minute average) > Can Zend Lucene handle that amount? > > Is there an other (PHP-)library that I could do the searching with, if > Lucene is to slow? Sphinx. Regards, Michal -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] How to use multi-dim choices in a double list!
I installed the very nice form-extra plugin for the double list feature. However, I noticed it didn't preselect values properly when your choices are represented by a multi-dimensional array (for organization). This is basically because the double list widget does not recursively read your choices array. I found a function in the php documentation comments designed to flatten an array, and doing this to your choices array for the widget works like a charm. Simply call the function in the double list plugin widget around line 114, right before the foreach loop, feeding your flattened array instead of your original one. Here is the semi-compressed function: function array_flatten($a, $f = array()) { if (!$a || !is_array($a)) return ''; foreach ($a as $k=>$v) { if (is_array($v)) $f = array_flatten($v, $f); else $f[$k] = $v; } return $f; } Now you can chunk up your choices to your hearts content and still use the double list feature. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, 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: Lucene-Search
Lucene is not slow, only the Zend PHP re-implementation of the Lucene file format + search. In my opinion it's close to unusable for real life scenarios (large data set, fast indexing ...). It probably would work ok for a small dataset such as < 1. I recomend Solr as alternative which is Java Lucene service + XML API for access (and much more). As for the search part you need to define your exact document model, the basic entity used in search is the document that has several properties. There is usually one field to be used for full text search and several other fields that you use for structured search (e.g. date, tags). gabriel On Jun 1, 8:13 pm, comb wrote: > Hi! > > I have 5 different Models that I want to be searchable. > I don't know, how to implement the search right now. First thing I > think of is Zend Lucene, but I read several times, that the > performance is bad (cannot use the java implementation). > > No my question is: where is the limit of Zend Lucene? I expect about > 1000-10.000 records per Model and a maximum of 100 search-requests per > minute. (probably 1-10 per minute average) > Can Zend Lucene handle that amount? > > Is there an other (PHP-)library that I could do the searching with, if > Lucene is to slow? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, 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] __tostring
Find the "alias" that you are using to reference those 2 models, and just do a plain __toString in your *paiement table Like class paiment extends BasePaiment { public function __toString() { return $this->getPerson()->__toString(); } } * On Tue, Jun 1, 2010 at 4:39 PM, safa boubekri wrote: > Hello, > > In my database, I've a table *paiement * that contains a foreign key * > id_person * that refers to a table person. > > I've created a module with the admin generator for each one. I've modified > the *generator.yml* of my module *phone* to replace the phone type *id_person > * by the nom & prenom of personne > > how can i get nom & person in the Id pf person in the table paimenet > > thank you > > > > and implemented classically the __toString() method in my model for the > person class: > > class Personne extends BasePersonne > { > > > public function __toString() > { > return $this->getNom().' '.$this->getPrenom(); > } > } > > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, 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! Alecs Certified ScrumMaster P.S. If you are on a list, please don't contact me privatelly, unless i have allowed to. Further messages will be ignored. There are no cannibals alive! I have ate the last one yesterday ... I am on web: http://www.alecslupu.ro/ I am on twitter: http://twitter.com/alecslupu I am on linkedIn: http://www.linkedin.com/in/alecslupu Tel: (+4)0722 621 280 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, 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: Lucene-Search
@Michał Piotrowski: Thanks for the tipp! :-) @pghoratiu: Yeah I know about Solr, but I cannot use it, like I wrote in the first post :-( Is there an alternative PHP-Search-Engine to Zend Lucene? On 1 Jun., 21:53, pghoratiu wrote: > Lucene is not slow, only the Zend PHP re-implementation of the Lucene > file format + search. > In my opinion it's close to unusable for real life scenarios (large > data set, fast indexing ...). > It probably would work ok for a small dataset such as < 1. > > I recomend Solr as alternative which is Java Lucene service + XML API > for access (and much more). > > As for the search part you need to define your exact document model, > the basic entity used in search is the document > that has several properties. There is usually one field to be used for > full text search and several other fields that > you use for structured search (e.g. date, tags). > > gabriel > > On Jun 1, 8:13 pm, comb wrote: > > > Hi! > > > I have 5 different Models that I want to be searchable. > > I don't know, how to implement the search right now. First thing I > > think of is Zend Lucene, but I read several times, that the > > performance is bad (cannot use the java implementation). > > > No my question is: where is the limit of Zend Lucene? I expect about > > 1000-10.000 records per Model and a maximum of 100 search-requests per > > minute. (probably 1-10 per minute average) > > Can Zend Lucene handle that amount? > > > Is there an other (PHP-)library that I could do the searching with, if > > Lucene is to slow? > > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, 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] __tostring
On Tue, 1 Jun 2010, Alexandru-Emil Lupu wrote: > Find the "alias" that you are using to reference those 2 models, and just do > a plain __toString in your *paiement table > > Like > class paiment extends BasePaiment > { > public function __toString() > { > return $this->getPerson()->__toString(); > } > } Shouldn't __toString() get invoked automagically if you try to echo/print getPerson() ? Its a magic method right? -- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, 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: Read only/HTML form widget
Hi again, after looking further on the issue, I ended up with a widget that does this. See: http://trac.symfony-project.org/attachment/ticket/8726/sfWidgetFormDiv.class.php On 06/01/2010 03:41 PM, Tarjei Huse wrote: > On 06/01/2010 02:54 PM, Thibault Jouannic wrote: > >> Hi, >> >> http://snippets.symfony-project.org/snippet/387 >> >> > Jolly good! > > Have you asked for it's inclusion into sfForm main? IMHO it deserves to > be there :) > Tarjei > >> You're welcome :) >> >> Thibault. >> >> On Jun 1, 11:16 am, Tarjei Huse wrote: >> >> >>> Hi, >>> >>> This is something I quite often miss and therefore I would guess there >>> is a solution for it. Quite often I want a field from an object shown in >>> my form in a read only fashion. I.e the user sees the field but cannot >>> edit it. >>> >>> Also, has someone created a simple widget for adding HTML elements into >>> a form? >>> >>> Kind regards, >>> Tarjei >>> >>> -- >>> Regards / Med vennlig hilsen >>> Tarjei Huse >>> Mobil: 920 63 413 >>> >>> >> >> > > -- Regards / Med vennlig hilsen Tarjei Huse Mobil: 920 63 413 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, 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: CSS and Javascript paths
On Tue, 1 Jun 2010, Florian wrote: > Hi! > > Try > > RewriteBase /appx > > In every .htaccess Probably not for an app who's front controller is in web, maybe only the web/appsx folders. Also be aware that htaccess rules in effect in the folder in which they are defined AND any subfolders - so if you have any special rules in web's htaccess file you might need to explicitly cancel them out first for htaccess files in subfolders. -- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, 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] combining functional and unit tests?
I have written a functional test that tests my site's registration flow. At the end of the test, I am calling my account peer and using lime to test that the account that was just registered is all in the database correctly. The test runs great if I run it by itself ("test:functional frontend registrationActions"), but it gives me an error if I run all functional tests together ("test:functional frontend"). It doesn't like the additional tests that I am doing with just lime. Here's the error I get when running all functional tests together: registrationActionsTest...# Looks like you planned 21 test but ran 11 extra. registrationActionsTest..dubious But running it by itself, I get this (I have 21 functional tests and 11 lime tests): ok 11 - cc type matches Looks like everything went fine. 1..21 Looks like everything went fine. What's the correct way of doing this? Here's what I'm currently doing: goToHomepage() // do some other tests (21 total) ->with('response')->begin() ->isRedirected() ->followRedirect() ->end() ->testThisIsHomepage('/Your account has been created/') ; // now do the testing directly from the db: $t = new lime_test(11, new lime_output_color()); $user = UserPeer::findByUsername($username); $acct = $user->getAccount(); $t->is($user->getUsername(), $expectedUsername, 'username matches'); // do some more tests $t->is($acct->getCreditCard()->getType(), 'MC', 'cc type matches'); Thanks in advance! Jeremy Thomerson -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, 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: combining functional and unit tests?
Never mind - I think I figured it out. Instead of creating a new lime test like I was doing: $t = new lime_test(11, new lime_output_color()); I should continue using the test that the functional test was using: $t = $browser->test(); Best regards, Jeremy Thomerson On Tue, Jun 1, 2010 at 5:18 PM, Jeremy Thomerson wrote: > I have written a functional test that tests my site's registration flow. > At the end of the test, I am calling my account peer and using lime to test > that the account that was just registered is all in the database correctly. > The test runs great if I run it by itself ("test:functional frontend > registrationActions"), but it gives me an error if I run all functional > tests together ("test:functional frontend"). It doesn't like the additional > tests that I am doing with just lime. > > Here's the error I get when running all functional tests together: > registrationActionsTest...# > Looks like you planned 21 test but ran 11 extra. > > registrationActionsTest..dubious > > But running it by itself, I get this (I have 21 functional tests and 11 > lime tests): > ok 11 - cc type matches > Looks like everything went fine. > 1..21 > Looks like everything went fine. > > What's the correct way of doing this? > > Here's what I'm currently doing: > include(dirname(__FILE__).'/../../bootstrap/functional.php'); > $browser = new MyCompanyFunctionalTest(new sfBrowser()); > > $browser > ->goToHomepage() > // do some other tests (21 total) > > ->with('response')->begin() > ->isRedirected() > ->followRedirect() > ->end() > ->testThisIsHomepage('/Your account has been created/') > ; > > // now do the testing directly from the db: > $t = new lime_test(11, new lime_output_color()); > $user = UserPeer::findByUsername($username); > $acct = $user->getAccount(); > > $t->is($user->getUsername(), $expectedUsername, 'username matches'); > // do some more tests > $t->is($acct->getCreditCard()->getType(), 'MC', 'cc type matches'); > > Thanks in advance! > > Jeremy Thomerson > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, 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: Lucene-Search
Sphinx is the best full text search that I have ever used. You need to have enough permissions to compile/install a program running as a daemon though. Sphinx is very fast, not language or database specific and has flexible configuration options, technically speaking, you don't even have to use a database, sphinx works with other formats as well. I personally like the ability to have a main + delta setup so that I don't have to re-index a single huge index everytime. Sphinx has been tested to perform well on 1,000,000+ row datasets and is used by some very large websites/companies. The php connector to sphinx is also very well written, making sphinx easy to use with php. The author of sphinx is also very active on the forums and regularly helps users solve problems. http://www.sphinxsearch.com HTH, Casey Cambra On Jun 1, 2:06 pm, comb wrote: > @Michał Piotrowski: Thanks for the tipp! :-) > > @pghoratiu: Yeah I know about Solr, but I cannot use it, like I wrote > in the first post :-( > > Is there an alternative PHP-Search-Engine to Zend Lucene? > > On 1 Jun., 21:53, pghoratiu wrote: > > > > > Lucene is not slow, only the Zend PHP re-implementation of the Lucene > > file format + search. > > In my opinion it's close to unusable for real life scenarios (large > > data set, fast indexing ...). > > It probably would work ok for a small dataset such as < 1. > > > I recomend Solr as alternative which is Java Lucene service + XML API > > for access (and much more). > > > As for the search part you need to define your exact document model, > > the basic entity used in search is the document > > that has several properties. There is usually one field to be used for > > full text search and several other fields that > > you use for structured search (e.g. date, tags). > > > gabriel > > > On Jun 1, 8:13 pm, comb wrote: > > > > Hi! > > > > I have 5 different Models that I want to be searchable. > > > I don't know, how to implement the search right now. First thing I > > > think of is Zend Lucene, but I read several times, that the > > > performance is bad (cannot use the java implementation). > > > > No my question is: where is the limit of Zend Lucene? I expect about > > > 1000-10.000 records per Model and a maximum of 100 search-requests per > > > minute. (probably 1-10 per minute average) > > > Can Zend Lucene handle that amount? > > > > Is there an other (PHP-)library that I could do the searching with, if > > > Lucene is to slow? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, 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] __tostring
i modify paiment *class paiment extends BasePaiment { public function __toString() { return $this->getPerson()->__toString(); }* * * *but the id_person is style number* * * *thak 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: Lucene-Search
> @pghoratiu: Yeah I know about Solr, but I cannot use it, like I wrote > in the first post :-( > > Is there an alternative PHP-Search-Engine to Zend Lucene? Sphinx is a good alternative, I did not use it personally but my colleagues have and they are content with it. It very much depends on what exactly you try to accomplish, maybe the in-database search is enough for you if you have a small data set and have no special requirements for the free text search part. If this is the case you may consider also: - MySQL Free text search. - Doctrine Searchable behavio gabriel > On 1 Jun., 21:53, pghoratiu wrote: > > > > > Lucene is not slow, only the Zend PHP re-implementation of the Lucene > > file format + search. > > In my opinion it's close to unusable for real life scenarios (large > > data set, fast indexing ...). > > It probably would work ok for a small dataset such as < 1. > > > I recomend Solr as alternative which is Java Lucene service + XML API > > for access (and much more). > > > As for the search part you need to define your exact document model, > > the basic entity used in search is the document > > that has several properties. There is usually one field to be used for > > full text search and several other fields that > > you use for structured search (e.g. date, tags). > > > gabriel > > > On Jun 1, 8:13 pm, comb wrote: > > > > Hi! > > > > I have 5 different Models that I want to be searchable. > > > I don't know, how to implement the search right now. First thing I > > > think of is Zend Lucene, but I read several times, that the > > > performance is bad (cannot use the java implementation). > > > > No my question is: where is the limit of Zend Lucene? I expect about > > > 1000-10.000 records per Model and a maximum of 100 search-requests per > > > minute. (probably 1-10 per minute average) > > > Can Zend Lucene handle that amount? > > > > Is there an other (PHP-)library that I could do the searching with, if > > > Lucene is to slow? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] how to deal with pagination?
hi guys! i'm just new to symfony. i can already list data from my database but now needs to be paginated. hope you can help me! thanks!!! my routing.yml list_laptops_by_popularity: url: /laptop/list-by-popularity param: { module: laptop, action: listByPopularity } class: sfDoctrineRoute options: { model: Laptop, type: object } this is from my action: public function executeListByPopularity(sfWebRequest $request) { $this->laptops = Doctrine::getTable('Laptops')- >getPopularLaptops(); } this is for my template(output) brand; } ?> -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] how to deal with pagination?
Am 02.06.2010 08:22, schrieb mel_06: > hi guys! > > i'm just new to symfony. i can already list data from my database but > now needs to be paginated. > > hope you can help me! thanks!!! > Did you read the "Practical Symfony" Howto? It seems not, because theres Pagination in an example: http://www.symfony-project.org/jobeet/1_4/Doctrine/en/07 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en