Re: [fw-general] Session DB Save Handler Lifetime Override
On Tue, Nov 11, 2008 at 6:19 PM, kwylez [EMAIL PROTECTED] wrote: In a global config file I have setup my zend session options: !-- config snippet -- session params save_path/var/www/zend_sessions//save_path !-- Remember session for one month -- remember_me_seconds2592000/remember_me_seconds /params /session !-- end config snippet -- /** * Set the Zend session options (global config) */ Zend_Session::setOptions($globalConfig-session-params-toArray()); In my bootstrap I am passing my zend session db information to the session handler: /** * Zend Session handling will be turned over to the database instead of the file * system. * * NOTE: this config is also passed to Zend_Db_Table so anything specific * to the table can be put in the config as well */ $sessionConfig = array( 'name' = 'sjcrh_session', //table name as per Zend_Db_Table 'primary' = array( 'session_id', //the sessionID given by php 'save_path',//session.save_path 'name' //session name ), 'primaryAssignment' = array( //you must tell the save handler which columns you //are using as the primary key. ORDER IS IMPORTANT 'sessionId', //first column of the primary key is of the sessionID 'sessionSavePath',//second column of the primary key is the save path 'sessionName'//third column of the primary key is the session name ), 'modifiedColumn'= 'modified', //time the session should expire 'dataColumn'= 'session_data', //serialized data 'lifetimeColumn'= 'lifetime', //end of life for a specific record ); /** * Tell Zend_Session to use your Save Handler */ Zend_Session::setSaveHandler(new Zend_Session_SaveHandler_DbTable($sessionConfig)); Everything works great at this point. I can start my sessions (user login) and see the information in the database. My question is how do I get the session lifetime to change from the default, 1440 seconds, to the remember_me_seconds, 2592000. In my login script I check to see if a user as selected the remember me checkbox so their session TTL is extended. I have tried a variety of ways, but when I query the lifetime column it still remains 1440. Look into session.gc_* http://docs.php.net/manual/en/session.configuration.php
Re: [fw-general] Zend_Form_Element_File - getValue() in 1.7
No you havn't. ;-)) You said that you are working with trunk. The manual you can download near 1.7 preview, is the manual for the 1.7 preview release. It is related to this download... you have mentioned this yourself. ;-) They differ a few weeks. Based on the userfeedback we have done changes which are, or course, not reflected in the old manual, but only in svn. For a introduction on how to convert the manual manually take a look into our wiki http://framework.zend.com/wiki All what is needed, should there be available. But generally you could also simply take look into the plain docbook files. They are only xml files and human readable. Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: Simon Corless [EMAIL PROTECTED] To: fw-general@lists.zend.com Sent: Wednesday, November 12, 2008 9:23 AM Subject: Re: [fw-general] Zend_Form_Element_File - getValue() in 1.7 thomasW wrote: You should read the manual from 1.7 when you are using 1.7 and not the online manual which always refers to the latest official release which is actually 1.6.2. I thought I was! I have downloaded the docs from the website next to the 1.7 release, it differs substantially from the online one so I assume it must be somewhat different. My quotes were taken directly from that download. If this isn't right how do I get the manual in a format I can use, or how do I compile it myself? Not being the slightest bit interested in the working of the manual but how to get ZF to work for me. At the moment I'm fighting the manual. Is there a guide to working with the trunk or preview releases and the manual? - Simon http://www.ajb007.co.uk/ -- View this message in context: http://www.nabble.com/Zend_Form_Element_File---getValue%28%29-in-1.7-tp20449098p20455998.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Zend_Form_Element_File - is this a BUG or expected?
No, your assumption is wrong. :-) When you say Ignore when there is no file uploaded, why should receive then say Failure, there is no file uploaded ? The return value of receive does only return true when something has not worked. By saying ignore it, you said even if I know that it does not work, ignore that no file has been uploaded and return true in such a case. getFileName on the other hand returns the set values for a file element. When there is no file uploaded, for example before you post your form, it will return the path where the upload will be received. For the file transfer adapter this is logical. The adapter itself is built to support not only HTTP upload but also other protocols and directions. It could receive a complete directory and store it on another location. When you are using the file element as you wrote, you should stick with getValue(), as it returns null when there is no file or no upload and the filename when there was a upload, but without path. Regarding your filter problem: The normal usage in such a case would be... * validate form * add personal filter * receive the file Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: Edward Haber [EMAIL PROTECTED] To: Thomas Weidner [EMAIL PROTECTED] Cc: fw-general@lists.zend.com Sent: Wednesday, November 12, 2008 2:39 PM Subject: Re: [fw-general] Zend_Form_Element_File - is this a BUG or expected? Thanks for your help on this. It is much appreciated. I think it's pretty reasonable to think the construct if ($this- my_file-receive()) should return true only if the file is actually *received.* What else would a person conceivably be receiving? Whether or not the upload is required or optional this shouldn't effect it. Further, getFileName() shouldn't return the destination file-path when there is no upload *because there is no file*. Makes no sense. I had renamed manually because I need the product_id which I only have after gotten the last-insert-id from the save operation (my filenames are product_id.jpg). Is there a clever way to manage this from in the form that you know of? I would rather utilize the rename filter but I do not know the product-id until after validation. I tried (as you kindly/smugly suggested) the isUploaded hint but it lead to an error: if ($form-my_file-receive()) { if ($form-my_file-isUploaded()) { ... stuff ... } } Error: Method isUploaded does not exist. The way that worked for me was to check if getFileName() is a directory with is_dir(), a rather odd thing to have to do. However this worked. Thanks again! On Nov 12, 2008, at 2:30 AM, Thomas Weidner wrote: To clearify this: You are using trunk, but your code would not work. As you wrote, you upload no file, and call receive(). Receive can sometimes return true, for example when you set the file element it to be optional in the form, or when you set the ignoreNoFile option in the adapter. There are other ways to check this than relying on receive itself. Also to note: You rename manually and do not use the rename filter from Zend_File which means that YOU rename the file and not the component. Simply calling receive is not enough as you have noted. When you are doing implementations yourself you are also responsible of doing checks yourself. In your case a simple check if the file has been uploaded or not. :-)) Hint: isUploaded And as Matthew already noted: When someone uses trunk he should also read the manual of trunk. Online docs always refer to the latest stable release and not trunk. ;-) Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: Edward Haber [EMAIL PROTECTED] To: fw-general@lists.zend.com Sent: Wednesday, November 12, 2008 3:28 AM Subject: Re: [fw-general] Zend_Form_Element_File - is this a BUG or expected? I'm working off svn of the current trunk. On Nov 11, 2008, at 9:21 PM, Matthew Weier O'Phinney wrote: -- Edward Haber [EMAIL PROTECTED] wrote (on Tuesday, 11 November 2008, 08:24 PM -0500): If no file is uploaded, receive() still returns true? Here's an example: Please test against trunk. The component has undergone a lot of work in the past two weeks, with basically daily check-ins. Additionally, read the current docbook documentation from trunk as well. if ($form-isValid($formData)) { ... do some stuff ... ... set $product_id to INT ... // process form image if ($form-product_image-receive()) { rename($form-product_image-getFileName(), AP . /media/products/ $product_id.jpg); } } With the above code, if no file is uploaded my destination directory gets renamed. So, if there is no file, receive() is still returning true and getFileName() is equal to the destination directory and consequently the whole directory gets renamed as 5.jpg (for example). Is this expected or am I implementing incorrectly?!
[fw-general] Problem with Zend_Locale, UTF-8, setLocale on Windows
Hi, It seems that in 1.6.2 Zend_Locale doesn't handle well under Windows. Zend_Locale is using $language = setlocale(LC_ALL, 0); in the getEnvironment function On my Windows system this will return: This email has been scanned for all known viruses by the MessageLabs Email Security Service and the Macro 4 plc internal virus protection system.
[fw-general] Problem with Zend_Locale, UTF-8, setLocale on Windows
Hi, It seems that in 1.6.2 Zend_Locale doesn't handle well under Windows. Zend_Locale is using $language = setlocale(LC_ALL, 0); in the getEnvironment function Using the same browser to access two systems I get: On my Windows ZF system this will return: Array ( [0] = LC_COLLATE=C [1] = LC_CTYPE=English_United Kingdom.1252 [2] = LC_MONETARY=C [3] = LC_NUMERIC=C [4] = LC_TIME=C ) On my Linux ZF system this will return: Array ( [0] = C ) Now running my language debugger I see the following: Windows System: _SERVER[HTTP_ACCEPT_LANGUAGE]=de-at,de;q=0.7,en-gb;q=0.3 Registry contains: Display getList(): Array ( [en] = en [de] = de [es] = es [fr] = fr [it] = it ) Translate save: Save Registry Locale: en On Windows it is failing to detect the correct Browser Language setting. Using the same browser and pointing at a Linux system I get: _SERVER[HTTP_ACCEPT_LANGUAGE]=de-at,de;q=0.7,en-gb;q=0.3 Registry contains: Display getList(): Array ( [de] = de [en] = en [es] = es [fr] = fr [it] = it ) Translate save: Speichern Registry Locale: de Which is correct! The only thing I could find on Google was this which handles setting the character set for Linux and the codepage for Windows: https://code.zikula.org/svn/core/development/zikula-1/includes/pnLang.php https://code.zikula.org/svn/core/development/zikula-1/includes/pnLang.php Look in the function pnSetLocale. - Robert This email has been scanned for all known viruses by the MessageLabs Email Security Service and the Macro 4 plc internal virus protection system.
Re: [fw-general] Problem with Zend_Locale, UTF-8, setLocale on Windows
Eigher you use browser settings which means that you stick on HTTP_ACCEPT_LANGUAGE or you stick with environment, which means LC_ALL. The browser uses the locale 'browser' within Zend_Locale. Also Zend_Locale has no getList() method. As you mentioned Registry Locale... do you mean setting the Zend_Locale object to Zend_Registry with the key Zend_Locale ? This is named Application wide locale and available with 1.7. This will not work in 1.6.2. You can read about this here: http://framework.zend.com/manual/en/zend.translate.using.html#zend.translate.using.languages.automatic Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: Robert Castley [EMAIL PROTECTED] To: fw-general@lists.zend.com Sent: Wednesday, November 12, 2008 3:34 PM Subject: [fw-general] Problem with Zend_Locale, UTF-8, setLocale on Windows Hi, It seems that in 1.6.2 Zend_Locale doesn't handle well under Windows. Zend_Locale is using $language = setlocale(LC_ALL, 0); in the getEnvironment function Using the same browser to access two systems I get: On my Windows ZF system this will return: Array ( [0] = LC_COLLATE=C [1] = LC_CTYPE=English_United Kingdom.1252 [2] = LC_MONETARY=C [3] = LC_NUMERIC=C [4] = LC_TIME=C ) On my Linux ZF system this will return: Array ( [0] = C ) Now running my language debugger I see the following: Windows System: _SERVER[HTTP_ACCEPT_LANGUAGE]=de-at,de;q=0.7,en-gb;q=0.3 Registry contains: Display getList(): Array ( [en] = en [de] = de [es] = es [fr] = fr [it] = it ) Translate save: Save Registry Locale: en On Windows it is failing to detect the correct Browser Language setting. Using the same browser and pointing at a Linux system I get: _SERVER[HTTP_ACCEPT_LANGUAGE]=de-at,de;q=0.7,en-gb;q=0.3 Registry contains: Display getList(): Array ( [de] = de [en] = en [es] = es [fr] = fr [it] = it ) Translate save: Speichern Registry Locale: de Which is correct! The only thing I could find on Google was this which handles setting the character set for Linux and the codepage for Windows: https://code.zikula.org/svn/core/development/zikula-1/includes/pnLang.php https://code.zikula.org/svn/core/development/zikula-1/includes/pnLang.php Look in the function pnSetLocale. - Robert This email has been scanned for all known viruses by the MessageLabs Email Security Service and the Macro 4 plc internal virus protection system.
RE: [fw-general] Problem with Zend_Locale, UTF-8, setLocale on Wi ndows
Hi, I am using exactly the same ZF application code on Linux Windows. If I run the following code (taken from the manual) on Windows: $locale = new Zend_Locale(); // Return all default locales $found = $locale-getDefault(); print_r($found); // Return only browser locales $found2 = $locale-getDefault(Zend_Locale::BROWSER,TRUE); print_r($found2); I get returned; Array ( [en] = 1 [de_AT] = 1 [de] = 1 [en_GB] = 0.3 ) Array ( [en] = 1 [de_AT] = 1 [de] = 1 [en_GB] = 0.3 ) If I run it on Unix I get returned: Array ( [de_AT] = 1 [de] = 1 [en_GB] = 0.3 [en] = 0.3 ) Array ( [de_AT] = 1 [de] = 1 [en_GB] = 0.3 [en] = 0.3 ) I am using the same browser to access both systems (FF 3 with languages set as Austrain, German, English). Now ... If I go and edit Zend/Locale.php and change: $languages = $this-getBrowser(); if ((empty($languages) === true) or ($fastsearch === false)) { $languages = $this-getEnvironment() + $languages; $languages = $this-getFramework() + $languages; } To this: $languages = $this-getBrowser(); if ((empty($languages) === true) or ($fastsearch === false)) { //$languages = $this-getEnvironment() + $languages; $languages = $this-getFramework() + $languages; } I get the following on Windows: Array ( [de_AT] = 1 [de] = 1 [en_GB] = 0.3 [en] = 0.3 ) Array ( [de_AT] = 1 [de] = 1 [en_GB] = 0.3 [en] = 0.3 ) Which is correct! Even if I use a: $locale-setLocale('browser'); It still does work as expected. It seems that somehow the Locale.php code is getting the browser settings but then appending the environment settings. - Robert -Original Message- From: Thomas Weidner [mailto:[EMAIL PROTECTED] Sent: 12 November 2008 14:56 To: fw-general@lists.zend.com Subject: Re: [fw-general] Problem with Zend_Locale, UTF-8, setLocale on Windows Eigher you use browser settings which means that you stick on HTTP_ACCEPT_LANGUAGE or you stick with environment, which means LC_ALL. The browser uses the locale 'browser' within Zend_Locale. Also Zend_Locale has no getList() method. As you mentioned Registry Locale... do you mean setting the Zend_Locale object to Zend_Registry with the key Zend_Locale ? This is named Application wide locale and available with 1.7. This will not work in 1.6.2. You can read about this here: http://framework.zend.com/manual/en/zend.translate.using.html#zend.translate .using.languages.automatic Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: Robert Castley [EMAIL PROTECTED] To: fw-general@lists.zend.com Sent: Wednesday, November 12, 2008 3:34 PM Subject: [fw-general] Problem with Zend_Locale, UTF-8, setLocale on Windows Hi, It seems that in 1.6.2 Zend_Locale doesn't handle well under Windows. Zend_Locale is using $language = setlocale(LC_ALL, 0); in the getEnvironment function Using the same browser to access two systems I get: On my Windows ZF system this will return: Array ( [0] = LC_COLLATE=C [1] = LC_CTYPE=English_United Kingdom.1252 [2] = LC_MONETARY=C [3] = LC_NUMERIC=C [4] = LC_TIME=C ) On my Linux ZF system this will return: Array ( [0] = C ) Now running my language debugger I see the following: Windows System: _SERVER[HTTP_ACCEPT_LANGUAGE]=de-at,de;q=0.7,en-gb;q=0.3 Registry contains: Display getList(): Array ( [en] = en [de] = de [es] = es [fr] = fr [it] = it ) Translate save: Save Registry Locale: en On Windows it is failing to detect the correct Browser Language setting. Using the same browser and pointing at a Linux system I get: _SERVER[HTTP_ACCEPT_LANGUAGE]=de-at,de;q=0.7,en-gb;q=0.3 Registry contains: Display getList(): Array ( [de] = de [en] = en [es] = es [fr] = fr [it] = it ) Translate save: Speichern Registry Locale: de Which is correct! The only thing I could find on Google was this which handles setting the character set for Linux and the codepage for Windows: https://code.zikula.org/svn/core/development/zikula-1/includes/pnLang.php https://code.zikula.org/svn/core/development/zikula-1/includes/pnLang.php Look in the function pnSetLocale. - Robert This email has been scanned for all known viruses by the MessageLabs Email Security Service and the Macro 4 plc internal virus protection system. This email has been scanned for all known viruses by the MessageLabs Email Security Service and the Macro 4 plc internal virus protection system.
Re: [fw-general] Zend_File_Transfer - is this a BUG?
Why don't you simply set a destination like shown in the manual ? ;-) -setDestination('my/destination/path'); Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: Vladas Diržys [EMAIL PROTECTED] To: fw-general fw-general@lists.zend.com Sent: Wednesday, November 12, 2008 11:36 AM Subject: [fw-general] Zend_File_Transfer - is this a BUG? Hello, I have a problem on a unix server using Zend_File_Transfer (Zend_Form_Element_File). I try to upload a file and i get an exception The given destination is no directory or does not exist. In general the reason for this error is that I'm using different 'upload_tmp_dir', but the _getTmpDir method just looks for sys_get_temp_dir() and doesn't tries to look for ini_get('upload_tmp_dir'); So is this a bug, or exists here some workaround? -- Pagarbiai, Vladas Diržys Tel.: +370 620 69020 www.dirzys.com
Re: [fw-general] Zend_Form_Element_File - is this a BUG or expected?
Thanks for your help on this. It is much appreciated. I think it's pretty reasonable to think the construct if ($this- my_file-receive()) should return true only if the file is actually *received.* What else would a person conceivably be receiving? Whether or not the upload is required or optional this shouldn't effect it. Further, getFileName() shouldn't return the destination file-path when there is no upload *because there is no file*. Makes no sense. I had renamed manually because I need the product_id which I only have after gotten the last-insert-id from the save operation (my filenames are product_id.jpg). Is there a clever way to manage this from in the form that you know of? I would rather utilize the rename filter but I do not know the product-id until after validation. I tried (as you kindly/smugly suggested) the isUploaded hint but it lead to an error: if ($form-my_file-receive()) { if ($form-my_file-isUploaded()) { ... stuff ... } } Error: Method isUploaded does not exist. The way that worked for me was to check if getFileName() is a directory with is_dir(), a rather odd thing to have to do. However this worked. Thanks again! On Nov 12, 2008, at 2:30 AM, Thomas Weidner wrote: To clearify this: You are using trunk, but your code would not work. As you wrote, you upload no file, and call receive(). Receive can sometimes return true, for example when you set the file element it to be optional in the form, or when you set the ignoreNoFile option in the adapter. There are other ways to check this than relying on receive itself. Also to note: You rename manually and do not use the rename filter from Zend_File which means that YOU rename the file and not the component. Simply calling receive is not enough as you have noted. When you are doing implementations yourself you are also responsible of doing checks yourself. In your case a simple check if the file has been uploaded or not. :-)) Hint: isUploaded And as Matthew already noted: When someone uses trunk he should also read the manual of trunk. Online docs always refer to the latest stable release and not trunk. ;-) Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: Edward Haber [EMAIL PROTECTED] To: fw-general@lists.zend.com Sent: Wednesday, November 12, 2008 3:28 AM Subject: Re: [fw-general] Zend_Form_Element_File - is this a BUG or expected? I'm working off svn of the current trunk. On Nov 11, 2008, at 9:21 PM, Matthew Weier O'Phinney wrote: -- Edward Haber [EMAIL PROTECTED] wrote (on Tuesday, 11 November 2008, 08:24 PM -0500): If no file is uploaded, receive() still returns true? Here's an example: Please test against trunk. The component has undergone a lot of work in the past two weeks, with basically daily check-ins. Additionally, read the current docbook documentation from trunk as well. if ($form-isValid($formData)) { ... do some stuff ... ... set $product_id to INT ... // process form image if ($form-product_image-receive()) { rename($form-product_image-getFileName(), AP . /media/products/ $product_id.jpg); } } With the above code, if no file is uploaded my destination directory gets renamed. So, if there is no file, receive() is still returning true and getFileName() is equal to the destination directory and consequently the whole directory gets renamed as 5.jpg (for example). Is this expected or am I implementing incorrectly?! I've asked some dumb questions on this list before. Hopefully this is another one. BTW, as someone else just noted the docs must be updated! Let me know if i can help. I know some HTML. Thx!! On Nov 11, 2008, at 4:55 PM, Simon Corless wrote: A quick question to Thomas I suppose, how do I get the file name / location from a file uploaded using Zend_Form. The docs contradict themselves... In the code it uses: $location = $form-foo-getFileName(); Then goes on to state in a note below: File values Within HTTP a file element has no value. Therefor you will get no output when calling getValue(). So I suppose it's a small bug in the docs, but ultimately I need the file name so how do I get it?! Thanks Simon - Simon http://www.ajb007.co.uk/ -- View this message in context: http://www.nabble.com/Zend_Form_Element_File---getValue%28%29-in-1.7-tp20449098p20449098.html Sent from the Zend Framework mailing list archive at Nabble.com. -- Matthew Weier O'Phinney Software Architect | [EMAIL PROTECTED] Zend Framework | http://framework.zend.com/
[fw-general] Integrating FCKEditor with Zend_Form
Hello, I am currently creating a cms. A text area on each page of the site will be editable via fck editor however I am not sure how to put fck editor into a form and save the content back to the database. I have been trying to do this for a while now and am getting nowhere so anyhelp would be greatly appreciated. Thank You -- View this message in context: http://www.nabble.com/Integrating-FCKEditor-with-Zend_Form-tp20464170p20464170.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Zend_File_Transfer - is this a BUG?
No, it's not really a bug. :-) upload_tmp_dir is used by php when it get the file from your webserver. When you call receive on the file adapter, the file is already there, in this temporary location. Only, when you forget to set a destination, the file adapter tries to detect a directory where it can store the file. Using the same directory for storing the files and as tmp upload dir is problematic as files in this directory are automatically be deleted from time to time. So what you want it a feature request, for a new temporary directory, when someone forgots to set a destination, but not a bug. :-) And the request is already added, but 1.7 is already fixed and no new feature is allowed to be added in 1.7... We'll have to wait some days. See ZF-4921 Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: Vladas Diržys [EMAIL PROTECTED] To: Thomas Weidner [EMAIL PROTECTED] Sent: Wednesday, November 12, 2008 4:50 PM Subject: Re: [fw-general] Zend_File_Transfer - is this a BUG? Ok, it works. But anyway, _getTmpDir ignores the upload_tmp_dir ini parameter, and IMHO its a bug ;-) -- Pagarbiai, Vladas Diržys Tel.: +370 620 69020 www.dirzys.com On Wed, Nov 12, 2008 at 2:44 PM, Thomas Weidner [EMAIL PROTECTED]wrote: Why don't you simply set a destination like shown in the manual ? ;-) -setDestination('my/destination/path'); Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: Vladas Diržys [EMAIL PROTECTED] To: fw-general fw-general@lists.zend.com Sent: Wednesday, November 12, 2008 11:36 AM Subject: [fw-general] Zend_File_Transfer - is this a BUG? Hello, I have a problem on a unix server using Zend_File_Transfer (Zend_Form_Element_File). I try to upload a file and i get an exception The given destination is no directory or does not exist. In general the reason for this error is that I'm using different 'upload_tmp_dir', but the _getTmpDir method just looks for sys_get_temp_dir() and doesn't tries to look for ini_get('upload_tmp_dir'); So is this a bug, or exists here some workaround? -- Pagarbiai, Vladas Diržys Tel.: +370 620 69020 www.dirzys.com
[fw-general] Bootstrap Action HelperBroker stops execution on production server
Hi, I'm trying to install my first ZF project to many production server and it looks like ZF is only for development enjoyment. No one had any idea about following issue; http://www.nabble.com/Interface-'IteratorAggregate'-not-found-error-in-production-server-td20431706.html So i'm trying to install to one another shared hosting service again with pain. This time the problem is about nothing. Yes, nothing outputs. No freaky null empty nothing response body with http code 200. After debugging bootstrap file line by line i'm stucted at Zend_Controller_Action_HelperBroker::addPath(...); try { echo 'echo 1'; // echoes Zend_Controller_Action_HelperBroker::addPath('./library/Helpers', 'Helper'); echo 'echo 2'; // never echoes on production server } catch(Exception $error) { print_r($error); // and never catch any error } I'm sure there are other issues coming up but i please ask for help in this one for now. Cheers.
[fw-general] Integrating FCKEditor with Zend_Form
Hello, I am building my first application in zend framework. My aim is to build a cms. Each page will have a text block that can be edited via fck editor. I cannot figure out how to setup fckeditor in a zend form and save data from it back to the database. Any help would be greatly appreciated. Regards Julian -- View this message in context: http://www.nabble.com/Integrating-FCKEditor-with-Zend_Form-tp20464758p20464758.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] __call
-- O'BRIEN, Steven X [EMAIL PROTECTED] wrote (on Wednesday, 12 November 2008, 10:14 AM -): The use of __call on php classes feels like it should be bad practise to me. Am I missing something? A few thoughts... #1 won't __Call be called every time any method is called on the object? This feels inefficient. No. It is only called when the called method does not exist in the class. #2 It hides functionality. To remember what extra methods exist and their parameters you have to specifically look up the __call function or go to the source code. In ZF, we primarily use it for delegating to plugin classes -- in which case we have thorough documentation. A good example of this is Zend_View, where it is used to delegate to the various view helpers. In a few areas, __call() is used to simplify implementation -- for instance, when there are many methods with identical signatures -- but these are exceptions. -- Matthew Weier O'Phinney Software Architect | [EMAIL PROTECTED] Zend Framework | http://framework.zend.com/
Re: [fw-general] Integrating FCKEditor with Zend_Form
Thank you for the reply although I havent got time to complete this to day im sure this approach will work. For anyone reading this who wants help creating the onSubmit event I have found this article which clearly explains how this can be achieved. http://codeutopia.net/blog/2008/04/04/client-side-validation-with-zend_form/ Matthew Weier O'Phinney-3 wrote: -- james_fortune [EMAIL PROTECTED] wrote (on Wednesday, 12 November 2008, 08:43 AM -0800): I am currently creating a cms. A text area on each page of the site will be editable via fck editor however I am not sure how to put fck editor into a form and save the content back to the database. I have been trying to do this for a while now and am getting nowhere so anyhelp would be greatly appreciated. If FCKEditor operates similarly to diji.Editor, you'll need to tie an event to onSubmit to copy the data back to a hidden element. Take a look at how I accomplished that in the Editor dijit in Zend_Dojo for some ideas. -- Matthew Weier O'Phinney Software Architect | [EMAIL PROTECTED] Zend Framework | http://framework.zend.com/ -- View this message in context: http://www.nabble.com/Re%3A-Integrating-FCKEditor-with-Zend_Form-tp20464314p20465619.html Sent from the Zend Framework mailing list archive at Nabble.com.
RE: [fw-general] Applying ZF coding standards to a project
Are you trying to do more than one file at a time? Studio shouldn't have a problem with that; I've done it myself on a fairly long script. The way I typically do this is wait until I have to work on the file, reformat it, *commit changes* so that programmatic changes aren't lost in the noise, and refactor/commit again. Following coding standards is not the most important part of refactoring for the project you are working on. For everyone else, we hope to announce soon what this exciting project is. ,Wil -Original Message- From: Jurriën Stutterheim [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2008 10:10 PM To: Zend Framework - General Subject: [fw-general] Applying ZF coding standards to a project Hi all, I'm currently working on getting some code somebody else wrote to comply with the ZF coding standards. What would be the best way to convert an entire project to the ZF coding standards? ZSfE supports this, but it keeps crashing before it finishes... - Jurriën
Re: [fw-general] __call
It's only bad if you abuse it. If used properly it allows you to create more user friendly interface and avoid bloat. The implementation may be harder to understand so it's sometimes a trade off, but many people appreciate features that allow to write less verbose and more dynamic code. Karol O'BRIEN, Steven X wrote: Guys, The use of __call on php classes feels like it should be bad practise to me. Am I missing something? A few thoughts... #1 won't __Call be called every time any method is called on the object? This feels inefficient. #2 It hides functionality. To remember what extra methods exist and their parameters you have to specifically look up the __call function or go to the source code. Steven O'Brien -- View this message in context: http://www.nabble.com/__call-tp20457496p20457745.html Sent from the Zend Framework mailing list archive at Nabble.com.
[fw-general] passing values from URL to zend dojo
Hey all, I have a link http://www.example.com/banners where i am displaying some tabelar stats about number of banners. In movie category i have 3 banners. I would like to click on this number(3) and that zend_dojo nicely do the job :) Basicly i would like to display those 3 banners from the movie category(or any other category) when you click on number of banners(3) using zend_dojo if possible. How to properly create a link for this and how to get values from created link? I wish to have an action display within bannerController. I dont know how to pass values from URL to displayAction(). eg. http://wwwexample.com/banners/display/2/HM/1 where /2 is category, HM is first caps letter of the movie and /1 is a type of banner (horisontal, vertical..) Any ideas? Thanks, V -- View this message in context: http://www.nabble.com/passing-values-from-URL-to-zend-dojo-tp20459719p20459719.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Applying ZF coding standards to a project
-- Jurriën Stutterheim [EMAIL PROTECTED] wrote (on Wednesday, 12 November 2008, 07:10 AM +0100): I'm currently working on getting some code somebody else wrote to comply with the ZF coding standards. What would be the best way to convert an entire project to the ZF coding standards? ZSfE supports this, but it keeps crashing before it finishes... PEAR has some tools for this. PHP_CodeSniffer can alert you to CS errors (and there are ZF code sniffs available). PHP_Beautifier can format code to follow PEAR CS (which is mostly the same as ZF CS). -- Matthew Weier O'Phinney Software Architect | [EMAIL PROTECTED] Zend Framework | http://framework.zend.com/
[fw-general] __call
Guys, The use of __call on php classes feels like it should be bad practise to me. Am I missing something? A few thoughts... #1 won't __Call be called every time any method is called on the object? This feels inefficient. #2 It hides functionality. To remember what extra methods exist and their parameters you have to specifically look up the __call function or go to the source code. Steven O'Brien This e-mail and any attachment may contain confidential and/or privileged information. If you have received this e-mail and/or attachment in error, please notify the sender immediately and delete the e-mail and any attachment from your system. If you are not the intended recipient you must not copy, distribute, disclose or use the contents of the e-mail or any attachment. All e-mail sent to or from this address may be accessed by someone other than the recipient for system management and security reasons or for other lawful purposes. Airbus UK Limited is registered in England and Wales under company number 3468788. The company's registered office is at New Filton House, Filton, Bristol, BS99 7AR.
Re: [fw-general] $form-populate and FilteringSelect using Dojo datastore doesn't work, issue tracker won't let me submit bug, nowhere else to turn
So you don't have to recreate it, the Autocomplete Helper is as follows. It's a cut and paste of the work some other wonderful gentleman did, and I turned off the validator because i was lazy. class Zend_Controller_Action_Helper_AutoCompleteDojoNew extends Zend_Controller_Action_Helper_AutoComplete_Abstract { public function validateData($data) { return true; } public function prepareAutoCompletion($data, $keepLayouts = false) { $items = array(); foreach ($data as $key = $value) { $items[] = array('label' = $value, 'name' = $value, 'key' = $key); } $final = array( 'identifier' = 'key', 'items' = $items, ); return $this-encodeJson($final, $keepLayouts); } } On Tue, Nov 11, 2008 at 5:50 PM, Bart McLeod [EMAIL PROTECTED] wrote: Hi Cameron, I tried to set up a testsite yesterday evening, but I ran out of time (mostly because I did not do much Dojo so far). I will keep looking into this and file a bug if I can confirm it. Will use your examples if possible to set it up and confirm the bug. While you are at it, could you evaluate a patch I provided for the dojo checkbox? It is Issue ZF-4274, you can download patches there. Regards, Bart McLeod Cameron schreef: I'm really stumped with this one, it flat out doesn't work in anything like the way you'd expect / want it to, and I can't find a single piece of documentation on this anywhere. I'm not even talking about dependent dropdowns here, all I am trying to do is get $form-populate to correctly work in my Edit action when I'm using a FilteringSelect that uses a store instead of setMultiOptions. Note, this exact same form works just fine (and submits the ID value correctly) from the New action, the ONLY thing that fails is the populate method, everything else works perfectly. Let's get in to the code. I've trimmed the unimportant parts. EDIT ACTION IN THE CONTROLLER: public function editAction() { $form = $this-getForm(); $id = (int)$this-_request-getParam('id', 0); $form-setAction(/$this-_class/edit/id/$id) -setMethod('post') -setName('editform') -setElementsBelongTo('editform'); if ($this-_request-isPost()) { //SAVE RECORD $formData = $this-_request-getPost(); $formData['id'] = (int) $id; $model = $this-getModel(); if (true === $model-update($formData)) { //SAVE SUCCESS $this-_redirect(/$this-_class/display/id/$id); } else { //SAVE FAILURE, RETURN AND EDIT AGAIN $form-populate($formData); } } else { //INITIAL LOAD, GET VALUES AND POPULATE $model = $this-getModel(); $job = $model-get($id); $form-populate($job); } $this-view-form = $form; } ADDELEMENT METHOD FROM THE FORM CLASS $this-addElement('FilteringSelect', 'fk_client_id', array( 'label'= 'Client:', 'store' = 'clientStore', 'autoComplete' = 'false', 'hasDownArrow' = 'true', 'id' = 'fk_client_id', )); JAVASCRIPT THAT CREATES THE STORE dojo.declare(ClientReadStore, dojox.data.QueryReadStore, { fetch:function (request) { request.serverQuery = { autocomplete:1, str:request.query.name }; return this.inherited(fetch, arguments); } }); JSON FORMAT THE STORE RETURNS (this is a long story, I had to rewrite Zend_Controller_Action_Helper_AutoCompleteDojo because it doesn't work, as has been noted by others, but the end result is that it now outputs this JSON, and it works) ({identifier:key,items:[ {label:,name:,key:1}, {label:bbb,name:bbb,key:2}, {label:v,name:v,key:3}, {label:,name:,key:4}, {label:ddd,name:ddd,key:5} {label:s,name:s,key:7}, {label:rr,name:rr,key:8}, {label:,name:,key:9} ]}) EDIT ACTION VIEW SCRIPT ? Zend_Dojo_View_Helper_Dojo::setUseDeclarative();? div dojoType=ClientReadStore jsId=clientStore url=/clients/autocomplete/format/ajax?autocomplete=1str=* requestMethod=get/div ? echo $this-form; ? As you can see, this is all pretty basic stuff, and follows (as far as I can piece together) the best practices for doing this sort of thing. Now. Here's the debugging information I've managed to coax out so far. If you call print_r($this-form-getValues()) in the View script, it returns this: Array ( [editform] = Array ( [fk_client_id] = 484 [fk_client_contact_id] = 459 [position] = CIVIL ENGINEER [quantity] = 1 [start] = ASAP? [duration] = 3 - 4 MTHS INIT [rate] = NEG [charge] = [experience] = MPD JV. DESIGN EARTHWORKS, DRAINAGE, ROADS.
Re: [fw-general] Bootstrap Action HelperBroker stops execution on production server
-- kirpit [EMAIL PROTECTED] wrote (on Wednesday, 12 November 2008, 07:05 PM +0200): I'm trying to install my first ZF project to many production server and it looks like ZF is only for development enjoyment. No one had any idea about following issue; http://www.nabble.com/ Interface-'IteratorAggregate'-not-found-error-in-production-server-td20431706.html IteratorAggregate is an interface from PHP's SPL (standard PHP library) which is included in default installs of PHP since 5.0. Please check the PHP version on your production server. BTW, Gentoo notoriously disables SPL in their defaults builds -- you have to add it as an emerge option. So i'm trying to install to one another shared hosting service again with pain. This time the problem is about nothing. Yes, nothing outputs. No freaky null empty nothing response body with http code 200. After debugging bootstrap file line by line i'm stucted at Zend_Controller_Action_HelperBroker::addPath(...); try { echo 'echo 1'; // echoes Zend_Controller_Action_HelperBroker::addPath('./library/Helpers', 'Helper'); echo 'echo 2'; // never echoes on production server } catch(Exception $error) { print_r($error); // and never catch any error } I'm sure there are other issues coming up but i please ask for help in this one for now. -- Matthew Weier O'Phinney Software Architect | [EMAIL PROTECTED] Zend Framework | http://framework.zend.com/
Re: [fw-general] Zend_Form_Element_File - is this a BUG or expected?
It seems crystal clear to me that a method called getFileName should either return a filename or a null/false if there is no file. Otherwise the name of the method is a misnomer. When no file is present, getFileName returns the destination path (which is already accessible with getDestination). Why not have it return a current news headline or the random name of a Smurf instead? :-) In other words, why would people want the destination (which they could get from another method of the same class) to a file that was never uploaded? Thx! For the file transfer adapter this is logical. The adapter itself is built to support not only HTTP upload but also other protocols and directions. It could receive a complete directory and store it on another location. When you are using the file element as you wrote, you should stick with getValue(), as it returns null when there is no file or no upload and the filename when there was a upload, but without path. Regarding your filter problem: The normal usage in such a case would be... * validate form * add personal filter * receive the file Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: Edward Haber [EMAIL PROTECTED] To: Thomas Weidner [EMAIL PROTECTED] Cc: fw-general@lists.zend.com Sent: Wednesday, November 12, 2008 2:39 PM Subject: Re: [fw-general] Zend_Form_Element_File - is this a BUG or expected? Thanks for your help on this. It is much appreciated. I think it's pretty reasonable to think the construct if ($this- my_file-receive()) should return true only if the file is actually *received.* What else would a person conceivably be receiving? Whether or not the upload is required or optional this shouldn't effect it. Further, getFileName() shouldn't return the destination file-path when there is no upload *because there is no file*. Makes no sense. I had renamed manually because I need the product_id which I only have after gotten the last-insert-id from the save operation (my filenames are product_id.jpg). Is there a clever way to manage this from in the form that you know of? I would rather utilize the rename filter but I do not know the product-id until after validation. I tried (as you kindly/smugly suggested) the isUploaded hint but it lead to an error: if ($form-my_file-receive()) { if ($form-my_file-isUploaded()) { ... stuff ... } } Error: Method isUploaded does not exist. The way that worked for me was to check if getFileName() is a directory with is_dir(), a rather odd thing to have to do. However this worked. Thanks again! On Nov 12, 2008, at 2:30 AM, Thomas Weidner wrote: To clearify this: You are using trunk, but your code would not work. As you wrote, you upload no file, and call receive(). Receive can sometimes return true, for example when you set the file element it to be optional in the form, or when you set the ignoreNoFile option in the adapter. There are other ways to check this than relying on receive itself. Also to note: You rename manually and do not use the rename filter from Zend_File which means that YOU rename the file and not the component. Simply calling receive is not enough as you have noted. When you are doing implementations yourself you are also responsible of doing checks yourself. In your case a simple check if the file has been uploaded or not. :-)) Hint: isUploaded And as Matthew already noted: When someone uses trunk he should also read the manual of trunk. Online docs always refer to the latest stable release and not trunk. ;-) Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: Edward Haber [EMAIL PROTECTED] To: fw-general@lists.zend.com Sent: Wednesday, November 12, 2008 3:28 AM Subject: Re: [fw-general] Zend_Form_Element_File - is this a BUG or expected? I'm working off svn of the current trunk. On Nov 11, 2008, at 9:21 PM, Matthew Weier O'Phinney wrote: -- Edward Haber [EMAIL PROTECTED] wrote (on Tuesday, 11 November 2008, 08:24 PM -0500): If no file is uploaded, receive() still returns true? Here's an example: Please test against trunk. The component has undergone a lot of work in the past two weeks, with basically daily check-ins. Additionally, read the current docbook documentation from trunk as well. if ($form-isValid($formData)) { ... do some stuff ... ... set $product_id to INT ... // process form image if ($form-product_image-receive()) { rename($form-product_image-getFileName(), AP . /media/ products/ $product_id.jpg); } } With the above code, if no file is uploaded my destination directory gets renamed. So, if there is no file, receive() is still returning true and getFileName() is equal to the destination directory and consequently the whole directory gets renamed as 5.jpg (for example). Is this expected or am I
Re: [fw-general] $form-populate and FilteringSelect using Dojo datastore doesn't work, issue tracker won't let me submit bug, nowhere else to turn
-- Cameron [EMAIL PROTECTED] wrote (on Wednesday, 12 November 2008, 06:51 PM +0900): So you don't have to recreate it, the Autocomplete Helper is as follows. It's a cut and paste of the work some other wonderful gentleman did, and I turned off the validator because i was lazy. BTW, the Zend_Controller_Action_Helper_AutoCompleteDojo was refactored in trunk last week to use Zend_Dojo_Data internally, as well as to accept Zend_Dojo_Data objects. These changes will be released with 1.7.0. class Zend_Controller_Action_Helper_AutoCompleteDojoNew extends Zend_Controller_Action_Helper_AutoComplete_Abstract { public function validateData($data) { return true; } public function prepareAutoCompletion($data, $keepLayouts = false) { $items = array(); foreach ($data as $key = $value) { $items[] = array('label' = $value, 'name' = $value, 'key' = $key); } $final = array( 'identifier' = 'key', 'items' = $items, ); return $this-encodeJson($final, $keepLayouts); } } On Tue, Nov 11, 2008 at 5:50 PM, Bart McLeod [EMAIL PROTECTED] wrote: Hi Cameron, I tried to set up a testsite yesterday evening, but I ran out of time (mostly because I did not do much Dojo so far). I will keep looking into this and file a bug if I can confirm it. Will use your examples if possible to set it up and confirm the bug. While you are at it, could you evaluate a patch I provided for the dojo checkbox? It is Issue ZF-4274, you can download patches there. Regards, Bart McLeod Cameron schreef: I'm really stumped with this one, it flat out doesn't work in anything like the way you'd expect / want it to, and I can't find a single piece of documentation on this anywhere. I'm not even talking about dependent dropdowns here, all I am trying to do is get $form-populate to correctly work in my Edit action when I'm using a FilteringSelect that uses a store instead of setMultiOptions. Note, this exact same form works just fine (and submits the ID value correctly) from the New action, the ONLY thing that fails is the populate method, everything else works perfectly. Let's get in to the code. I've trimmed the unimportant parts. EDIT ACTION IN THE CONTROLLER: public function editAction() { $form = $this-getForm(); $id = (int)$this-_request-getParam('id', 0); $form-setAction(/$this-_class/edit/id/$id) -setMethod('post') -setName('editform') -setElementsBelongTo('editform'); if ($this-_request-isPost()) { //SAVE RECORD $formData = $this-_request-getPost(); $formData['id'] = (int) $id; $model = $this-getModel(); if (true === $model-update($formData)) { //SAVE SUCCESS $this-_redirect(/$this-_class/display/id/$id); } else { //SAVE FAILURE, RETURN AND EDIT AGAIN $form-populate($formData); } } else { //INITIAL LOAD, GET VALUES AND POPULATE $model = $this-getModel(); $job = $model-get($id); $form-populate($job); } $this-view-form = $form; } ADDELEMENT METHOD FROM THE FORM CLASS $this-addElement('FilteringSelect', 'fk_client_id', array( 'label'= 'Client:', 'store' = 'clientStore', 'autoComplete' = 'false', 'hasDownArrow' = 'true', 'id' = 'fk_client_id', )); JAVASCRIPT THAT CREATES THE STORE dojo.declare(ClientReadStore, dojox.data.QueryReadStore, { fetch:function (request) { request.serverQuery = { autocomplete:1, str:request.query.name }; return this.inherited(fetch, arguments); } }); JSON FORMAT THE STORE RETURNS (this is a long story, I had to rewrite Zend_Controller_Action_Helper_AutoCompleteDojo because it doesn't work, as has been noted by others, but the end result is that it now outputs this JSON, and it works) ({identifier:key,items:[ {label:,name:,key:1}, {label:bbb,name:bbb,key:2}, {label:v,name:v,key:3}, {label:,name:,key:4}, {label:ddd,name:ddd,key:5}
Re: [fw-general] $form-populate and FilteringSelect using Dojo datastore doesn't work, issue tracker won't let me submit bug, nowhere else to turn
Didn't get to it today, but didn't forget about it either. I am looking for the simplest possible implementation of your use case. Bart Cameron schreef: So you don't have to recreate it, the Autocomplete Helper is as follows. It's a cut and paste of the work some other wonderful gentleman did, and I turned off the validator because i was lazy. class Zend_Controller_Action_Helper_AutoCompleteDojoNew extends Zend_Controller_Action_Helper_AutoComplete_Abstract { public function validateData($data) { return true; } public function prepareAutoCompletion($data, $keepLayouts = false) { $items = array(); foreach ($data as $key = $value) { $items[] = array('label' = $value, 'name' = $value, 'key' = $key); } $final = array( 'identifier' = 'key', 'items' = $items, ); return $this-encodeJson($final, $keepLayouts); } } On Tue, Nov 11, 2008 at 5:50 PM, Bart McLeod [EMAIL PROTECTED] wrote: Hi Cameron, I tried to set up a testsite yesterday evening, but I ran out of time (mostly because I did not do much Dojo so far). I will keep looking into this and file a bug if I can confirm it. Will use your examples if possible to set it up and confirm the bug. While you are at it, could you evaluate a patch I provided for the dojo checkbox? It is Issue ZF-4274, you can download patches there. Regards, Bart McLeod Cameron schreef: I'm really stumped with this one, it flat out doesn't work in anything like the way you'd expect / want it to, and I can't find a single piece of documentation on this anywhere. I'm not even talking about dependent dropdowns here, all I am trying to do is get $form-populate to correctly work in my Edit action when I'm using a FilteringSelect that uses a store instead of setMultiOptions. Note, this exact same form works just fine (and submits the ID value correctly) from the New action, the ONLY thing that fails is the populate method, everything else works perfectly. Let's get in to the code. I've trimmed the unimportant parts. EDIT ACTION IN THE CONTROLLER: public function editAction() { $form = $this-getForm(); $id = (int)$this-_request-getParam('id', 0); $form-setAction("/$this-_class/edit/id/$id") -setMethod('post') -setName('editform') -setElementsBelongTo('editform'); if ($this-_request-isPost()) { //SAVE RECORD $formData = $this-_request-getPost(); $formData['id'] = (int) $id; $model = $this-getModel(); if (true === $model-update($formData)) { //SAVE SUCCESS $this-_redirect("/$this-_class/display/id/$id"); } else { //SAVE FAILURE, RETURN AND EDIT AGAIN $form-populate($formData); } } else { //INITIAL LOAD, GET VALUES AND POPULATE $model = $this-getModel(); $job = $model-get($id); $form-populate($job); } $this-view-form = $form; } ADDELEMENT METHOD FROM THE FORM CLASS $this-addElement('FilteringSelect', 'fk_client_id', array( 'label' = 'Client:', 'store' = 'clientStore', 'autoComplete' = 'false', 'hasDownArrow' = 'true', 'id' = 'fk_client_id', )); _javascript_ THAT CREATES THE STORE dojo.declare("ClientReadStore", dojox.data.QueryReadStore, { fetch:function (request) { request.serverQuery = { autocomplete:1, str:request.query.name }; return this.inherited("fetch", arguments); } }); JSON FORMAT THE STORE RETURNS (this is a long story, I had to rewrite Zend_Controller_Action_Helper_AutoCompleteDojo because it doesn't work, as has been noted by others, but the end result is that it now outputs this JSON, and it works) ({"identifier":"key","items":[ {"label":"","name":"","key":1}, {"label":"bbb","name":"bbb","key":2}, {"label":"v","name":"v","key":3}, {"label":"","name":"","key":4}, {"label":"ddd","name":"ddd","key":5} {"label":"s","name":"s","key":7}, {"label":"rr","name":"rr","key":8}, {"label":"","name":"","key":9} ]}) EDIT ACTION VIEW SCRIPT ? Zend_Dojo_View_Helper_Dojo::setUseDeclarative();? div dojoType="ClientReadStore" jsId="clientStore" url="" requestMethod="get"/div ? echo $this-form; ? As you can see, this is all pretty basic stuff, and follows (as far as I can piece together) the best practices for doing this sort of thing. Now. Here's the debugging information I've managed to coax out so far. If you call print_r($this-form-getValues()) in the View script, it returns this: Array ( [editform] = Array ( [fk_client_id] = 484 [fk_client_contact_id] = 459 [position] = CIVIL ENGINEER [quantity] = 1 [start] = ASAP? [duration] = 3 - 4 MTHS INIT [rate] = NEG [charge] = [experience] = MPD JV. DESIGN EARTHWORKS, DRAINAGE, ROADS. STOCK YARD. [notes] = [comment] = COMMENT COMMENT COMMENT [contractor] = UNKNOWN [filled] = 2002-04-10 00:00:00 [fk_agency_id] = 0 ) )
RE: [fw-general] Problem with Zend_Locale, UTF-8, setLocale on Wi ndows
Hi, Is it better that I switch to 1.7PR then? Cheers, - Robert -Original Message- From: Thomas Weidner [mailto:[EMAIL PROTECTED] Sent: 12 November 2008 17:45 To: fw-general@lists.zend.com Subject: Re: [fw-general] Problem with Zend_Locale, UTF-8, setLocale on Windows This was one of the reasons why we had to change the implementation. Browser locales are not allowed to have environment attached especially then when you have multiple servers with probably different environment settings. But as it's a BC break it was not allowed for 1.6... 1.7 (trunk) behaves different. $locale-setLocale('browser'); This is exactly what I said before... when you need the locales from browser use the locale 'browser'. Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: Robert Castley [EMAIL PROTECTED] To: fw-general@lists.zend.com Sent: Wednesday, November 12, 2008 4:22 PM Subject: RE: [fw-general] Problem with Zend_Locale, UTF-8, setLocale on Windows Hi, I am using exactly the same ZF application code on Linux Windows. If I run the following code (taken from the manual) on Windows: $locale = new Zend_Locale(); // Return all default locales $found = $locale-getDefault(); print_r($found); // Return only browser locales $found2 = $locale-getDefault(Zend_Locale::BROWSER,TRUE); print_r($found2); I get returned; Array ( [en] = 1 [de_AT] = 1 [de] = 1 [en_GB] = 0.3 ) Array ( [en] = 1 [de_AT] = 1 [de] = 1 [en_GB] = 0.3 ) If I run it on Unix I get returned: Array ( [de_AT] = 1 [de] = 1 [en_GB] = 0.3 [en] = 0.3 ) Array ( [de_AT] = 1 [de] = 1 [en_GB] = 0.3 [en] = 0.3 ) I am using the same browser to access both systems (FF 3 with languages set as Austrain, German, English). Now ... If I go and edit Zend/Locale.php and change: $languages = $this-getBrowser(); if ((empty($languages) === true) or ($fastsearch === false)) { $languages = $this-getEnvironment() + $languages; $languages = $this-getFramework() + $languages; } To this: $languages = $this-getBrowser(); if ((empty($languages) === true) or ($fastsearch === false)) { //$languages = $this-getEnvironment() + $languages; $languages = $this-getFramework() + $languages; } I get the following on Windows: Array ( [de_AT] = 1 [de] = 1 [en_GB] = 0.3 [en] = 0.3 ) Array ( [de_AT] = 1 [de] = 1 [en_GB] = 0.3 [en] = 0.3 ) Which is correct! Even if I use a: $locale-setLocale('browser'); It still does work as expected. It seems that somehow the Locale.php code is getting the browser settings but then appending the environment settings. - Robert -Original Message- From: Thomas Weidner [mailto:[EMAIL PROTECTED] Sent: 12 November 2008 14:56 To: fw-general@lists.zend.com Subject: Re: [fw-general] Problem with Zend_Locale, UTF-8, setLocale on Windows Eigher you use browser settings which means that you stick on HTTP_ACCEPT_LANGUAGE or you stick with environment, which means LC_ALL. The browser uses the locale 'browser' within Zend_Locale. Also Zend_Locale has no getList() method. As you mentioned Registry Locale... do you mean setting the Zend_Locale object to Zend_Registry with the key Zend_Locale ? This is named Application wide locale and available with 1.7. This will not work in 1.6.2. You can read about this here: http://framework.zend.com/manual/en/zend.translate.using.html#zend.tra nslate .using.languages.automatic Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: Robert Castley [EMAIL PROTECTED] To: fw-general@lists.zend.com Sent: Wednesday, November 12, 2008 3:34 PM Subject: [fw-general] Problem with Zend_Locale, UTF-8, setLocale on Windows Hi, It seems that in 1.6.2 Zend_Locale doesn't handle well under Windows. Zend_Locale is using $language = setlocale(LC_ALL, 0); in the getEnvironment function Using the same browser to access two systems I get: On my Windows ZF system this will return: Array ( [0] = LC_COLLATE=C [1] = LC_CTYPE=English_United Kingdom.1252 [2] = LC_MONETARY=C [3] = LC_NUMERIC=C [4] = LC_TIME=C ) On my Linux ZF system this will return: Array ( [0] = C ) Now running my language debugger I see the following: Windows System: _SERVER[HTTP_ACCEPT_LANGUAGE]=de-at,de;q=0.7,en-gb;q=0.3 Registry contains: Display getList(): Array ( [en] = en [de] = de [es] = es [fr] = fr [it] = it ) Translate save: Save Registry Locale: en On Windows it is failing to detect the correct Browser Language setting. Using the same browser and pointing at a Linux system I get: _SERVER[HTTP_ACCEPT_LANGUAGE]=de-at,de;q=0.7,en-gb;q=0.3 Registry contains: Display getList(): Array (
RE: [fw-general] Zend PDT 2.0 all-in-one available (BETA)
After one week of using this release I do not consider it stable enough for production use. I have reverted back to 1.0.3 now. Some lovely new features in there but productivity is down whilst you try to figure out how todo/configure things. Looking forward to the next alpha/beta release. You can file issues/bugs etc over at eclipse.org/pdt. - Robert -Original Message- From: András Csányi [mailto:[EMAIL PROTECTED] Sent: 12 November 2008 20:25 To: Robert Castley Subject: Re: [fw-general] Zend PDT 2.0 all-in-one available (BETA) 2008/11/6 Robert Castley [EMAIL PROTECTED]: A bit off-list but those Zend guys have packaged an all-in-one build of the latest PDT 2.0 and Eclipse 3.4. http://downloads.zend.com/pdt/all-in-one/ Had a quick play and the hot-spots for me are: 1) Javascript editor and source formatter included :-) 2) It's quicker 3) Seems stable so far This is great that they have released this as it means you no longer need to build it yourself :-) Hi all! I wanted to try it, but i have lot of exceptions in workspace/.log file and the things aren't working. Another eclipse-ganymede to JEE developing is working fine. Where can I see the open bugs list or sending an bugreport? Thank you for help! András -- - - -- Csanyi Andras -- http://sayusi.hu -- Sayusi Ando -- Bízzál Istenben és tartsd szárazon a puskaport!.-- Cromwell This email has been scanned for all known viruses by the MessageLabs Email Security Service and the Macro 4 plc internal virus protection system. This email has been scanned for all known viruses by the MessageLabs Email Security Service and the Macro 4 plc internal virus protection system.
Re: [fw-general] Integrating FCKEditor with Zend_Form
-- james_fortune [EMAIL PROTECTED] wrote (on Wednesday, 12 November 2008, 08:43 AM -0800): I am currently creating a cms. A text area on each page of the site will be editable via fck editor however I am not sure how to put fck editor into a form and save the content back to the database. I have been trying to do this for a while now and am getting nowhere so anyhelp would be greatly appreciated. If FCKEditor operates similarly to diji.Editor, you'll need to tie an event to onSubmit to copy the data back to a hidden element. Take a look at how I accomplished that in the Editor dijit in Zend_Dojo for some ideas. -- Matthew Weier O'Phinney Software Architect | [EMAIL PROTECTED] Zend Framework | http://framework.zend.com/
[fw-general] Zend_File_Transfer - is this a BUG?
Hello, I have a problem on a unix server using Zend_File_Transfer (Zend_Form_Element_File). I try to upload a file and i get an exception The given destination is no directory or does not exist. In general the reason for this error is that I'm using different 'upload_tmp_dir', but the _getTmpDir method just looks for sys_get_temp_dir() and doesn't tries to look for ini_get('upload_tmp_dir'); So is this a bug, or exists here some workaround? -- Pagarbiai, Vladas Diržys Tel.: +370 620 69020 www.dirzys.com
[fw-general] Re: Bootstrap Action HelperBroker stops execution on production server
Hi Matthew, Thank you for the reply.I have tried on two different shared hosts. Both stucks on action helper line in bootstrap. Both doesn't look like having Gentoo whatever, both is running PHP 5.2+ and both are SPL enabled. I'm sorry to say that but i'm kind of pissed off with ZF here... I don't know what to do that we spent like 3 months for this project. Sad. 2008/11/12 kirpit [EMAIL PROTECTED] -- Yönlendirilmiş ileti -- From: Matthew Weier O'Phinney [EMAIL PROTECTED] To: fw-general@lists.zend.com Date: Wed, 12 Nov 2008 14:31:28 -0500 Subject: Re: [fw-general] Bootstrap Action HelperBroker stops execution on production server -- kirpit [EMAIL PROTECTED] wrote (on Wednesday, 12 November 2008, 07:05 PM +0200): I'm trying to install my first ZF project to many production server and it looks like ZF is only for development enjoyment. No one had any idea about following issue; http://www.nabble.com/ Interface-'IteratorAggregate'-not-found-error-in-production-server-td20431706.html IteratorAggregate is an interface from PHP's SPL (standard PHP library) which is included in default installs of PHP since 5.0. Please check the PHP version on your production server. BTW, Gentoo notoriously disables SPL in their defaults builds -- you have to add it as an emerge option. So i'm trying to install to one another shared hosting service again with pain. This time the problem is about nothing. Yes, nothing outputs. No freaky null empty nothing response body with http code 200. After debugging bootstrap file line by line i'm stucted at Zend_Controller_Action_HelperBroker::addPath(...); try { echo 'echo 1'; // echoes Zend_Controller_Action_HelperBroker::addPath('./library/Helpers', 'Helper'); echo 'echo 2'; // never echoes on production server } catch(Exception $error) { print_r($error); // and never catch any error } I'm sure there are other issues coming up but i please ask for help in this one for now. -- Matthew Weier O'Phinney Software Architect | [EMAIL PROTECTED] Zend Framework | http://framework.zend.com/ Hi, I'm trying to install my first ZF project to many production server and it looks like ZF is only for development enjoyment. No one had any idea about following issue; http://www.nabble.com/Interface-'IteratorAggregate'-not-found-error-in-production-server-td20431706.html So i'm trying to install to one another shared hosting service again with pain. This time the problem is about nothing. Yes, nothing outputs. No freaky null empty nothing response body with http code 200. After debugging bootstrap file line by line i'm stucted at Zend_Controller_Action_HelperBroker::addPath(...); try { echo 'echo 1'; // echoes Zend_Controller_Action_HelperBroker::addPath('./library/Helpers', 'Helper'); echo 'echo 2'; // never echoes on production server } catch(Exception $error) { print_r($error); // and never catch any error } I'm sure there are other issues coming up but i please ask for help in this one for now. Cheers.
Re: [fw-general] Bootstrap Action HelperBroker stops execution on production server
On Wed, Nov 12, 2008 at 8:31 PM, Matthew Weier O'Phinney [EMAIL PROTECTED] wrote: (...) BTW, Gentoo notoriously disables SPL in their defaults builds -- you have to add it as an emerge option. Just for the record - FreeBSD does that as well, you have to build spl via the meta port lang/php5-extensions or devel/php5-spl. Till
Re: [fw-general] Re: Bootstrap Action HelperBroker stops execution on production server
2008/11/12 kirpit [EMAIL PROTECTED]: Hi Matthew, Thank you for the reply.I have tried on two different shared hosts. Both stucks on action helper line in bootstrap. Both doesn't look like having Gentoo whatever, both is running PHP 5.2+ and both are SPL enabled. I'm sorry to say that but i'm kind of pissed off with ZF here... I don't know what to do that we spent like 3 months for this project. Sad. And the hosts can't install the *standard* PHP library? I'm sure they will do it on request. Also, just to make sure you know about the requirements, check this link: http://framework.zend.com/manual/en/requirements.html Till 2008/11/12 kirpit [EMAIL PROTECTED] -- Yönlendirilmiş ileti -- From: Matthew Weier O'Phinney [EMAIL PROTECTED] To: fw-general@lists.zend.com Date: Wed, 12 Nov 2008 14:31:28 -0500 Subject: Re: [fw-general] Bootstrap Action HelperBroker stops execution on production server -- kirpit [EMAIL PROTECTED] wrote (on Wednesday, 12 November 2008, 07:05 PM +0200): I'm trying to install my first ZF project to many production server and it looks like ZF is only for development enjoyment. No one had any idea about following issue; http://www.nabble.com/ Interface-'IteratorAggregate'-not-found-error-in-production-server-td20431706.html IteratorAggregate is an interface from PHP's SPL (standard PHP library) which is included in default installs of PHP since 5.0. Please check the PHP version on your production server. BTW, Gentoo notoriously disables SPL in their defaults builds -- you have to add it as an emerge option. So i'm trying to install to one another shared hosting service again with pain. This time the problem is about nothing. Yes, nothing outputs. No freaky null empty nothing response body with http code 200. After debugging bootstrap file line by line i'm stucted at Zend_Controller_Action_HelperBroker::addPath(...); try { echo 'echo 1'; // echoes Zend_Controller_Action_HelperBroker::addPath('./library/Helpers', 'Helper'); echo 'echo 2'; // never echoes on production server } catch(Exception $error) { print_r($error); // and never catch any error } I'm sure there are other issues coming up but i please ask for help in this one for now. -- Matthew Weier O'Phinney Software Architect | [EMAIL PROTECTED] Zend Framework | http://framework.zend.com/ Hi, I'm trying to install my first ZF project to many production server and it looks like ZF is only for development enjoyment. No one had any idea about following issue; http://www.nabble.com/Interface-'IteratorAggregate'-not-found-error-in-production-server-td20431706.html So i'm trying to install to one another shared hosting service again with pain. This time the problem is about nothing. Yes, nothing outputs. No freaky null empty nothing response body with http code 200. After debugging bootstrap file line by line i'm stucted at Zend_Controller_Action_HelperBroker::addPath(...); try { echo 'echo 1'; // echoes Zend_Controller_Action_HelperBroker::addPath('./library/Helpers', 'Helper'); echo 'echo 2'; // never echoes on production server } catch(Exception $error) { print_r($error); // and never catch any error } I'm sure there are other issues coming up but i please ask for help in this one for now. Cheers.
Re: [fw-general] Re: Bootstrap Action HelperBroker stops execution on production server
Hi Till, SPL is installed and enabled as default as Matthew mentioned. And all the extentions are fine. You may check by yourself; http://sergistan.com/server.php 13 Kasım 2008 Perşembe 01:20 tarihinde till [EMAIL PROTECTED] yazdı: 2008/11/12 kirpit [EMAIL PROTECTED]: Hi Matthew, Thank you for the reply.I have tried on two different shared hosts. Both stucks on action helper line in bootstrap. Both doesn't look like having Gentoo whatever, both is running PHP 5.2+ and both are SPL enabled. I'm sorry to say that but i'm kind of pissed off with ZF here... I don't know what to do that we spent like 3 months for this project. Sad. And the hosts can't install the *standard* PHP library? I'm sure they will do it on request. Also, just to make sure you know about the requirements, check this link: http://framework.zend.com/manual/en/requirements.html Till 2008/11/12 kirpit [EMAIL PROTECTED] -- Yönlendirilmiş ileti -- From: Matthew Weier O'Phinney [EMAIL PROTECTED] To: fw-general@lists.zend.com Date: Wed, 12 Nov 2008 14:31:28 -0500 Subject: Re: [fw-general] Bootstrap Action HelperBroker stops execution on production server -- kirpit [EMAIL PROTECTED] wrote (on Wednesday, 12 November 2008, 07:05 PM +0200): I'm trying to install my first ZF project to many production server and it looks like ZF is only for development enjoyment. No one had any idea about following issue; http://www.nabble.com/ Interface-'IteratorAggregate'-not-found-error-in-production-server-td20431706.html IteratorAggregate is an interface from PHP's SPL (standard PHP library) which is included in default installs of PHP since 5.0. Please check the PHP version on your production server. BTW, Gentoo notoriously disables SPL in their defaults builds -- you have to add it as an emerge option. So i'm trying to install to one another shared hosting service again with pain. This time the problem is about nothing. Yes, nothing outputs. No freaky null empty nothing response body with http code 200. After debugging bootstrap file line by line i'm stucted at Zend_Controller_Action_HelperBroker::addPath(...); try { echo 'echo 1'; // echoes Zend_Controller_Action_HelperBroker::addPath('./library/Helpers', 'Helper'); echo 'echo 2'; // never echoes on production server } catch(Exception $error) { print_r($error); // and never catch any error } I'm sure there are other issues coming up but i please ask for help in this one for now. -- Matthew Weier O'Phinney Software Architect | [EMAIL PROTECTED] Zend Framework | http://framework.zend.com/ Hi, I'm trying to install my first ZF project to many production server and it looks like ZF is only for development enjoyment. No one had any idea about following issue; http://www.nabble.com/Interface-'IteratorAggregate'-not-found-error-in-production-server-td20431706.html So i'm trying to install to one another shared hosting service again with pain. This time the problem is about nothing. Yes, nothing outputs. No freaky null empty nothing response body with http code 200. After debugging bootstrap file line by line i'm stucted at Zend_Controller_Action_HelperBroker::addPath(...); try { echo 'echo 1'; // echoes Zend_Controller_Action_HelperBroker::addPath('./library/Helpers', 'Helper'); echo 'echo 2'; // never echoes on production server } catch(Exception $error) { print_r($error); // and never catch any error } I'm sure there are other issues coming up but i please ask for help in this one for now. Cheers.
Re: [fw-general] Re: Bootstrap Action HelperBroker stops execution on production server
Run this on both your development machine and the production machine that's having issues: #!/usr/bin/php ?php print 'PHP version ' . phpversion() . \n; if (extension_loaded('SPL')) { print SPL present\n; } else { print SPL NOT present\n; } if (interface_exists('IteratorAggregate')) { print IteratorAggregate present\n; } else { print IteratorAggregate NOT present\n; } My results: $ ./test.php PHP version 5.2.6 SPL present IteratorAggregate present Incidentally, IteratorAggregate does NOT appear in my `php -i` results. -Matt 2008/11/12 kirpit [EMAIL PROTECTED] Hi Till, SPL is installed and enabled as default as Matthew mentioned. And all the extentions are fine. You may check by yourself; http://sergistan.com/server.php 13 Kasım 2008 Perşembe 01:20 tarihinde till [EMAIL PROTECTED] yazdı: 2008/11/12 kirpit [EMAIL PROTECTED]: Hi Matthew, Thank you for the reply.I have tried on two different shared hosts. Both stucks on action helper line in bootstrap. Both doesn't look like having Gentoo whatever, both is running PHP 5.2+ and both are SPL enabled. I'm sorry to say that but i'm kind of pissed off with ZF here... I don't know what to do that we spent like 3 months for this project. Sad. And the hosts can't install the *standard* PHP library? I'm sure they will do it on request. Also, just to make sure you know about the requirements, check this link: http://framework.zend.com/manual/en/requirements.html Till 2008/11/12 kirpit [EMAIL PROTECTED] -- Yönlendirilmiş ileti -- From: Matthew Weier O'Phinney [EMAIL PROTECTED] To: fw-general@lists.zend.com Date: Wed, 12 Nov 2008 14:31:28 -0500 Subject: Re: [fw-general] Bootstrap Action HelperBroker stops execution on production server -- kirpit [EMAIL PROTECTED] wrote (on Wednesday, 12 November 2008, 07:05 PM +0200): I'm trying to install my first ZF project to many production server and it looks like ZF is only for development enjoyment. No one had any idea about following issue; http://www.nabble.com/ Interface-'IteratorAggregate'-not-found-error-in-production-server-td20431706.html IteratorAggregate is an interface from PHP's SPL (standard PHP library) which is included in default installs of PHP since 5.0. Please check the PHP version on your production server. BTW, Gentoo notoriously disables SPL in their defaults builds -- you have to add it as an emerge option. So i'm trying to install to one another shared hosting service again with pain. This time the problem is about nothing. Yes, nothing outputs. No freaky null empty nothing response body with http code 200. After debugging bootstrap file line by line i'm stucted at Zend_Controller_Action_HelperBroker::addPath(...); try { echo 'echo 1'; // echoes Zend_Controller_Action_HelperBroker::addPath('./library/Helpers', 'Helper'); echo 'echo 2'; // never echoes on production server } catch(Exception $error) { print_r($error); // and never catch any error } I'm sure there are other issues coming up but i please ask for help in this one for now. -- Matthew Weier O'Phinney Software Architect | [EMAIL PROTECTED] Zend Framework | http://framework.zend.com/ Hi, I'm trying to install my first ZF project to many production server and it looks like ZF is only for development enjoyment. No one had any idea about following issue; http://www.nabble.com/Interface-'IteratorAggregate'-not-found-error-in-production-server-td20431706.html So i'm trying to install to one another shared hosting service again with pain. This time the problem is about nothing. Yes, nothing outputs. No freaky null empty nothing response body with http code 200. After debugging bootstrap file line by line i'm stucted at Zend_Controller_Action_HelperBroker::addPath(...); try { echo 'echo 1'; // echoes Zend_Controller_Action_HelperBroker::addPath('./library/Helpers', 'Helper'); echo 'echo 2'; // never echoes on production server } catch(Exception $error) { print_r($error); // and never catch any error } I'm sure there are other issues coming up but i please ask for help in this one for now. Cheers.
Re: [fw-general] Re: Bootstrap Action HelperBroker stops execution on production server
Development: - PHP version 5.2.6 SPL present IteratorAggregate present Production 1: (which gives IteratorAggregate not found error in error log) - PHP version 5.2.6 SPL present IteratorAggregate present Production 2: (which stops execution on action helperBroker::addPath line) - PHP version 5.2.1-0.dotdeb.1 SPL present IteratorAggregate present By the way I've installed a simple workshop ZF application with no helper and no db, which works fine on both servers. Thanks for helping both of you ppl. 2008/11/13 Matthew Ratzloff [EMAIL PROTECTED] Run this on both your development machine and the production machine that's having issues: #!/usr/bin/php ?php print 'PHP version ' . phpversion() . \n; if (extension_loaded('SPL')) { print SPL present\n; } else { print SPL NOT present\n; } if (interface_exists('IteratorAggregate')) { print IteratorAggregate present\n; } else { print IteratorAggregate NOT present\n; } My results: $ ./test.php PHP version 5.2.6 SPL present IteratorAggregate present Incidentally, IteratorAggregate does NOT appear in my `php -i` results. -Matt 2008/11/12 kirpit [EMAIL PROTECTED] Hi Till, SPL is installed and enabled as default as Matthew mentioned. And all the extentions are fine. You may check by yourself; http://sergistan.com/server.php 13 Kasım 2008 Perşembe 01:20 tarihinde till [EMAIL PROTECTED] yazdı: 2008/11/12 kirpit [EMAIL PROTECTED]: Hi Matthew, Thank you for the reply.I have tried on two different shared hosts. Both stucks on action helper line in bootstrap. Both doesn't look like having Gentoo whatever, both is running PHP 5.2+ and both are SPL enabled. I'm sorry to say that but i'm kind of pissed off with ZF here... I don't know what to do that we spent like 3 months for this project. Sad. And the hosts can't install the *standard* PHP library? I'm sure they will do it on request. Also, just to make sure you know about the requirements, check this link: http://framework.zend.com/manual/en/requirements.html Till 2008/11/12 kirpit [EMAIL PROTECTED] -- Yönlendirilmiş ileti -- From: Matthew Weier O'Phinney [EMAIL PROTECTED] To: fw-general@lists.zend.com Date: Wed, 12 Nov 2008 14:31:28 -0500 Subject: Re: [fw-general] Bootstrap Action HelperBroker stops execution on production server -- kirpit [EMAIL PROTECTED] wrote (on Wednesday, 12 November 2008, 07:05 PM +0200): I'm trying to install my first ZF project to many production server and it looks like ZF is only for development enjoyment. No one had any idea about following issue; http://www.nabble.com/ Interface-'IteratorAggregate'-not-found-error-in-production-server-td20431706.html IteratorAggregate is an interface from PHP's SPL (standard PHP library) which is included in default installs of PHP since 5.0. Please check the PHP version on your production server. BTW, Gentoo notoriously disables SPL in their defaults builds -- you have to add it as an emerge option. So i'm trying to install to one another shared hosting service again with pain. This time the problem is about nothing. Yes, nothing outputs. No freaky null empty nothing response body with http code 200. After debugging bootstrap file line by line i'm stucted at Zend_Controller_Action_HelperBroker::addPath(...); try { echo 'echo 1'; // echoes Zend_Controller_Action_HelperBroker::addPath('./library/Helpers', 'Helper'); echo 'echo 2'; // never echoes on production server } catch(Exception $error) { print_r($error); // and never catch any error } I'm sure there are other issues coming up but i please ask for help in this one for now. -- Matthew Weier O'Phinney Software Architect | [EMAIL PROTECTED] Zend Framework | http://framework.zend.com/ Hi, I'm trying to install my first ZF project to many production server and it looks like ZF is only for development enjoyment. No one had any idea about following issue; http://www.nabble.com/Interface-'IteratorAggregate'-not-found-error-in-production-server-td20431706.html So i'm trying to install to one another shared hosting service again with pain. This time the problem is about nothing. Yes, nothing outputs. No freaky null empty nothing response body with http code 200. After debugging bootstrap file line by line i'm stucted at Zend_Controller_Action_HelperBroker::addPath(...); try { echo 'echo 1'; // echoes Zend_Controller_Action_HelperBroker::addPath('./library/Helpers', 'Helper'); echo 'echo 2'; // never echoes on production server } catch(Exception $error) { print_r($error); // and never catch any error } I'm sure there are other issues coming up but i please ask for help in this one for now. Cheers.
[fw-general] Integration of spaw editor with zend framework
Is there anyone who has integrated spaw editor in zend framework? I am trying to integrate spaw editor in zend framework. I am using register autoload to load classes automatically. Zend_Loader::registerAutoload(); Now the problem I am getting is when I integrate spaw editor using following code in my controller class action include ($physical_path['Editor'].'spaw_control.class.php'); $sw = new SPAW_Wysiwyg( 'page_content' /*name*/, '' /*value*/, 'en' /*language*/, 'full' /*toolbar mode*/, 'default' /*theme*/, '700px' /*width*/, '475px' /*height*/); $this-view-myeditor = $sw-getHtml(); I am getting following error. Fatal error: Uncaught exception 'Zend_Session_Exception' with message 'Zend_Session::start() - E:\websites\certilogo\library\Zend\Loader.php(Line:83): Error #2 Zend_Loader::include_once() [ function.include function.include ]: Failed opening 'SpawConfigItem.php' for inclusion (include_path='.;library;library/editor;library/editor/class;application/modules/admin/models;application/modules/default/models;.;C:\php5\pear') Array' in E:\websites\certilogo\library\Zend\Session.php:432 Stack trace: #0 E:\websites\certilogo\library\Zend\Session\Namespace.php(116): Zend_Session::start(true) #1 E:\websites\certilogo\index.php(28): Zend_Session_Namespace-__construct('certilogo') #2 {main} thrown in E:\websites\certilogo\library\Zend\Session.php on line 432 It seems that register autoload is trying to search for SpawConfigItem.php for class SpawConfigItem as per zend class loading method. But class is actually in file /editor/class/config.class.php Can any one help me to solve this issue or how can we make loading of class for editor using some otherway. Thanks Amar. -- View this message in context: http://www.nabble.com/Integration-of-spaw-editor-with-zend-framework-tp20475545p20475545.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] disable output buffering for file transfer
Zend_File_Transfer does not use output buffering. Maybe you're having a webserver config problem because the limitations for uploading files are normally by the client or webserver. The uploaded file itself is only available after the transfer has been completed. Zend_File_Transfer can also handle files bigger than 2GB, the only limitation here is the HDD speed and the directory size. Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: Kononov Ruslan [EMAIL PROTECTED] To: fw-general@lists.zend.com Sent: Thursday, November 13, 2008 8:05 AM Subject: [fw-general] disable output buffering for file transfer By default, ZF included data buffering. What better way to turn off buffering for a specific action to transfer large files? -- View this message in context: http://www.nabble.com/disable-output-buffering-for-file-transfer-tp20475737p20475737.html Sent from the Zend Framework mailing list archive at Nabble.com.