Jump to content
Larry Ullman's Book Forums


  • Posts

  • Joined

  • Last visited

  • Days Won


Everything posted by Jonathon

  1. Thanks Larry, Hi Edward, I got most of it done, I need to add a way to accept payments and a decent way to search. I think Larry aims to cover these in his Yii book. So when they come out i'll tinker away. They are the main things I need to get done, then I suppose, lots of testing and sorting out of smaller things.
  2. Hi Larry, For those of us who don't have the ability to use Memcache, how does CFileCache compare. Is it worth using? Jonathon
  3. Yes I knew you'd said that was a plan. Sure the community will like it, what is the rough ETA for the chapter to be released?
  4. Hi Edward, No I've never had that problem, biggest problem I had was just making sure the initial data was passed properly to be updated.
  5. haha, yes I know what you mean. I still haven't really had a bash at 2 languages.
  6. I like the idea of it but never used it. I'll be interested to read about it for Yii2
  7. I actually don't need a currency API. I'm probably about 80% complete. At a guess.
  8. For the most part it's just navigating around pages and displaying correct models / errors etc. So I thought to use messages. But for instance I generate some categories dynamically on a page in English, I am thinking that I probably should allow for French / Spanish too.So the categories show correctly.
  9. Thanks Edward, Hadn't seen that. Other than the free translate Google button. I probably won't spend the money, it would just be nice to offer it in another language.
  10. Hi Larry, What would be the best way to achieve this (I have read the chapter in the book) but wasn't sure. I want to eventually offer an app in 2 languages with the classic click a flag and it updates the page to the new language. Most of my data will be static, so the chapter was thorough on ways to that, but I will have some dynamic titles that will need their language equivalent. Wasn't sure how to work with the dynamic database driven name changes and about the flag button? Thanks Jonathon
  11. I did look at using this too: http://www.yiiframework.com/extension/clamdscanvalidator/
  12. Yes i'd read they were based on Lucene. Nice to have some options either way!
  13. I didn't use any extensions, I built it all into the model. I used the file validator in the rules() and set the 'maxSize' 'maxFiles' 'mimeTypes'. and CUploadedFile. It's pretty much what's written in the book under common form needs.
  14. Hi Larry, I do believe I have already done all that. Thanks for letting me know your approach. Thanks Jonathon
  15. Hi Larry, I wanted to get your opinion on how to deal with sites that upload and can share media of some kind. I've currently restricted users to only being able to upload certain types of files by mime-type as shown in the book. I have the files stored in a protected directory. I then looked into virus protection, I've seen that you can use things like SiteLock that scan your systems. But I've also seem things like http://php-clamav.sourceforge.net/ that seem to scan the file as it's uploaded. I haven't looked anymore into this yet. I just wondered what your perspective on this kind of thing is and how to combat it? Thanks Jonathon
  16. There seems to be very little around for the new ZendSearch (ZF2). I'm not expecting any answers on here I just thought i'd let you know how I was getting on, which wasn't amazing. I am considering using a SOLR extension as reading around SOLR seems to be very quick where as Lucene has a tendancy to become slow (how accurate that is i do not know), but a couple of the SOLR extensions look outdated. Also came across ElasticSearch which seemed interesting, I see S/O are using it too. There's a Yii extension for it also https://github.com/tripiko/yii-elasticsearch (Seems up to date, but no docs yet for it) Anyway, thank Larry Jonathon
  17. Yes seems to be fine. So hopefully it will be useful to others. Thanks Larry Jonathon
  18. Ok, I made some progress // import zend files Yii::setPathOfAlias('ZendSearch',Yii::getPathOfAlias('application.vendors.Zend')); // include Lucene.php require_once( Yii::getPathOfAlias('ZendSearch'). '/ZendSearch/Lucene/Lucene.php'); But within the action section I think you need to access Lucene like: $index = new ZendSearch\Lucene; That says that the include paths fails. Which is right because it references it as 'vendors/Zend/Lucene' from the setPathOfAlias I imagine. When it needs to be 'vendors/Zend/ZendSearch/Lucene./Lucene.php. So I know the problem I believe but I'm unsure how to go correctly about it rather than just make a hash of it. Because I thought the require_once would avoid this problem as Lucene.php has been included. On a side note. I hear good thinks about Solr.
  19. First issue, zend doesn't seem to have the same set up now. No exception or lucene search. So I downloaded https://github.com/zendframework/ZendSearch that seemed to encompass these files and i placed them in the vendors/zend/ directory. So my structure is: vendors - zend - ZendSearch - lucene - exception Looks like Zend_Search_Lucene has now become just Lucene. Additionally I think you need to use namespaces to load it properly. I have tried: // import zend files 04 Yii::setPathOfAlias('ZendSearch',Yii::getPathOfAlias('application.vendors.Zend.ZendSearch')); 05 06 // include Lucene.php 07 require_once('Lucene/Lucene.php'); That fails for me.failed to open stream: No such file or directory But the Lucene folder is below the ZendSearch folder and Lucene.php resides within there. I made changes based on this link http://www.yiiframework.com/doc/guide/1.1/en/extension.integration
  20. I shall try and get through it soon and let you know how I get on in general and any points of confusion or further clarity in case they will be of use to you in the book.
  • Create New...