Re: [fw-general] Re: Many project in the structure
Hi, As you said, you can try subdomain, or change routers to use project2 as static part. regards Petar On 08/31/2010 04:16 PM, Zielun wrote: I tried. But had problem with links because it still refers to DocumentRoot which is in different location.
[fw-general] Re: Many project in the structure
Supposedly the router can deal with this automatically, but I haven't had much time to mess around with it. I do remember though that all your links will typically need to be generated using the url view helper, otherwise the links won't be based off the baseUrl. An alternative that I've used in the past was to write a controller plugin to handle the baseUrl rewriting during dispatchLoopShutdown. Basically performed a regex search/replace to inject the baseUrl into href and src attributes where needed. Cheers, David -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/Many-project-in-the-structure-tp2401184p2402526.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] ZF developer tools down
The developer tools (wiki, issue tracker, code browser) have been back online and running stable for over 12 hours now, so I think it's safe to open the floodgates. Just don't get me started about Java caches... -- Matthew Weier O'Phinney matt...@zend.com wrote (on Tuesday, 31 August 2010, 02:06 PM -0400): Hey, all -- The ZF developer tools -- issue tracker, wiki, repository browser, and user management -- are currently down, and have been for a few hours. Ralph and I have narrowed the issue down to Crowd (the user management), but at this time are unable to determine the root cause or fix the problems. We've got emails in to Atlassian for support, and are currently waiting for assistance. When I have an ETA on when they may be available again, I'll post it as a reply to this thread. Thanks in advance for your patience in this matter! -- Matthew Weier O'Phinney Project Lead| matt...@zend.com Zend Framework | http://framework.zend.com/ PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc
Re: [fw-general] Re: Guidance on storing passwords securely
You can have the most unbreakable password hashing scheme in the world, but your site's data is only as secure as the weakest link. There are plenty of attack vectors: XSS, CSRF, etc. Any one of these could be a potential way into a site admin account at least. At a minimum, don't reuse your server password(s) for your site admin account. Furthermore, don't reuse those passwords elsewhere, as they are only as secure as the other guy's weakest link. -Matt On Tuesday, August 31, 2010, teccmo tec...@gmail.com wrote: Ralph said, When hashing, choose a reasonably secure enough, yet supported method of hashing. However it would appear that password stretching or strengthening is more important that the particular hash scheme. I learned this by following Bill's third article. The article was: PBKDF2 (Password-Based Key Derivation Function) http://en.wikipedia.org/wiki/PBKDF2 (and of course other articles referenced by this) This article lead me to here http://en.wikipedia.org/wiki/Key_strengthening and that lead me to further reading of Openwall.com which focuses on key strengthening. I am not trying to find some fool proof solution, just trying to make sense of all the options. Since stretching or strengthening was not never mentioned I am wondering if anybody has an opinion on it. -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/Guidance-on-storing-passwords-securely-tp2400394p2401863.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] ZF 2 and project structure
Hello, I think that one big advantage of zf actually is to be very flexible with project structure and we have the liberty to choose a hierarchy that fit at best with our internal logic and development habits. Depending on project we don't have the same structure. And i like to be able to map my own namespaces to some root directories. IMHO, namespaces are a POO matter but project structure is organisation of files.For example, if the structure fit exactly the namespaces logic, i will not be able to do : app/ domain/ entities/ User.php -- namespace Entity; And that means the end of the project structure flexibility. That's a choice, but the good one ? I'm not sure, i don't even know, that's why i bring this question up :) From there, the problem is that namespaces as they were introduced in PHP 5.3 can't be considered as packages like many other languages. br, Benjamin. 2010/8/30 Ralph Schindler ralph.schind...@zend.com Interesting you bring this up. Currently, nothing like this has been decided yet. First we need to get the autoloading strategy in place, then beyond that start working on an MVC (Front Controller, View, Layout, etc) prototype. Personally, I've started favoring the former of what you suggested: Application/Controller/Index.php - Application\Controller\Index Over the years, I've come to dislike complex mappings and plural names. Plural names don't generally translate well in other languages.. also and the question ultimately becomes if the word is referring to the collection of things or the domain of the things. I've personally favored the latter since it is more explicit, requires no pluralization, and is generally easier to map when mapping is needed. For example: The user table vs. The users table The Controller directory vs. The controllers directory It is generally understood that a table is already a collection of rows, and a directory is a collection of files. The name thus referrers to the domain of the collection of things, hence the user. Also, when users is pluralized, it introduces the question of possessiveness. Singular, IMO, solves all those problems, and keeps a 1-1 conceptual mapping to all of the concepts involved. I know this could be argued either way, and I am sure people are pretty passionate about the scheme here. This I'm sure will be discussed more in the near future ;) My 2c submitted, -ralph On 8/30/10 11:34 AM, dbenjamin wrote: Hello, I have some question regarding project structure with ZF 2 and the namespaces. It seems that with ZF 2 you wish to keep the PEAR conventions where each part of a namespace corresponds to a node into directory structure. But even with ZF1, if we look at a default project structure, the ZF autoloader maps some basic namepaces to directories into the project, so it's not really PEAR-like, or we should have something like : Application/ Controller/ Index.php-- class Application_Controller_Index instead of : application/ controllers/ IndexController.php-- class IndexController I was wondering if you planned to keep going that way or planned to propose a new project structure which fit better with these conventions ? br, Benjamin.
[fw-general] Re: Unable to change session data in controllers
Dear Monika, Thanks for your help! I tried what you mentined, but it is the same. It seems that system is unable to change the session data. Best regards, William On Wed, Sep 1, 2010 at 12:27 AM, Monika [via Zend Framework Community] ml-node+2402629-1959345466-143...@n4.nabble.comml-node%2b2402629-1959345466-143...@n4.nabble.com wrote: I saw your bootstrap.php, check these lines $session = new Zend_Session_Namespace($default, true); $session-{'bill'}=This is to test for William; * Zend_Registry::set('session', $session);* Try using Zend_Session_Namespace for fetching your $default session namespace in controllers also.. I don't see Zend_registry is required for this. in indexController replace $session=Zend_Registry::get('session'); with $session = new Zend_Session_Namespace($default); //off course you need to fetch $default config in controller. -- View message @ http://zend-framework-community.634137.n4.nabble.com/Unable-to-change-session-data-in-controllers-tp2402403p2402629.html To unsubscribe from Unable to change session data in controllers, click herehttp://zend-framework-community.634137.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=2402403code=d2lsbGlhbXpoZW5nLmNhQGdtYWlsLmNvbXwyNDAyNDAzfC02MDIwNDY4MDQ=. -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/Unable-to-change-session-data-in-controllers-tp2402403p2403242.html Sent from the Zend Framework mailing list archive at Nabble.com.
[fw-general] Re: ZF 2 and project structure
Hey, i realized (thank to Hector) that i forgot to translate POO which means OOP in French, of course it doesn't really mean the same in english (lol i'm a loser :p) Benjamin. -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/ZF-2-and-project-structure-tp2400401p2403397.html Sent from the Zend Framework mailing list archive at Nabble.com.
[fw-general] Re: Unable to change session data in controllers
Try to check if session/namespace is locked(readonly) using the isLocked() function in your controller. -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/Unable-to-change-session-data-in-controllers-tp2402403p2476808.html Sent from the Zend Framework mailing list archive at Nabble.com.