Re: [fw-general] Using Apache .htaccess for a specific controller
On 5/14/07, Ralph Schindler <[EMAIL PROTECTED]> wrote: Perhaps you want to do it within your application? I have not used it, but this component: http://framework.zend.com/manual/en/zend.auth.adapter.http.html does Http based authentication. You could either implement as a controller plugin, or implement inside a class and call it from your action controllers predispatch or init() methods. Just an idea, -ralph That sounds like it could meet what I need. Nothing fancy. -- Chris Hartjes My motto for 2007: "Just build it, damnit!" @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard
[fw-general] Using Apache .htaccess for a specific controller
I need to protect a specific controller in my ZF app with an Apache-passed login/password combo. Any tips on how to do this? -- Chris Hartjes My motto for 2007: "Just build it, damnit!" @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard
Re: [fw-general] TinyMCE, jQuery and ZF
Thank you all for your great help and suggestions. I'm going to try FCKEditor and make sure to put that .htaccess file in there so that the rewrite engine doesn't mess things up. Thanks again. -- Chris Hartjes My motto for 2007: "Just build it, damnit!" @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard
Re: [fw-general] TinyMCE, jQuery and ZF
On 5/8/07, Maurice Fonk <[EMAIL PROTECTED]> wrote: Could you tell us what exactly goes wrong? TinyMCE can be kind of hard to get to work correctly in the first place. Getting it to initialize dynamically (After an Ajax call) is even more difficult. But I don't think this is the right place to discuss that. What is the exact problem you're having? Lots off "tinyMCE not found" errors being reported, and an overall lack of coherent instructions directly related to my problem. You're probably right, this isn't the right place to discuss it. -- Chris Hartjes My motto for 2007: "Just build it, damnit!" @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard
[fw-general] TinyMCE, jQuery and ZF
I was wondering if anyone out there has had any luck getting TinyMCE to work properly using jQuery and Ajax within ZF. I'm basically trying to use some Ajax techniques to dynamically display a form with a TinyMCE instance in it. Can't seem to get it to work properly, and are having a hard time figuring out where to load the TinyMCE stuff, and where the TinyMCE initialization goes, etc. Haven't been able to find much help with google (points to a plugin that seems to no longer exist). Any help would be appreciated. -- Chris Hartjes My motto for 2007: "Just build it, damnit!" @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard
Re: [fw-general] Implementing complex Views with ZF
On 4/30/07, Cristian Bichis <[EMAIL PROTECTED]> wrote: I personally just wait to see some commercial applications used now by all the world (as a vBulletin, or WordPress, aso) but based on ZF... I laughed out loud when I read that. vBulletin and WordPress started out as forks of other projects, and they grew organically from them. It will take years before an app built on ZF gets to that level of acceptance. I never understood the "I want to wait until I see something incredibly useful built with " attitude towards evaluation. It never happens that way. -- Chris Hartjes My motto for 2007: "Just build it, damnit!" @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard
Re: [fw-general] Implementing complex Views with ZF
On 4/30/07, Cristian Bichis <[EMAIL PROTECTED]> wrote: I am not complaining, but after rewriting lot of stuffs i feel ZF is very usefull on some sides and not very usefull on other sides :) I mean if for some standard cases (as you saw Padraic Brady posts on http://blog.astrumfutura.com/archives/281-Complex-Web-Pages-with-the-Zend-Framework.html), nothing fancy, are needed lot workarounds... I'm wondering if a lot of what is bothering people about complex web pages couldn't simply be done as custom routes? Just thinking out loud, mind you... -- Chris Hartjes My motto for 2007: "Just build it, damnit!" @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard
Re: [fw-general] Implementing complex Views with ZF
On 4/30/07, Cristian Bichis <[EMAIL PROTECTED]> wrote: - for complex sites developer needs to adapt ZF to a more complex format instead just doing his job I'm going to get a bit abstract here, so bear with me. When you use a framework, there is a cost associated with that. The cost is usually "you have to do things the way I'm expecting them". If a developer prefers to fight the framework instead of working with the rules it has laid out, then there will obviously be problems. I would classify what you are doing as "fighting against the framework" because you are clearly trying to do something that the framework does not support given the architecture you have chosen for your application. The big question is this: how many OTHER people need what you say you need or is what you are trying to do a big edge case? I'm a firm believer that in 99.999% of all cases a problem fitting an application to a framework is due to the architecture of the application, not the framework. This is the point where egos get bruised because people want to blame tools, not themselves. I am guilty of this just as much as the next guy and now work very hard to build an application with the framework I am using in mind. Nothing makes code "smell" like having to rewrite core functionality of a framework that appears to be serving a large number of people with no problems. Maybe they just don't speak up like I do. :) I'd love to be proven wrong so I don't feel so strongly about it despite my own personal experiences. -- Chris Hartjes My motto for 2007: "Just build it, damnit!" @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard
Re: [fw-general] Implementing complex Views with ZF
On 4/30/07, Cristian Bichis <[EMAIL PROTECTED]> wrote: I already posted some time - in various forums/list - ago this problems raised by working on big sites (with complex views). And problems are far more complicated, basically the entire Controller, Action, View side of ZF is not designed for some "real" sites. Well, what you're talking about is criticism and that's okay. That's the heart of open source. It sounds to my uneducated ear that what you're talking about is an architectural problem with an application and not a problem with ZF. Your solution sounds very custom and not transferable across other applications. I absolutely, 100% disagree with your assertion that an MVC framework cannot work on a "real" site, whatever the hell that is. The application needs to work with the framework, not the other way around. If you are trying to shoehorn what you THINK is an MVC app is supposed to be like with the way ZF is expecting things to be, well, you'd better change your thinking. Your idea of using zones is an interesting one, but why couldn't you just have one controller per zone? Am I missing something here or do you really think your needs are so unique you can't use ZF? -- Chris Hartjes My motto for 2007: "Just build it, damnit!" @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard
Re: [fw-general] back end cache file naming
On 4/25/07, Chris Hartjes <[EMAIL PROTECTED]> wrote: On 4/25/07, frosty1 <[EMAIL PROTECTED]> wrote: > > i want to cache a number of large queries. i tried stripping the tags from > the sql to use as a name, but it must have been too long. any suggestions > on how to dynamically name them? Use PHP's uniqid() function. Duh. I didn't read it carefully. :) I would use an MD5 based on the SQL string itself, provided that isn't too long a key. I haven't used ZendCache at all -- Chris Hartjes My motto for 2007: "Just build it, damnit!" @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard
Re: [fw-general] back end cache file naming
On 4/25/07, frosty1 <[EMAIL PROTECTED]> wrote: i want to cache a number of large queries. i tried stripping the tags from the sql to use as a name, but it must have been too long. any suggestions on how to dynamically name them? Use PHP's uniqid() function. -- Chris Hartjes My motto for 2007: "Just build it, damnit!" @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard
Fwd: [fw-general] Action files
On 4/20/07, agatone <[EMAIL PROTECTED]> wrote: So at all this actions file could easily have 500+ lines, what is (in my oponion) very bad. Wouldn't be easier if actions could be in separate files - more simple structure ... ? I'm a big believer in the "fat model, thin controller" architecture for an MVC app. As others have suggested, try refactoring your code so your models do all the work of manipulating the data before passing it onto your small and elegant controllers. Hope that helps. -- Chris Hartjes My motto for 2007: "Just build it, damnit!" @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard
Re: [fw-general] Getting ZF to work in a sub-directory
On 4/16/07, Philippe Le Van <[EMAIL PROTECTED]> wrote: Hi Chris, I believe it should be RewriteRule ^(.*)$ /api/index.php [QSA,L] (but I didn't look for the meaning of all your flags ! ) It turns out it was the rewrite rule after all. I fixed it up (went with something really simple) and it seems to have done the trick. Thanks for the help! -- Chris Hartjes My motto for 2007: "Just build it, damnit!" @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard
[fw-general] Getting ZF to work in a sub-directory
I feel like an idiot for asking help here, but I am stumped as to a configuration issue to get ZF working in a subdirectory off a virtual host. Here's the story: I have my virtual host chris.example.com I want to run ZF under the following URL chris.example.com/api/ In the virtual hosts configuration for Apache (I'm running Apache 2) I've done the following: DocumentRoot /home/chris/chris.example.com/ ServerName chris.example.com ErrorLog logs/chris.example.com-error_log CustomLog logs/chris.example.com-access_log combined SetEnv ZF_CONF staging AllowOverride All Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec Order allow,deny Allow from all Alias /api/ /home/chris/chris.example.com/api/public/ AllowOverride All Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec Order allow,deny Allow from all In my .htaccess file in public, I've done the following: RewriteEngine on # all files with .something are skipped RewriteBase /api/ RewriteCond %{REQUEST_URI} \..+$ RewriteCond %{REQUEST_URI} !\.html$ RewriteRule .* - [L] # the others are redirected to the dispatcher RewriteRule ^(.*)$ index.php [QSA,L] Now, if I go to chris/example.com/api I get my 'index' action in my 'index' controller, which is what I expect. But when I try anything else, I get a 404. Obviously I'm missing something simple here, but google has not helped me find it. Any thoughts or suggestions would be greatly appreciated. -- Chris Hartjes My motto for 2007: "Just build it, damnit!" @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard
Re: [fw-general] Re: Zend_Config question
On 3/29/07, Matthew Ratzloff <[EMAIL PROTECTED]> wrote: A better solution would be to rename Zend_Config to Zend_Config_Array, which is a better description of what it does. Then make Zend_Config a top-level configuration loading class that auto-detects the appropriate adapter for any given file based on extension, loads all files in a given set of directories, and merges them as necessary. -Matt That is *exactly* what I would require. Nicely done. -- Chris Hartjes My motto for 2007: "Just build it, damnit!" rallyhat.com - digital photo scavenger hunt @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard
[fw-general] Re: Zend_Config question
If a Zend_Config_Loader component can do some sort of wild card loading, that would perfectly meet my needs. :) Thanks for the quick responses. On 3/29/07, Rob Allen <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Hartjes wrote: > Well, the two cases are different. This proposal talks about merging > two config files together where you already know the names of the > configuration files. > Yes. I agree. > I'm looking for the ability to load a number of smaller configuration > files without having to actually worry what they are actually called. My initial instinct that this would add too much complexity to and exceed the responsibily of Zend_Config_Ini which has a one-to-one relationship with an ini file. The obvious solutions are to use some userland code to load each one separately and then merge. Alternatively, if there there is a lot of requirement for this sort of loading of configuration files, then maybe a Zend_Config_Loader class would make sense? Regards, Rob... -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGDAwC421+qn4cITwRAvd4AJ9LDA3SUwdKd/G1Hs5UCRsix0L+YgCfRTT7 pmLbWo4epL0UPTgTLgiCerM= =MDu+ -END PGP SIGNATURE- -- Chris Hartjes My motto for 2007: "Just build it, damnit!" rallyhat.com - digital photo scavenger hunt @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard
[fw-general] Re: Zend_Config question
Well, the two cases are different. This proposal talks about merging two config files together where you already know the names of the configuration files. I'm looking for the ability to load a number of smaller configuration files without having to actually worry what they are actually called. If the person who is maintaining Zend_Config wants to contact me, I might be able to get some support from my boss to fund this change... :) On 3/29/07, Darby Felton <[EMAIL PROTECTED]> wrote: Hi Chris, Maybe you would like to comment on ZF-988? http://framework.zend.com/issues/browse/ZF-998 Though your use case may not be quite the same, I believe there is some overlap where we consider merging configurations. Thanks for the feedback! Best regards, Darby Chris Hartjes wrote: > I was wondering if it is possible with Zend_Config to do Apache-style > loading of configuration files. By this, I mean is it possible to > have a directive in a Zend_Config_Ini file that says "load any .ini > files that are in directory X", much like how you can ask Apache2 to > load any configuration files in a specific directory. > > Right now I have a layout like this: > > project/application/config/config.ini > > what I'd like is to be able to do the following > > project/application/config/global_config.ini (used by multiple > projects, doesn't change) > project/application/config/project/config.ini (project-specific > config, will be very different) > > The goal is to make configuration follow a DRY principle. By some > judicious use of svn externals, I will only ever have to edit the > project-specific config.ini file while the global_config.ini file only > has to be maintained in one spot. > > Hopefully I've explained this properly. > -- Chris Hartjes My motto for 2007: "Just build it, damnit!" rallyhat.com - digital photo scavenger hunt @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard
[fw-general] Zend_Config question
I was wondering if it is possible with Zend_Config to do Apache-style loading of configuration files. By this, I mean is it possible to have a directive in a Zend_Config_Ini file that says "load any .ini files that are in directory X", much like how you can ask Apache2 to load any configuration files in a specific directory. Right now I have a layout like this: project/application/config/config.ini what I'd like is to be able to do the following project/application/config/global_config.ini (used by multiple projects, doesn't change) project/application/config/project/config.ini (project-specific config, will be very different) The goal is to make configuration follow a DRY principle. By some judicious use of svn externals, I will only ever have to edit the project-specific config.ini file while the global_config.ini file only has to be maintained in one spot. Hopefully I've explained this properly. -- Chris Hartjes My motto for 2007: "Just build it, damnit!" rallyhat.com - digital photo scavenger hunt @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard
Re: [fw-general] Building RESTful web services with ZF
On 3/14/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi Chris, My tutorial is still online at http://blog.astrumfutura.com/archives/245-RESTful-Web-Services-with-Zend-Framework.html Since I moved domains I managed to get the Serendipity plugin order for posts wrong so you'll have to forgive some of the malformed markup. Davey also made some mailing list posts around the date of this entry which you should also check since he answered a few of my questions about usage, particularly in handling method calls. Keep in mind this was written quite some time ago ;). Thanks very much Padraic! -- Chris Hartjes My motto for 2007: "Just build it, damnit!" rallyhat.com - digital photo scavenger hunt @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard
Re: [fw-general] Building RESTful web services with ZF
On 3/14/07, Davey Shafik <[EMAIL PROTECTED]> wrote: Chris, Have you checked out the manual? It covers Zend_Rest_Server pretty well: http://framework.zend.com/manual/en/zend.rest.server.html I did...and I wonder if I am confusing REST with other web services. Check out this article (yes, I know it's not a PHP one) to see what I'm talking about: http://www.therailsway.com/2007/2/13/signout-part-1 It deals with creating RESTful interfaces. Perhaps Zend_Rest_Server isn't what I need here, instead I just need to create controller / action pairs that spit out XML as their response? -- Chris Hartjes My motto for 2007: "Just build it, damnit!" rallyhat.com - digital photo scavenger hunt @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard
[fw-general] Building RESTful web services with ZF
I was googling around looking for some tutorials on implementing REST web services with ZF and found that Pádraic Brady's tutorial has disappeared off the web. Anyone have an archived copy kicking around they could share? -- Chris Hartjes My motto for 2007: "Just build it, damnit!" rallyhat.com - digital photo scavenger hunt @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard
[fw-general] Hooking your unit tests into the overall structure
This is probably a very stupid question that I have been unable to find the answers for, so feel free to educate me and point out where I went wrong. I'm trying to get Zend_Service_Audioscrobbler included in 0.9.0, and it's 99% there. The last thing I need to do is get my unit tests "hooked in" to the unit tests for the entire framework. How do I do that? Any help is greatly appreciated. -- Chris Hartjes My motto for 2007: "Just build it, damnit!" rallyhat.com - digital photo scavenger hunt @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard
Re: [fw-general] Properly handling non-XML results via Zend_Rest_Client
On 3/5/07, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: -- Chris Hartjes <[EMAIL PROTECTED]> wrote When I did Zend_Service_Akismet, I simply didn't use Zend_Rest_Client -- the architecture of that component is XML-centric, and doesn't lend itself to non-XML REST services. You can take a look at the code I wrote for Zend_Service_Akismet if you need ideas -- basically, I just send data using Zend_Http_Client, and parse the response. After seeing Davey's response as well (thanks Davey) I think that's the best way to handle it. Thanks to everyone for their help. -- Chris Hartjes My motto for 2007: "Just build it, damnit!" rallyhat.com - digital photo scavenger hunt @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard
Re: [fw-general] Bug or feature ?
On 3/5/07, Olivier <[EMAIL PROTECTED]> wrote: No, I don't know any other framework that supports thisBTW I have not looked for this feature is the others framework I checked in the pastIt is the first time I need to do something like this... But I am not sure to understand why this feature would complicate everything? From my point of view it's just a principle to define In one hand one supposes that encoutering the same key equals to an array parameter whereas in the other hand one suppose that encoutering the same key should not happens and simply ignores it (as this is the case in the current router implementation). Okay, but my point still remains on how you would determine it's the same key? /foo/bar/foo/baz What if the second foo is NOT supposed to be the key? Just sayin' -- Chris Hartjes My motto for 2007: "Just build it, damnit!" rallyhat.com - digital photo scavenger hunt @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard
Re: [fw-general] Bug or feature ?
On 3/5/07, Olivier <[EMAIL PROTECTED]> wrote: I want the cleaner and the more readable url possible and serializing my parameters into one single string is not an acceptable solutionI might be wrong but I think something like "/tag/zend/tag/framework" is somewhat cleaner than something like "/tag/zend-framework" because in this case you simply can't know that there is two tags and not one. Ah, I understand. Well, I don't think I've ever come across any framework that lets you build a URL in the way you are suggesting. Sounds like you will need some sort of custom URL processor, and I suspect that is beyond the scope of the current router. It has to follow a certain set of rules, and I think what you are suggesting would make for some very complicated code. How would you know when you are actually using the same key and not just passing more parameters to be processed? It could get very tricky and personally I think it's not worth the effort for such an extreme edge case. Have you come across any other framework that supports this? -- Chris Hartjes My motto for 2007: "Just build it, damnit!" rallyhat.com - digital photo scavenger hunt @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard
Re: [fw-general] Bug or feature ?
On 3/5/07, Olivier <[EMAIL PROTECTED]> wrote: You did not understand me. I want the route to generate an array when a parameter is parsed more than one time. In others words, "/key/value1/key/value" should returns an array like this when _getAllParams is called: array ( 'key' => array ( 'value1', 'value2' ) ) I'm curious as to why you need this feature? Could you not generate the array before hand and then serialize it as a parameter? -- Chris Hartjes My motto for 2007: "Just build it, damnit!" rallyhat.com - digital photo scavenger hunt @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard
[fw-general] Properly handling non-XML results via Zend_Rest_Client
I'm busy converting my use of Zend_Service_Rest to Zend_Rest_Client for my Audioscrobbler component, and I'm noticing that I'm getting a lot of warnings when non-XML data is coming back from the REST request. Any tips on handling these warnings? Audioscrobbler doesn't always return an XML response. -- Chris Hartjes My motto for 2007: "Just build it, damnit!" rallyhat.com - digital photo scavenger hunt @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard
[fw-general] Tips on switching from Zend_Service_Rest to..what exactly?
In my mad scramble to get Zend_Service_Audioscrobbler ready for 0.90 (and hopefully 1.0) I have to switch code out from using Zend_Service_Rest to Zend_Rest_Client. Roadblock right from the start. :( I'm getting the following error when simply trying to create an instantiation of Zend_Rest_Client verticalmambo:/Volumes/snowhite/chartjes/zf/incubator/tests/Zend/Service/Audioscrobbler chartjes$ phpunit AllTests.php PHPUnit 3.0.0beta4 by Sebastian Bergmann. Fatal error: Call to undefined method Zend_Filter::ishostname() in /Volumes/snowhite/chartjes/zf/library/Zend/Uri/Http.php on line 338 Call Stack: 0.0006 1. {main}() /usr/local/php5/bin/phpunit:0 0.0028 2. require('/usr/local/php5/lib/php/PHPUnit/TextUI/Command.php') /usr/local/php5/bin/phpunit:40 0.1634 3. PHPUnit_TextUI_Command::main() /usr/local/php5/lib/php/PHPUnit/TextUI/Command.php:401 0.7343 4. PHPUnit_TextUI_TestRunner->doRun(???, ???) /usr/local/php5/lib/php/PHPUnit/TextUI/Command.php:100 0.7348 5. PHPUnit_Framework_TestSuite->run(???, ???) /usr/local/php5/lib/php/PHPUnit/TextUI/TestRunner.php:247 0.7351 6. PHPUnit_Framework_TestSuite->run(???, ???) /usr/local/php5/lib/php/PHPUnit/Framework/TestSuite.php:478 0.7353 7. PHPUnit_Framework_TestSuite->runTest(???, ???) /usr/local/php5/lib/php/PHPUnit/Framework/TestSuite.php:491 0.7353 8. PHPUnit_Framework_TestCase->run(???) /usr/local/php5/lib/php/PHPUnit/Framework/TestSuite.php:510 0.7353 9. PHPUnit_Framework_TestResult->run(???) /usr/local/php5/lib/php/PHPUnit/Framework/TestCase.php:223 0.7357 10. PHPUnit_Framework_TestCase->runBare() /usr/local/php5/lib/php/PHPUnit/Framework/TestResult.php:528 0.7357 11. PHPUnit_Framework_TestCase->runTest() /usr/local/php5/lib/php/PHPUnit/Framework/TestCase.php:243 0.7358 12. ReflectionMethod->invoke(???) /usr/local/php5/lib/php/PHPUnit/Framework/TestCase.php:300 0.7358 13. Zend_Service_Audioscrobbler_ProfileTest->testConstructValid() /Volumes/snowhite/chartjes/zf/incubator/tests/Zend/Service/Audioscrobbler/ProfileTest.php:0 0.7358 14. Zend_Service_Audioscrobbler->__construct() /Volumes/snowhite/chartjes/zf/incubator/tests/Zend/Service/Audioscrobbler/ProfileTest.php:26 0.7359 15. Zend_Rest_Client->__construct(???) /Volumes/snowhite/chartjes/zf/incubator/library/Zend/Service/Audioscrobbler.php:71 0.7359 16. Zend_Rest_Client->setUri(???) /Volumes/snowhite/chartjes/zf/library/Zend/Rest/Client.php:62 0.7359 17. Zend_Uri::factory(???) /Volumes/snowhite/chartjes/zf/library/Zend/Rest/Client.php:77 0.7360 18. Zend_Uri_Http->__construct(???, ???) /Volumes/snowhite/chartjes/zf/library/Zend/Uri.php:128 0.7364 19. Zend_Uri_Http->valid() /Volumes/snowhite/chartjes/zf/library/Zend/Uri/Http.php:91 0.7365 20. Zend_Uri_Http->validateHost(???) /Volumes/snowhite/chartjes/zf/library/Zend/Uri/Http.php:176 Any thoughts would be appreciated. On that line, is it recommended to use Zend_Rest_Client for responses that are coming back as XML or is there something else I should be using? -- Chris Hartjes My motto for 2007: "Just build it, damnit!" rallyhat.com - digital photo scavenger hunt @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard
Re: Re: [fw-general] Build Zend Framework, parse errors.
On 12/12/06, Joe Kramer <[EMAIL PROTECTED]> wrote: Nico, My point is incompatibility between Zend products. If you build serious, enterprise-level project, you probably will use Zend Guard. I am not being elitist, but it seems like Zend framework is not used for projects that are encoded with Zend Guard? Because nobody raised the issue before. I'll never use Zend Guard because I feel that the benefits do not outweigh the problems associated with diagnosing bugs in code that you cannot see. But to each their own. I suggest you put your money where your mouth is and show some exampes of the parse errors you say are being generated when you run Zend Guard's syntax-checking abilities against the latest version of ZF. That's the only way to be sure. -- Chris Hartjes "The greatest inefficiencies come from solving problems you will never have." -- Rasmus Lerdorf @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard
Re: [fw-general] Who's working on what list
On 12/7/06, Ralph Schindler <[EMAIL PROTECTED]> wrote: Hey everyone, while the Team pages are great, I think it would be good to know, in a global sense, who is working on what, and who the zf liaison is for any given component. I've started a page and started inputting what I know about whats going on. If you guys have the time, I think it would be beneficial if you update the list as per what you know about who is working on what. Use the [~username] notation for liaison and developers and the [LINK NAME|ZFDEV:TeamName] to specify the team associated with the given component. Thanks, and hope this helps tie some things together for a more unified development process. -ralph Since I'm working on Zend_Service_Audioscrobbler in the incubator, does that mean I'm part of the Zend_Service_* team? -- Chris Hartjes "The greatest inefficiencies come from solving problems you will never have." -- Rasmus Lerdorf @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard
[fw-general] Zend_Service_Audioscrobbler Alpha 0.01 now available
After what seems like ages of me poking away at it in my dwindling spare time, I've committed the last set of changes for Zend_Service_Audioscrobbler alpha0.01. I encourage the bleeding-edge types to go into the incubator and check it out. I'm in the process of thinking about some ways to reduce the number of methods, but I thought it was important for my sanity to actually finish the alpha version, and the rewrite (which won't take as long as the original) can happen and that will be labeled as beta 0.01. Documentation on how to use it is also very sparse at this point, but going to the Audioscrobbler web services page page (http://www.audioscrobbler.net/data/webservices/) should provide plenty of hints. I welcome all comments, good *and* bad, about my work and I look forward to getting the rewrite finished and with any luck I can this done in time for the ZF1.0 release. -- Chris Hartjes "The greatest inefficiencies come from solving problems you will never have." -- Rasmus Lerdorf @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard
Re: [fw-general] How get Zend_Controller_Dispatcher_Token from index.php
On 11/13/06, Mauro Casula <[EMAIL PROTECTED]> wrote: Hi all, I'm new of Zend Framework.. I need your help. I need to know how can i now what Zend_Controller_Dispatcher_Token i'm going to dispatch in my Index.php. I need to know this because i'm developing an authentication system that will make the following: $controller = Zend_Controller_Front::getInstance(); //AuthenticationController is my authentication class $auth = AuthenticationController::factory($db,$session,$controller); // if i have to authenticate: I'm not sure if ZF has this yet, but wouldn't some sort of beforeFilter method that gets executed before each action in the controller handle authentication issues? CakePHP has this type of thing, I just don't know if ZF does. -- Chris Hartjes "The greatest inefficiencies come from solving problems you will never have." -- Rasmus Lerdorf @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard
Re: [fw-general] Anyone using/planning to use Zend_Db_Table?
On 10/25/06, Simon R Jones <[EMAIL PROTECTED]> wrote: To answer your first question Nick, we are using Zend_Db_Table on two live e-commerce sites successfully, though only for the admin side of things. We have used Cake framework in the past and have been rather shocked at the number of SQL requests it makes to understand a table structure. So I'm certainly unhappy about doing that on a front-end site. So Markus's thought of using a mapping file of some kind to describe the data makes a lot of sense. Hey Simon, I use CakePHP for a project at work and all those queries only happen when you're in debugging mode and it's not caching anything. In production mode, it will cache all those queries that tell it what the database structure is. I think any sort of Active Record / ORM implementation either has to cache the table structures (allowing you to alter tables on the fly and have the new fields show up after an webserver restart) or you mess around with configuration files to make those changes available to your application. Since I'm a lazy programmer, I prefer the convention-over-configuration path and like implementations that cache the table structure information. It's important to realize that any sort of DB wrapper comes with overhead. Anyone else who tells you otherwise is either misinformed or lying. Besides, any sort of large-scale application ends up having a custom DB wrapper. I can't imagine ActiveRecord scaling very well, but I may be wrong. -- Chris Hartjes "The greatest inefficiencies come from solving problems you will never have." -- Rasmus Lerdorf @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard
Re: [fw-general] Re: ZFTestManager available in laboratory
On 10/17/06, Bill Karwin <[EMAIL PROTECTED]> wrote: Sebastian Bergmann wrote: > Darby Felton wrote: > >> http://framework.zend.com/issues/browse/ZF-417 >> > > I do not understand what "Cannot run isolated tests" refers to. > > My understanding is that the issue is that all tests are run every time the test suite is executed. Thus there is no opportunity in the current system to run a subset of tests. Perhaps it would have been more clear to say, "Cannot run individual tests" since "isolated" has other connotations in the context of testing. Regards, Bill Karwin Hi Bill, As I've been working on Zend_Service_Audioscrobbler I've been able to run all the tests specific to my module, and don't have to run everything else. Perhaps I'm misunderstanding the problem as well? -- Chris Hartjes "The greatest inefficiencies come from solving problems you will never have." -- Rasmus Lerdorf @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard
Re: [fw-general] ZF Shirts
On 10/12/06, Gavin Vess <[EMAIL PROTECTED]> wrote: Hint: There will be a "surprise" at the conference ;) Cheers, Gavin Is it a t-shirt that says "I signed a CLA and all I got was this lousy t-shirt" ? ;) -- Chris Hartjes "The greatest inefficiencies come from solving problems you will never have." -- Rasmus Lerdorf @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard
Re: [fw-general] ZF Shirts
On 10/12/06, Richard Thomas <[EMAIL PROTECTED]> wrote: http://benramsey.com/archives/phpc-t-shirts/ Someone should do the same for us ;) CafePress would let you set something up like that pretty quickly... -- Chris Hartjes "The greatest inefficiencies come from solving problems you will never have." -- Rasmus Lerdorf @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard
Re: [fw-general] orm roadmap ?
On 9/19/06, Peter Hodge <[EMAIL PROTECTED]> wrote: Does anyone know of a language which has an effective ORM implementation? So far as I have read, most people consider an ORM to be 'just too difficult' to make and use. Well, Ruby on Rails has one called ActiveRecord that works quite well. CakePHP has an ORM-based database wrapper as well. Besides, an ORM database implementation isn't tied to a particular language and no language *I* know of has built-in ORM for databases. Heck, you can build one for yourself if you have a copy of Jason Sweat's book on design patterns for PHP. They provide an example and everything. ;) I haven't seen an implementation as good as ActiveRecord in Ruby on Rails though in any other language. -- Chris Hartjes "The greatest inefficiencies come from solving problems you will never have." -- Rasmus Lerdorf @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard