Re: [fw-general] Zend_Date Problems
Note the difference between Y and y. Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: milesap mile...@gmail.com To: fw-general@lists.zend.com Sent: Tuesday, April 07, 2009 4:51 AM Subject: [fw-general] Zend_Date Problems Hello, I'm fairly new to Zend Framework, so forgive me if this is a really easy question. I have been looking everywhere for a solution. I am trying to get the difference between the current date and a persons birthday to see how old they are. $date = new Zend_Date(); $date-sub('April 3, 1980'); print $date-toString('Y'); The following prints 28, however the correct age would be 29, as the persons birthday was a few days ago. Does it not take the month and day into account when it subs the date? Or a better question would be what am I doing wrong? I have set my default timezone correctly. -- View this message in context: http://www.nabble.com/Zend_Date-Problems-tp22921295p22921295.html Sent from the Zend Framework mailing list archive at Nabble.com.
[fw-general] Zend_Application modules resource in INI
Hi, How is the build-in resource Modules activated in INI file? I have already other resources working nicely: autoloadernamespaces.0 = Zend_ autoloadernamespaces.1 = My_ phpsettings.display_errors = 0 phpsettings.error_reporting = 8191 phpsettings.date.timezone = Europe/Helsinki bootstrap.path = APPLICATION_PATH/Bootstrap.php resources.frontcontroller.moduledirectory = APPLICATION_PATH/modules resources.frontcontroller.defaultmodule = default resources.frontcontroller.throwerrors = true resources.frontcontroller.params.prefixDefaultModule = false resources.frontcontroller.baseUrl = /apumatti resources.frontcontroller.env = APPLICATION_ENV resources.db.adapter = pdo_mysql resources.db.params.host = localhost resources.db.params.username = username resources.db.params.password = password resources.db.params.dbname = my_database resources.db.isDefaultTableAdapter = true br, Marko -- View this message in context: http://www.nabble.com/Zend_Application-modules-resource-in-INI-tp22925120p22925120.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] new line character in textarea
Hey, I would assume this to be a standard feature. It trims empty spaces and lines. Why would you want to keep an extra empty line? For me for example this is the right way of doing this. And i don't see this as a bug. Vince. On Tue, Apr 7, 2009 at 12:23 PM, Aniketto aniket_ked...@rediffmail.comwrote: Hi all, I am using lot many textarea elements in my project. I am facing following problem. 1. Hit Enter 2 times(i.e. enter two empty lines). 2. Enter some text. 3. Now I save this data using a submit button. 4. After submitting when the page reloads one enter(empty line ) in lost. The textarea field in zend framework is defined in such a way that one new line always gets lost. I think this is bug in zend framework. Can anybody suggest remedy to this? I am searching a generic solution which applied at one place will solve problem of all my textareas. Please help... Thanks, Aniketto -- View this message in context: http://www.nabble.com/new-line-character-in-textarea-tp22925431p22925431.html Sent from the Zend Framework mailing list archive at Nabble.com. -- Vincent Gabriel. Lead Developer, Senior Support. Zend Certified Engineer. Zend Framework Certified Engineer.
Re: [fw-general] Zend_Application modules resource in INI
Sounds like you are experiencing this bug: http://framework.zend.com/issues/browse/ZF-6183 It is easily fixed editing the Zend_Application_Module_Bootstrap and removing the call to setOptions, I assume this will be fixed later, I think the guys are up against it trying to get all this done, please be patient :) Thx Keith 2009/4/7 Marko Korhonen marko.korho...@datafisher.com: So, adding line: resources.modules = this causes that code runs for a while, and then there is just a blank page? I use Zend_Application from the trunk (moved today from incubator) if I use _initModules function in my bootstrap it works fine... br, Marko keith Pope-4 wrote: See below: 2009/4/7 Marko Korhonen marko.korho...@datafisher.com: Hi, How is the build-in resource Modules activated in INI file? I have already other resources working nicely: autoloadernamespaces.0 = Zend_ autoloadernamespaces.1 = My_ phpsettings.display_errors = 0 phpsettings.error_reporting = 8191 phpsettings.date.timezone = Europe/Helsinki bootstrap.path = APPLICATION_PATH/Bootstrap.php resources.frontcontroller.moduledirectory = APPLICATION_PATH/modules resources.frontcontroller.defaultmodule = default resources.frontcontroller.throwerrors = true resources.frontcontroller.params.prefixDefaultModule = false resources.frontcontroller.baseUrl = /apumatti resources.frontcontroller.env = APPLICATION_ENV resources.modules = resources.db.adapter = pdo_mysql resources.db.params.host = localhost resources.db.params.username = username resources.db.params.password = password resources.db.params.dbname = my_database resources.db.isDefaultTableAdapter = true br, Marko -- View this message in context: http://www.nabble.com/Zend_Application-modules-resource-in-INI-tp22925120p22925120.html Sent from the Zend Framework mailing list archive at Nabble.com. -- -- [MuTe] -- -- View this message in context: http://www.nabble.com/Zend_Application-modules-resource-in-INI-tp22925120p22926165.html Sent from the Zend Framework mailing list archive at Nabble.com. -- -- [MuTe] --
Re: [fw-general] Zend_Application modules resource in INI
I posted here same problem 1-2 weeks ago also. -- Best regards, Cristian Bichis www.zftutorials.com | www.zfforums.com | www.zftalk.com | www.zflinks.com So, adding line: resources.modules = this causes that code runs for a while, and then there is just a blank page? I use Zend_Application from the trunk (moved today from incubator) if I use _initModules function in my bootstrap it works fine... br, Marko keith Pope-4 wrote: See below: 2009/4/7 Marko Korhonen marko.korho...@datafisher.com: Hi, How is the build-in resource Modules activated in INI file? I have already other resources working nicely: autoloadernamespaces.0 = Zend_ autoloadernamespaces.1 = My_ phpsettings.display_errors = 0 phpsettings.error_reporting = 8191 phpsettings.date.timezone = Europe/Helsinki bootstrap.path = APPLICATION_PATH/Bootstrap.php resources.frontcontroller.moduledirectory = APPLICATION_PATH/modules resources.frontcontroller.defaultmodule = default resources.frontcontroller.throwerrors = true resources.frontcontroller.params.prefixDefaultModule = false resources.frontcontroller.baseUrl = /apumatti resources.frontcontroller.env = APPLICATION_ENV resources.modules = resources.db.adapter = pdo_mysql resources.db.params.host = localhost resources.db.params.username = username resources.db.params.password = password resources.db.params.dbname = my_database resources.db.isDefaultTableAdapter = true br, Marko -- View this message in context: http://www.nabble.com/Zend_Application-modules-resource-in-INI-tp22925120p22925120.html Sent from the Zend Framework mailing list archive at Nabble.com. -- -- [MuTe] --
Re: [fw-general] Zend_Application modules resource in INI
So, adding line: resources.modules = this causes that code runs for a while, and then there is just a blank page? I use Zend_Application from the trunk (moved today from incubator) if I use _initModules function in my bootstrap it works fine... br, Marko keith Pope-4 wrote: See below: 2009/4/7 Marko Korhonen marko.korho...@datafisher.com: Hi, How is the build-in resource Modules activated in INI file? I have already other resources working nicely: autoloadernamespaces.0 = Zend_ autoloadernamespaces.1 = My_ phpsettings.display_errors = 0 phpsettings.error_reporting = 8191 phpsettings.date.timezone = Europe/Helsinki bootstrap.path = APPLICATION_PATH/Bootstrap.php resources.frontcontroller.moduledirectory = APPLICATION_PATH/modules resources.frontcontroller.defaultmodule = default resources.frontcontroller.throwerrors = true resources.frontcontroller.params.prefixDefaultModule = false resources.frontcontroller.baseUrl = /apumatti resources.frontcontroller.env = APPLICATION_ENV resources.modules = resources.db.adapter = pdo_mysql resources.db.params.host = localhost resources.db.params.username = username resources.db.params.password = password resources.db.params.dbname = my_database resources.db.isDefaultTableAdapter = true br, Marko -- View this message in context: http://www.nabble.com/Zend_Application-modules-resource-in-INI-tp22925120p22925120.html Sent from the Zend Framework mailing list archive at Nabble.com. -- -- [MuTe] -- -- View this message in context: http://www.nabble.com/Zend_Application-modules-resource-in-INI-tp22925120p22926165.html Sent from the Zend Framework mailing list archive at Nabble.com.
[fw-general] Zend_Application
Where i can download Zend_Application ? i cannot found it in svn. thx -- Elvin Şiriyev http://elvin.siriyev.net
Re: [fw-general] Zend_Application
svn co http://framework.zend.com/svn/framework/standard/trunk/library/Zend/ -- Mon 2009/4/7 Elvin Şiriyev el...@siriyev.net Where i can download Zend_Application ? i cannot found it in svn. thx -- Elvin Şiriyev http://elvin.siriyev.net
Re: [fw-general] Zend_Application modules resource in INI
See below: 2009/4/7 Marko Korhonen marko.korho...@datafisher.com: Hi, How is the build-in resource Modules activated in INI file? I have already other resources working nicely: autoloadernamespaces.0 = Zend_ autoloadernamespaces.1 = My_ phpsettings.display_errors = 0 phpsettings.error_reporting = 8191 phpsettings.date.timezone = Europe/Helsinki bootstrap.path = APPLICATION_PATH/Bootstrap.php resources.frontcontroller.moduledirectory = APPLICATION_PATH/modules resources.frontcontroller.defaultmodule = default resources.frontcontroller.throwerrors = true resources.frontcontroller.params.prefixDefaultModule = false resources.frontcontroller.baseUrl = /apumatti resources.frontcontroller.env = APPLICATION_ENV resources.modules = resources.db.adapter = pdo_mysql resources.db.params.host = localhost resources.db.params.username = username resources.db.params.password = password resources.db.params.dbname = my_database resources.db.isDefaultTableAdapter = true br, Marko -- View this message in context: http://www.nabble.com/Zend_Application-modules-resource-in-INI-tp22925120p22925120.html Sent from the Zend Framework mailing list archive at Nabble.com. -- -- [MuTe] --
Re: [fw-general] Zend_Application modules resource in INI
yup, it worked... thanx! public function __construct($application) { $this-setApplication($application); $key = strtolower($this-getModuleName()); if ($application-hasOption($key)) { // Don't run via setOptions() to prevent duplicate initialization //$this-setOptions($application-getOption($key)); } else { //$this-setOptions($application-getOptions()); } $this-initResourceLoader(); } keith Pope-4 wrote: Sounds like you are experiencing this bug: http://framework.zend.com/issues/browse/ZF-6183 It is easily fixed editing the Zend_Application_Module_Bootstrap and removing the call to setOptions, I assume this will be fixed later, I think the guys are up against it trying to get all this done, please be patient :) Thx Keith 2009/4/7 Marko Korhonen marko.korho...@datafisher.com: So, adding line: resources.modules = this causes that code runs for a while, and then there is just a blank page? I use Zend_Application from the trunk (moved today from incubator) if I use _initModules function in my bootstrap it works fine... br, Marko keith Pope-4 wrote: See below: 2009/4/7 Marko Korhonen marko.korho...@datafisher.com: Hi, How is the build-in resource Modules activated in INI file? I have already other resources working nicely: autoloadernamespaces.0 = Zend_ autoloadernamespaces.1 = My_ phpsettings.display_errors = 0 phpsettings.error_reporting = 8191 phpsettings.date.timezone = Europe/Helsinki bootstrap.path = APPLICATION_PATH/Bootstrap.php resources.frontcontroller.moduledirectory = APPLICATION_PATH/modules resources.frontcontroller.defaultmodule = default resources.frontcontroller.throwerrors = true resources.frontcontroller.params.prefixDefaultModule = false resources.frontcontroller.baseUrl = /apumatti resources.frontcontroller.env = APPLICATION_ENV resources.modules = resources.db.adapter = pdo_mysql resources.db.params.host = localhost resources.db.params.username = username resources.db.params.password = password resources.db.params.dbname = my_database resources.db.isDefaultTableAdapter = true br, Marko -- View this message in context: http://www.nabble.com/Zend_Application-modules-resource-in-INI-tp22925120p22925120.html Sent from the Zend Framework mailing list archive at Nabble.com. -- -- [MuTe] -- -- View this message in context: http://www.nabble.com/Zend_Application-modules-resource-in-INI-tp22925120p22926165.html Sent from the Zend Framework mailing list archive at Nabble.com. -- -- [MuTe] -- -- View this message in context: http://www.nabble.com/Zend_Application-modules-resource-in-INI-tp22925120p22926323.html Sent from the Zend Framework mailing list archive at Nabble.com.
[fw-general] new line character in textarea
Hi all, I am using lot many textarea elements in my project. I am facing following problem. 1. Hit Enter 2 times(i.e. enter two empty lines). 2. Enter some text. 3. Now I save this data using a submit button. 4. After submitting when the page reloads one enter(empty line ) in lost. The textarea field in zend framework is defined in such a way that one new line always gets lost. I think this is bug in zend framework. Can anybody suggest remedy to this? I am searching a generic solution which applied at one place will solve problem of all my textareas. Please help... Thanks, Aniketto -- View this message in context: http://www.nabble.com/new-line-character-in-textarea-tp22925431p22925431.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] new line character in textarea
More specifically, this is caused by the default filter 'stringTrim'. You can set the element filters on the form to change filtering behavior. -Bart Vadim Gabriel schreef: Hey, I would assume this to be a standard feature. It trims empty spaces and lines. Why would you want to keep an extra empty line? For me for example this is the right way of doing this. And i don't see this as a bug. Vince. On Tue, Apr 7, 2009 at 12:23 PM, Aniketto aniket_ked...@rediffmail.com mailto:aniket_ked...@rediffmail.com wrote: Hi all, I am using lot many textarea elements in my project. I am facing following problem. 1. Hit Enter 2 times(i.e. enter two empty lines). 2. Enter some text. 3. Now I save this data using a submit button. 4. After submitting when the page reloads one enter(empty line ) in lost. The textarea field in zend framework is defined in such a way that one new line always gets lost. I think this is bug in zend framework. Can anybody suggest remedy to this? I am searching a generic solution which applied at one place will solve problem of all my textareas. Please help... Thanks, Aniketto -- View this message in context: http://www.nabble.com/new-line-character-in-textarea-tp22925431p22925431.html Sent from the Zend Framework mailing list archive at Nabble.com. -- Vincent Gabriel. Lead Developer, Senior Support. Zend Certified Engineer. Zend Framework Certified Engineer.
[fw-general] xhr upload
Hello, I'm trying to make an ajax submission when uploading a file. I've got a Form that works fine on server side, but when adding dojo.xhrPost I get the following errors: Notice: Undefined index: tmp_name in /public_html/myproject/library/Zend/File/Transfer/Adapter/Abstract.php on line 589 Notice: Undefined index: error in /public_html/myproject/library/Zend/Validate/File/Upload.php on line 168 Notice: Undefined index: tmp_name in /public_html/myproject/library/Zend/Validate/File/Upload.php on line 170 When switching to dojo.io.bind then I cannot get a submission at all. Any ideas? -- View this message in context: http://www.nabble.com/xhr-upload-tp22930189p22930189.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] xhr upload
antonis wrote: Hello, I'm trying to make an ajax submission when uploading a file. I've got a Form that works fine on server side, but when adding dojo.xhrPost I get the following errors: Notice: Undefined index: tmp_name in /public_html/myproject/library/Zend/File/Transfer/Adapter/Abstract.php on line 589 Notice: Undefined index: error in /public_html/myproject/library/Zend/Validate/File/Upload.php on line 168 Notice: Undefined index: tmp_name in /public_html/myproject/library/Zend/Validate/File/Upload.php on line 170 When switching to dojo.io.bind then I cannot get a submission at all. Any ideas? You cannot upload a file via XHR. This is not a Zend thing, this is a general limitation. As such, Ajax file uploads are generally faked by submitting to a hidden iframe. There might be a workaround build into dojo, but I am not familiar with it and can't say either way. -- Brenton Alker PHP Developer - Brisbane, Australia http://blog.tekerson.com/ signature.asc Description: OpenPGP digital signature
Re: [fw-general] new line character in textarea
-- Bart McLeod mcl...@spaceweb.nl wrote (on Tuesday, 07 April 2009, 03:47 PM +0200): More specifically, this is caused by the default filter 'stringTrim'. You can set the element filters on the form to change filtering behavior. Actually... there are no default filters on any Zend_Form elements, much less a default filter of StringTrim. Most likely this is a browser behavior. Vadim Gabriel schreef: Hey, I would assume this to be a standard feature. It trims empty spaces and lines. Why would you want to keep an extra empty line? For me for example this is the right way of doing this. And i don't see this as a bug. Vince. On Tue, Apr 7, 2009 at 12:23 PM, Aniketto aniket_ked...@rediffmail.com wrote: Hi all, I am using lot many textarea elements in my project. I am facing following problem. 1. Hit Enter 2 times(i.e. enter two empty lines). 2. Enter some text. 3. Now I save this data using a submit button. 4. After submitting when the page reloads one enter(empty line ) in lost. The textarea field in zend framework is defined in such a way that one new line always gets lost. I think this is bug in zend framework. Can anybody suggest remedy to this? I am searching a generic solution which applied at one place will solve problem of all my textareas. Please help... Thanks, Aniketto -- View this message in context: http://www.nabble.com/ new-line-character-in-textarea-tp22925431p22925431.html Sent from the Zend Framework mailing list archive at Nabble.com. -- Vincent Gabriel. Lead Developer, Senior Support. Zend Certified Engineer. Zend Framework Certified Engineer. -- Matthew Weier O'Phinney Software Architect | matt...@zend.com Zend Framework | http://framework.zend.com/
Re: [fw-general] Zend_Date Problems
milesap wrote: Hello, I'm fairly new to Zend Framework, so forgive me if this is a really easy question. I have been looking everywhere for a solution. I am trying to get the difference between the current date and a persons birthday to see how old they are. $date = new Zend_Date(); $date-sub('April 3, 1980'); print $date-toString('Y'); The following prints 28, however the correct age would be 29, as the persons birthday was a few days ago. Does it not take the month and day into account when it subs the date? Or a better question would be what am I doing wrong? I have set my default timezone correctly. I'm no Zend_Date expert, but I've been looking at this for a bit mostly because I am interested in how Zend_Date works. The behaviour of -sub seems a bit erratic. I would expect the following 2 code fragments to output the same thing. $date = new Zend_Date('April 7, 2009'); $date-sub('April 3, 1980'); print $date-toString() . \n; $date = new Zend_Date('April 7, 2009'); $date-sub(new Zend_Date('April 3, 1980')); print $date-toString() . \n; but they don't. The output is Dec 6, 0028 3:00:00 PM Jan 4, 1999 3:00:00 PM I also experiment with 'y' vs 'Y' as suggested by Thomas and still got 28. Gotta go do some other stuff, may take a look again later. Daryl
Re: [fw-general] new line character in textarea
oops, sorry for the misinformation. I should have asked if maybe he had added a stringTrim filter, but then he would have lost both newlines...so that leaves us wondering which browser is doing this. Matthew Weier O'Phinney schreef: -- Bart McLeod mcl...@spaceweb.nl wrote (on Tuesday, 07 April 2009, 03:47 PM +0200): More specifically, this is caused by the default filter 'stringTrim'. You can set the element filters on the form to change filtering behavior. Actually... there are no default filters on any Zend_Form elements, much less a default filter of StringTrim. Most likely this is a browser behavior. Vadim Gabriel schreef: Hey, I would assume this to be a standard feature. It trims empty spaces and lines. Why would you want to keep an extra empty line? For me for example this is the right way of doing this. And i don't see this as a bug. Vince. On Tue, Apr 7, 2009 at 12:23 PM, Aniketto aniket_ked...@rediffmail.com wrote: Hi all, I am using lot many textarea elements in my project. I am facing following problem. 1. Hit Enter 2 times(i.e. enter two empty lines). 2. Enter some text. 3. Now I save this data using a submit button. 4. After submitting when the page reloads one enter(empty line ) in lost. The textarea field in zend framework is defined in such a way that one new line always gets lost. I think this is bug in zend framework. Can anybody suggest remedy to this? I am searching a generic solution which applied at one place will solve problem of all my textareas. Please help... Thanks, Aniketto -- View this message in context: http://www.nabble.com/ new-line-character-in-textarea-tp22925431p22925431.html Sent from the Zend Framework mailing list archive at Nabble.com. -- Vincent Gabriel. Lead Developer, Senior Support. Zend Certified Engineer. Zend Framework Certified Engineer.
[fw-general] New proposal Zend_View_Helper_Currency
Hy all, there is a new proposal for a Currency View Helper. http://framework.zend.com/wiki/display/ZFPROP/Zend_View_Helper_Currency+-+Thomas+Weidner Review and comments appreciated Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com
[fw-general] Zend_Search_Lucene and Hebrew
Hello, I'm using Zend_Search_Lucene in my CakePHP application. The problem is, that when I search for Hebrew words, it always returns empty array. This doesn't occur when I search for latin words, even those that have non-standard characters like ąćę etc. I index pages (that's only use for Lucene in this particular app) using Zend_Search_Lucene_Document_Html::loadHTMLFile($someUrl, true). All pages have content-type meta tag: meta http-equiv=Content-Type content=text/html; charset=UTF-8 / And I search using this code: Zend_Search_Lucene_Search_QueryParser::setDefaultEncoding('UTF-8'); $index = Zend_Search_Lucene::open(TMP . '/lucene/structure_index'); $results = $phrase ? $index-find($phrase) : array(); I guess this is a matter of 1 line here or there, but after reading the docs I'm so far stuck. Any help would be greatly appreciated. Regards, Piotr -- View this message in context: http://www.nabble.com/Zend_Search_Lucene-and-Hebrew-tp22938539p22938539.html Sent from the Zend Framework mailing list archive at Nabble.com.
[fw-general] Problems running a dojo example
Hi all, I'm trying to run a dojo example in my application, but without success :-( The base example is taken from this example http://www.sitepen.com/labs/code/grid/dojo_grid_1.2/layout_markup_2.html What I've done until now is the following: in the layout script: !-- enable dojo if needed -- ? if ($this-dojo()-isEnabled()) { $this-dojo()-addStyleSheetModule('dijit.themes.tundra'); $this-dojo()-useCdn(); echo $this-dojo(); } ? In the view script: ? // setup required dojo elements: $this-dojo()-enable(); // require dojo modules $this-dojo()-requireModule('dojo.data.ItemFileReadStore'); $this-dojo()-requireModule('dojox.grid.DataGrid'); $this-dojo()-javascriptCaptureStart(); ? var jsonStore = new dojo.data.ItemFileReadStore({ url: ?=$this-langUrl('json', 'account')? }); ? $this-dojo()-javascriptCaptureEnd(); ? div class=tundra h1Gasket Lookup/h1 div class=partsContainer div class=gridContainer table id=gridNode jsId=grid dojoType=dojox.grid.DataGrid query={ part_num: '*' } store=jsonStore colgroup span=1 noscroll=true/colgroup colgroup span=4/colgroup thead tr th field=part_num width=300pxPart Number/th th field=min_temp width=100pxMinimum Temperature/th th field=max_temp width=100pxMaximum Temperature/th th field=type width=100pxType/th th field=thick width=5emThickness/th /tr /thead /table /div /div /div The code generated from this is (without unnecessary html): !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en head ... !-- enable dojo if needed -- style type=text/css !-- @import http://ajax.googleapis.com/ajax/libs/dojo/1.2.0/dijit/themes/tundra/tundra.css;; -- /style script type=text/javascript //![CDATA[ var djConfig = {parseOnLoad:true}; //]] /script script type=text/javascript src=http://ajax.googleapis.com/ajax/libs/dojo/1.2.0/dojo/dojo.xd.js;/script script type=text/javascript //![CDATA[ dojo.require(dojo.data.ItemFileReadStore); dojo.require(dojox.grid.DataGrid); var jsonStore = new dojo.data.ItemFileReadStore({ url: /spots/english/account/json }); //]] /script /head body ... div class=tundra h1Gasket Lookup/h1 div class=partsContainer div class=gridContainer table id=gridNode jsId=grid dojoType=dojox.grid.DataGrid query={ part_num: '*' } store=jsonStore colgroup span=1 noscroll=true/colgroup colgroup span=4/colgroup thead tr th field=part_num width=300pxPart Number/th th field=min_temp width=100pxMinimum Temperature/th th field=max_temp width=100pxMaximum Temperature/th th field=type width=100pxType/th th field=thick width=5emThickness/th /tr /thead /table /div /div /div /div ... /body /html Imho the code generated above is correct, if I instantiate other dijits with the above code everything works, but with this code I have the following error in the firebug console: dojo.data is undefined http://localhost:3128/spots/english/account/test Line 31 when executing this code: var jsonStore = new dojo.data.ItemFileRe...{ url: /spots/english/account/json }); P.S. the json output is correct, I copied it from the starting example. Any hint? -- View this message in context: http://www.nabble.com/Problems-running-a-dojo-example-tp22939493p22939493.html Sent from the Zend Framework mailing list archive at Nabble.com.
[fw-general] Zend Framework + Jquery Consultants
Hello, I am involved with a Zend project that could use some additional help to complete. If you are a consultant looking for some additional work please contact me. Specific skills: Zend Framework JQuery PostgresSQL Thanks -Tom Printy
Re: [fw-general] new line character in textarea
@Vincent Gabriel Thanks for help. If it is a standard feature to trim empty lines and spaces, then why it trims only one empty line. Also I want to display the empty line as my client wants me to do so. Aniketto Bart McLeod wrote: oops, sorry for the misinformation. I should have asked if maybe he had added a stringTrim filter, but then he would have lost both newlines...so that leaves us wondering which browser is doing this. Matthew Weier O'Phinney schreef: -- Bart McLeod mcl...@spaceweb.nl wrote (on Tuesday, 07 April 2009, 03:47 PM +0200): More specifically, this is caused by the default filter 'stringTrim'. You can set the element filters on the form to change filtering behavior. Actually... there are no default filters on any Zend_Form elements, much less a default filter of StringTrim. Most likely this is a browser behavior. Vadim Gabriel schreef: Hey, I would assume this to be a standard feature. It trims empty spaces and lines. Why would you want to keep an extra empty line? For me for example this is the right way of doing this. And i don't see this as a bug. Vince. On Tue, Apr 7, 2009 at 12:23 PM, Aniketto aniket_ked...@rediffmail.com wrote: Hi all, I am using lot many textarea elements in my project. I am facing following problem. 1. Hit Enter 2 times(i.e. enter two empty lines). 2. Enter some text. 3. Now I save this data using a submit button. 4. After submitting when the page reloads one enter(empty line ) in lost. The textarea field in zend framework is defined in such a way that one new line always gets lost. I think this is bug in zend framework. Can anybody suggest remedy to this? I am searching a generic solution which applied at one place will solve problem of all my textareas. Please help... Thanks, Aniketto -- View this message in context: http://www.nabble.com/ new-line-character-in-textarea-tp22925431p22925431.html Sent from the Zend Framework mailing list archive at Nabble.com. -- Vincent Gabriel. Lead Developer, Senior Support. Zend Certified Engineer. Zend Framework Certified Engineer. -- View this message in context: http://www.nabble.com/new-line-character-in-textarea-tp22925431p22940957.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Zend_Loader_PluginLoader::require_once() couldn't resolve host name in /.../Zend/Loader/PluginLoader.php on line 389
The described problems have been resolved by moving the account to a different server. This was necessary for other reasons and at the same time took care of this problem. Cheers Henning -- View this message in context: http://www.nabble.com/Zend_Loader_PluginLoader%3A%3Arequire_once%28%29-couldn%27t-resolve-host-name-in--...-Zend-Loader-PluginLoader.php-on-line-389-tp22901943p22942532.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] new line character in textarea
Hey, Metthew responded saying this can be due to a browser issue, Did you try that with several browsers? Vince. On Wed, Apr 8, 2009 at 3:27 AM, Aniketto aniket_ked...@rediffmail.comwrote: @Vincent Gabriel Thanks for help. If it is a standard feature to trim empty lines and spaces, then why it trims only one empty line. Also I want to display the empty line as my client wants me to do so. Aniketto Bart McLeod wrote: oops, sorry for the misinformation. I should have asked if maybe he had added a stringTrim filter, but then he would have lost both newlines...so that leaves us wondering which browser is doing this. Matthew Weier O'Phinney schreef: -- Bart McLeod mcl...@spaceweb.nl wrote (on Tuesday, 07 April 2009, 03:47 PM +0200): More specifically, this is caused by the default filter 'stringTrim'. You can set the element filters on the form to change filtering behavior. Actually... there are no default filters on any Zend_Form elements, much less a default filter of StringTrim. Most likely this is a browser behavior. Vadim Gabriel schreef: Hey, I would assume this to be a standard feature. It trims empty spaces and lines. Why would you want to keep an extra empty line? For me for example this is the right way of doing this. And i don't see this as a bug. Vince. On Tue, Apr 7, 2009 at 12:23 PM, Aniketto aniket_ked...@rediffmail.com wrote: Hi all, I am using lot many textarea elements in my project. I am facing following problem. 1. Hit Enter 2 times(i.e. enter two empty lines). 2. Enter some text. 3. Now I save this data using a submit button. 4. After submitting when the page reloads one enter(empty line ) in lost. The textarea field in zend framework is defined in such a way that one new line always gets lost. I think this is bug in zend framework. Can anybody suggest remedy to this? I am searching a generic solution which applied at one place will solve problem of all my textareas. Please help... Thanks, Aniketto -- View this message in context: http://www.nabble.com/ new-line-character-in-textarea-tp22925431p22925431.html Sent from the Zend Framework mailing list archive at Nabble.com. -- Vincent Gabriel. Lead Developer, Senior Support. Zend Certified Engineer. Zend Framework Certified Engineer. -- View this message in context: http://www.nabble.com/new-line-character-in-textarea-tp22925431p22940957.html Sent from the Zend Framework mailing list archive at Nabble.com. -- Vincent Gabriel. Lead Developer, Senior Support. Zend Certified Engineer. Zend Framework Certified Engineer.
Re: [fw-general] Zend_Search_Lucene and Hebrew
Hey, Unfortunately, I havn't used Lucene with Hebrew letters yet. But one thing i would like to be sure about. You said it returns an empty array, I took a look at this line from you code: $results = $phrase ? $index-find($phrase) : array(); I assume $phrase is the user submitted search phrase, If it's empty then it will return an empty array from the ternary condition. Are you sure this is not the empty array your returning all the time from the $phrase being null? Vince. On Wed, Apr 8, 2009 at 12:19 AM, centralniak kilc...@gmail.com wrote: Hello, I'm using Zend_Search_Lucene in my CakePHP application. The problem is, that when I search for Hebrew words, it always returns empty array. This doesn't occur when I search for latin words, even those that have non-standard characters like ąćę etc. I index pages (that's only use for Lucene in this particular app) using Zend_Search_Lucene_Document_Html::loadHTMLFile($someUrl, true). All pages have content-type meta tag: meta http-equiv=Content-Type content=text/html; charset=UTF-8 / And I search using this code: Zend_Search_Lucene_Search_QueryParser::setDefaultEncoding('UTF-8'); $index = Zend_Search_Lucene::open(TMP . '/lucene/structure_index'); $results = $phrase ? $index-find($phrase) : array(); I guess this is a matter of 1 line here or there, but after reading the docs I'm so far stuck. Any help would be greatly appreciated. Regards, Piotr -- View this message in context: http://www.nabble.com/Zend_Search_Lucene-and-Hebrew-tp22938539p22938539.html Sent from the Zend Framework mailing list archive at Nabble.com. -- Vincent Gabriel. Lead Developer, Senior Support. Zend Certified Engineer. Zend Framework Certified Engineer.