Re: [fw-general] Zend_Auth question
You should implemant the interface Zend_Auth_Adapter_Interface with your own class. look at this: $auth = Zend_Auth::getInstance(); $authAdapter = new Ifang_Auth_Adapter_DbTable($dbAdapter); $auth-authenticate($authAdapter); 2007/9/20, debussy007 [EMAIL PROTECTED]: Hello, I can see in the doc that Zend_Auth_Adapter_DbTable allows to authenticate if a username and password have been given. But in my case I have an extra field that allows to know whether the account is active or not. Is it possible to extend in someway this class and give it an extra field to check ? Thank you for any help ! -- View this message in context: http://www.nabble.com/Zend_Auth-question-tf4484398s16154.html#a12788168 Sent from the Zend Framework mailing list archive at Nabble.com. -- 广州市一方信息咨询有限公司 地址:广州市 江南大道中 穗花村 三巷12号204 邮编:510245 电话:020-39738561 020-39738571 传真:020-84476279 网站:www.i-fang.com [EMAIL PROTECTED]
Re: AW: [fw-general] The validation of StringLength can't be used with Chinese
As far as I know, the Zend_Search_Lucene has already used the iconv extension. So, I don't think using the iconv ext will be a problem for us. 在07-9-13,Pádraic Brady [EMAIL PROTECTED] 写道: I don't think you can class it as a bug. The problem is that both extensions are optional (except for Windows where iconv had to be built in) so it's difficult to rely on them for something as common as string length validation. Until PHP6 pops up, I'd suggest creating a subclass which substitutes mb_strlen() and ensure ext/mbstring is available for your environment. Maybe it could be suggested someone add an optional Zend_Validate_MultiByteStringLength or similar which can mediate across iconv/mbstring and accept an optional encoding parameter? Pádraic Brady http://blog.astrumfutura.com http://www.patternsforphp.com - Original Message From: Leo Büttiker [EMAIL PROTECTED] To: mikespook [EMAIL PROTECTED]; Zend Framework General fw-general@lists.zend.com; Maarten Manders | tilllate AG [EMAIL PROTECTED] Sent: Thursday, September 13, 2007 7:44:51 AM Subject: AW: [fw-general] The validation of StringLength can't be used with Chinese In my point of view this might be a bug in the Zend Framework. It would be great if you can send a patch to the mailinglist, some zend guys might be able to put the patch in the next realase. Von: mikespook [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 13. September 2007 04:00 An: Zend Framework General Betreff: [fw-general] The validation of StringLength can't be used with Chinese Hi, all, The method isValid in the class Zend_Validate_StringLength, is look like this : public function isValid($value) { $valueString = (string) $value; $this-_setValue($valueString); $length = strlen($valueString); if ($length $this-_min) { $this-_error(self::TOO_SHORT); } if (null !== $this-_max $this-_max $length) { $this-_error(self::TOO_LONG); } if (count($this-_messages)) { return false; } else { return true; } } the line: $length = strlen($valueString); get $valueString's lenght.But it didn't work with Chinese or any other mutil-char languages( eg. CKJ ). so, what about using iconv_strlen or mb_strlen instead of the function strlen? -- 广州市一方信息咨询有限公司 地址:广州市 江南大道中 穗花村 三巷12号204 邮编:510245 电话:020-39738561 020-39738571 传真:020-84476279 网站:www.i-fang.com [EMAIL PROTECTED] -- Looking for a deal? Find great prices on flights and hotelshttp://us.rd.yahoo.com/evt=47094/*http://farechase.yahoo.com/;_ylc=X3oDMTFicDJoNDllBF9TAzk3NDA3NTg5BHBvcwMxMwRzZWMDZ3JvdXBzBHNsawNlbWFpbC1uY20-with Yahoo! FareChase. -- 广州市一方信息咨询有限公司 地址:广州市 江南大道中 穗花村 三巷12号204 邮编:510245 电话:020-39738561 020-39738571 传真:020-84476279 网站:www.i-fang.com [EMAIL PROTECTED]
[fw-general] The validation of StringLength can't be used with Chinese
Hi, all, The method isValid in the class Zend_Validate_StringLength, is look like this : public function isValid($value) { $valueString = (string) $value; $this-_setValue($valueString); $length = strlen($valueString); if ($length $this-_min) { $this-_error(self::TOO_SHORT); } if (null !== $this-_max $this-_max $length) { $this-_error(self::TOO_LONG); } if (count($this-_messages)) { return false; } else { return true; } } the line: $length = strlen($valueString); get $valueString's lenght.But it didn't work with Chinese or any other mutil-char languages( eg. CKJ ). so, what about using iconv_strlen or mb_strlen instead of the function strlen? -- 广州市一方信息咨询有限公司 地址:广州市 江南大道中 穗花村 三巷12号204 邮编:510245 电话:020-39738561 020-39738571 传真:020-84476279 网站:www.i-fang.com [EMAIL PROTECTED]
Re: [fw-general] Zend Framework Project Creator
Franziskus, That's great! your project do a great work, will it create the dir structure form config? Be course I have a different dir structure to yours. I've write a simple php script for creating modules, controller and action. I realy want to promote it into gtk-php version. That would be funny and interesting. Will you? Regards Xing 2007/8/5, Franziskus Domig [EMAIL PROTECTED]: Hello, maybe there is someone interested in: Because I was to lazy to create the whole structure and files for a new Zend Framework project every time again, I started thinking about a simple script to create the basic structure and files automatically. I have been busy the last days to create an automated installer for a new Zend Framework project, which offers currently just some basic features but I am working on more features by now. Currently it is possible to create the application-structure, includes the Zend Framework library, adds a configuration file in your config-path, creates a individual bootstrap file (index.php) with allows you to access a specific database and also creates the basic .htaccess RewriteRule. I am adding currently the feature to add automatic a set of controllers with specific actions. Also I am working on creating automatic models and creating the specific database-table to it. If you are interested in: [1]Zend Framework Project Creator Website Regards, Franziskus Domig [1] http://domig.org/ZendFrameworkProjectCreator/Latest -- 广州市一方信息咨询有限公司 地址:广州市 江南大道中 穗花村 三巷12号204 邮编:510245 电话:020-39738561 020-39738571 传真:020-84476279 网站:www.i-fang.com [EMAIL PROTECTED]
Re: [fw-general] Per module header and footer...any guidance?
Place the footer.phtml and header.phtml in the dir : root/app/usr/{module}/{views}/{scripts}/ And using?php echo $this-render('footer.phtml');? in your view scripts. Then every module has its own footer and header. Regards Xing 2007/7/24, Drew Bertola [EMAIL PROTECTED]: Hi, I'm looking for a way to have different header and footer templates depending on the module. I'd like to do this without losing any of the convenience functionality built in to viewRenderer, etc. Anyone have a suggestion? Thanks, -- Drew -- 广州市一方信息咨询有限公司 地址:广州市 江南大道中 穗花村 三巷12号204 邮编:510245 电话:020-39738561 020-39738571 传真:020-84476279 网站:www.i-fang.com [EMAIL PROTECTED]
Re: [fw-general] Better ACL through resource globbing
May be, you should try like this: Modules, controllers and actions. All of them are resources. Controllers inherited from modules; Actions inherited from controllers. So, there needn't to add action as a parameter into isAllowed method. Regards. Xing 2007/7/19, pat [EMAIL PROTECTED]: Hi List, A few months ago I requested that the ACL unit allow some form of globbing. But, The impending release made that impossible. Is now a good time to consider resource globbing in the acl? What I have in mind is the following: //resource = *. controller.* $this-_acl-isAllowed($role, $resource); instead of this: !$this-_acl-isAllowed($role, $resource, $action); In short, I'd like the ACL to work at the module level and include globbing. Is this possible? cheers, pat -- 广州市一方信息咨询有限公司 地址:广州市 江南大道中 穗花村 三巷12号204 邮编:510245 电话:020-39738561 020-39738571 传真:020-84476279 网站:www.i-fang.com [EMAIL PROTECTED]
Re: [fw-general] How to use Zend Framework Manual?
Do you mean getting started from manual? I think manual is not a tutorial. Use the framework and take puzzles, find answers in the manual. May be, for starting, a tutorial is better than a manual. Regards Xing 2007/7/13, José de Menezes Soares Neto [EMAIL PROTECTED]: I have some difficulties to consult Zend Framework documents... Could someone explain how to obtain the best results from it? -- 广州市一方信息咨询有限公司 地址:广州市 江南大道中 穗花村 三巷12号204 邮编:510245 电话:020-39738561 020-39738571 传真:020-84476279 网站:www.i-fang.com [EMAIL PROTECTED]
Re: [fw-general] Framework Docs in PDF Format
Just modify Makefile by hand, and use fo creating pdf format. Have down the chm format, if you need I can do it with pdf format. Regards Xing 2007/7/12, Jay M. Keith [EMAIL PROTECTED]: Hey all, I know during the RC's someone converted all the docs to PDF format. I was curious if this had been done yet for the 1.0 release yet, if so I'd greatly appreciate it. -- 广州市一方信息咨询有限公司 地址:广州市 江南大道中 穗花村 三巷12号204 邮编:510245 电话:020-39738561 020-39738571 传真:020-84476279 网站:www.i-fang.com [EMAIL PROTECTED]
Re: [fw-general] Wiki - Killedki - Resetki
here http://services.alphaworks.ibm.com/qedwiki/ but maybe you need a ibm ID for tring it. 2007/7/1, till [EMAIL PROTECTED]: On 6/30/07, Willie Alberty [EMAIL PROTECTED] wrote: On Jun 30, 2007, at 8:53 AM, Jurriën Stutterheim wrote: First one to build a ZF-based Wiki wins! ;) But seriously, it would be cool if a ZF-based Wiki project was created. It might serve as an example of best practice application programming with Zend Framework. Using only ZF components (where available), it would be incredibly educational! Someone has: http://files.zend.com/qedwiki There's a description on the framework home page: http://framework.zend.com Yeah, that has been on the frontpage for forever. I am not sure though - has anyone used it or is available anywhere? Cheers, Till -- 广州市一方信息咨询有限公司 地址:广州市 江南大道中 穗花村 三巷12号204 邮编:510245 电话:020-39738561 020-39738571 传真:020-84476279 网站:www.i-fang.com [EMAIL PROTECTED]