[fw-general] Is CLDR gone?

2012-08-01 Thread Саша Стаменковић
I updated to latest zf2 master and I noticed Locale is moved to I18n. More important, there is no CLDR! What is happening? How can I fetch locale data (languages/territories) now? --- Regards, Saša Stamenković

Re: [fw-general] Is CLDR gone?

2012-08-01 Thread Саша Стаменковић
:19, Саша Стаменковић umpir...@gmail.com wrote: I updated to latest zf2 master and I noticed Locale is moved to I18n. More important, there is no CLDR! What is happening? How can I fetch locale data (languages/territories) now? --- Regards, Saša Stamenković -- ~Robert Basic

Re: [fw-general] Is CLDR gone?

2012-08-01 Thread Саша Стаменковић
-td4656028.htmldidn't reach my inbox. He suggested to use \Locale http://de.php.net/manual/de/class.locale.php. But I need list of all languages and all territories? On Wed, Aug 1, 2012 at 3:24 PM, Саша Стаменковић umpir...@gmail.com wrote: Nope, there use to be Zend\Locale\Data\Cldr, but now

Re: [fw-general] Is CLDR gone?

2012-08-01 Thread Саша Стаменковић
My workaround was to downgrade to zf1 which is still capable to do the job :P --- Regards, Saša Stamenković On Wed, Aug 1, 2012 at 3:46 PM, Саша Стаменковић umpir...@gmail.com wrote: BTW, there is some problem with mailing list, I'm not getting all responses via email, for example Frank

Re: [fw-general] Is CLDR gone?

2012-08-01 Thread Саша Стаменковић
Anyone know what is the CLDR version in zf1 trunk? Or how to check it? --- Regards, Saša Stamenković On Wed, Aug 1, 2012 at 5:38 PM, Саша Стаменковић umpir...@gmail.com wrote: My workaround was to downgrade to zf1 which is still capable to do the job :P --- Regards, Saša Stamenković

Re: [fw-general] Zend Framework Composer Pakages

2012-07-31 Thread Саша Стаменковић
Ah, great, didn't know about that particular option. Still waiting for answer regarding zend-db package. Thanks a lot! --- Regards, Saša Stamenković On Tue, Jul 31, 2012 at 11:31 PM, Dennis Winter dennis.winter...@gmail.comwrote: Hi, sadly I can't help you about your issue with zend-db, but

[fw-general] Zend_Config_Xml strange behaviour

2011-03-23 Thread Саша Стаменковић
Hi. I have a strange problem with Zend_Config_Xml. Here is an example. With this xml file https://gist.github.com/883465 this code: $config = new Zend_Config_Xml('config.xml'); var_dump($config-get('elements')-get('element')-toArray()); gives: array(2) { [0]= array(2) { [a]=

Re: [fw-general] Re: Zend_Date setDay() works strange for sundays

2010-11-29 Thread Саша Стаменковић
Thanks Damir, worked like a charm ;) Regards, Saša Stamenković On Mon, Nov 29, 2010 at 1:48 PM, damir.mitrovic damir.mitro...@gmail.comwrote: Hi, Zend_Date has method: setWeekday that can be used for this purpose. /** * Sets a new weekday * The weekday can be a number or a

Re: [fw-general] Re: ZF models and Zend_Db classes

2010-11-19 Thread Саша Стаменковић
I think we are missing entire layer here - service layer. It lays under application/services and it is registered as default space in autoloader. I'm thinking about how it should look like with doctrine models. http://dev.juokaz.com/programming/service-layer-in-web-applications Any advices on

Re: [fw-general] Re: ZF 2.0 when and what?

2010-11-10 Thread Саша Стаменковић
Anyone knows when will doctrine 2 be out of beta? Regards, Saša Stamenković On Wed, Nov 10, 2010 at 3:25 PM, monk.e.boy j...@teethgrinder.co.uk wrote: What are the plans for the ORM? How will the class autoloading work in 2.0, does it work with Doctrine 2? (APC

Re: [fw-general] Re: ZF 2.0 when and what?

2010-11-10 Thread Саша Стаменковић
Wow, refactored MVC, that is great news! Thanks for the answer and resources. Regards, Saša Stamenković On Wed, Nov 10, 2010 at 5:44 PM, Matthew Weier O'Phinney matt...@zend.comwrote: -- umpirsky umpir...@gmail.com wrote (on Wednesday, 10 November 2010, 07:35 AM -0800): How hard it will

Re: [fw-general] Accessing config from CLI crons

2010-11-05 Thread Саша Стаменковић
Brilliant, worked like a charm! Thanks Hector :) Regards, Saša Stamenković On Fri, Nov 5, 2010 at 2:41 PM, Hector Virgen djvir...@gmail.com wrote: I believe that param is added when the application is run(). Since you're not calling run(), you'll need to add that param manually:

[fw-general] Issue tracker down?

2010-10-01 Thread Саша Стаменковић
http://framework.zend.com/issues/ is down. Regards, Saša Stamenković

Re: [fw-general] Performance and Example of Enterprice Applications

2010-09-04 Thread Саша Стаменковић
I have just finished http://automobi.li/, uses Zend Framework and integrates jQueryUI with some customizations of ZendX_JQuery. Regards, Saša Stamenković On Sat, Sep 4, 2010 at 8:48 AM, i...@antoniocaccese.it wrote: Thank you very much, friends. I'm sure that i will persuade my boss. Antonio

Re: [fw-general] Modular Application

2010-08-30 Thread Саша Стаменковић
I don't see need for modules in that case, why not making it separate app? Regards, Saša Stamenković On Mon, Aug 30, 2010 at 7:02 PM, Rafael dexter...@hotmail.com wrote: Thanks for attention, I have already added the code to my application.ini resources.frontController.moduleDirectory

[fw-general] Re: [zf-contributors] Poll: Should underscore prefixing of non-public elements be dropped?

2010-08-13 Thread Саша Стаменковић
Can you tell us current score? :) Regards, Saša Stamenković On Thu, Aug 12, 2010 at 6:05 PM, Matthew Weier O'Phinney matt...@zend.comwrote: ZF Coding Standards are based on PEAR's CS. That standard was developed first by Horde, then expanded by PEAR, during the PHP 4 lifecycle. PHP 4 had no

Re: [fw-general] RE: Team Development

2010-08-11 Thread Саша Стаменковић
If every developer have its own branch, he can commit to his branch, so you can diff with trunk, and see cnahges. Regards, Saša Stamenković On Wed, Aug 11, 2010 at 3:20 PM, Paul z...@zooluserver.com wrote: One more thing I thought of, was accessing a developers local environment. Currently,

[fw-general] Is there a plan for Zend_Locale 2.0 ?

2010-08-03 Thread Саша Стаменковић
Hi. I wonder if there are plans for Zend_Locale in zf 2.0. The thing I miss very much is support for locale variants. There is a related issue http://zendframework.com/issues/browse/ZF-7485?page=com.atlassian.jirafisheyeplugin:fisheye-issuepanel . It would be nice to add support for this.

Re: [fw-general] Is there a plan for Zend_Locale 2.0 ?

2010-08-03 Thread Саша Стаменковић
http://www.thomasweidner.com - Original Message - From: Саша Стаменковић umpir...@gmail.com To: Thomas Weidner thomas.weid...@gmx.at Sent: Tuesday, August 03, 2010 9:56 AM Subject: Re: [fw-general] Is there a plan for Zend_Locale 2.0 ? O.K. Then, are there any plans for adding script

Re: [fw-general] 301 redirects after changing routes

2010-07-21 Thread Саша Стаменковић
Not that I know about that. But I'll need sth like that, so I'm waiting for the answer, but don't think this is possible. Regards, Saša Stamenković On Thu, Jul 22, 2010 at 4:54 AM, Jean-Michel Philippon-Nadeau j...@jmpnadeau.ca wrote: On Tue, Jul 20, 2010 at 5:51 PM, Саша Стаменковић umpir

Re: [fw-general] 301 redirects after changing routes

2010-07-20 Thread Саша Стаменковић
$this-_redirect('/new-url', array('code' = 301)); Regards, Saša Stamenković On Tue, Jul 20, 2010 at 7:32 PM, Jean-Michel Philippon-Nadeau j...@jmpnadeau.ca wrote: Hi List, For SEO reasons I've changed the format of my URLs from controller/action/param/value to /controller/value. I also

[fw-general] Zend_Db PDO_PGSQL adapter, quoting problem

2010-06-30 Thread Саша Стаменковић
Hi. I'm trying to migrate from MySQL to pgsql. Code: $this-select() -setIntegrityCheck(false) -from('Feed', array('FeedId', 'FeedName')) -joinLeft(array( 'LogDate' = new Zend_Db_Expr('(' . $this-select() -setIntegrityCheck(false) -from('Log', array('FeedId AS LogDateFeedId',

[fw-general] Translating urls

2010-06-28 Thread Саша Стаменковић
Hi. I'm adding translated urls to my project. In app config I have some routes, by adding @ I'm able to translate them, but, what to do with default route? How to translate this urls? Do I have to define new default route with @ prefix? Regards, Saša Stamenković

[fw-general] Translating navigation

2010-06-10 Thread Саша Стаменковић
Hi. I'm trying to translate my navigation, but something is wrong, it simply won't use the translator, or I am doing something wrong. In my module bootstrap I'm duilding navigation from XML config $navigation = new Zend_Navigation($config);

Re: [fw-general] Re: Translating navigation

2010-06-10 Thread Саша Стаменковић
Ah, menu partial ul class=navigation ui-helper-clearfix ? $i = 0; foreach ($this-container as $page) : ? li class=ui-widget-header? if (0 == $i++) : ? ui-corner-left? elseif ($this-container-count() == $i) : ? ui-corner-right? endif; ? a title=?= $page-getTitle() ? href=?= $page-getHref() ??=

Re: [fw-general] Fatal error: Call to undefined method Zend_View_Helper_Placeholder_Container::ksort() in /var/local/Zend/View/Helper/HeadLink.php on line 321

2010-06-07 Thread Саша Стаменковић
Looks like you have old version of PHP. Which version are you using? Regards, Saša Stamenković On Mon, Jun 7, 2010 at 12:21 PM, Bart McLeod mcl...@spaceweb.nl wrote: *Fatal error*: Call to undefined method Zend_View_Helper_Placeholder_Container::ksort() in *

Re: [fw-general] Fatal error: Call to undefined method Zend_View_Helper_Placeholder_Container::ksort() in /var/local/Zend/View/Helper/HeadLink.php on line 321

2010-06-07 Thread Саша Стаменковић
McLeod wrote: You may be right, this is on a newly installed vps, where they installed a smaller version then I had asked for. 5.1.6 I think. I will check against 5.3, yes, that seems to work as usual. I will inform the isp, thank you! Bart Op 7-6-2010 12:46, Саша Стаменковић schreef: Looks

[fw-general] Zend_Translate missing locale code

2010-05-31 Thread Саша Стаменковић
As I mentioned in some of earlier topics, Serbian language have 2 alphabets, cyrilic and latin. There is sr_RS for cyrilic, but sr...@latin is missing (see http://www.gnu.org/software/hello/manual/gettext/Locale-Names.html). Regards, Saša Stamenković

Re: [fw-general] Zend_Translate plural forms and poedit

2010-05-31 Thread Саша Стаменковић
2010/5/30 Саша Стаменковић umpir...@gmail.com: But still, with traditional plural form, poedit works, but is able to parse onlly strings under ngettext, but not pural forms under translate keyword. Ex: $translate-plural('Pronađen je %s auto oglas', 'Pronađeno je %s auto oglasa

Re: [fw-general] Zend_Translate missing locale code

2010-05-31 Thread Саша Стаменковић
some topics earlier) Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: Саша Стаменковић umpir...@gmail.com To: Nabble Zend Framework General fw-general@lists.zend.com Sent: Monday, May 31, 2010 1:24 PM Subject: [fw

Re: [fw-general] Zend_Translate missing locale code

2010-05-31 Thread Саша Стаменковић
for cyrillic. You need to create a related routing for this to work. Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: Саша Стаменковић umpir...@gmail.com To: Thomas Weidner thomas.weid...@gmx.at Cc: Nabble Zend Framework

[fw-general] Translating model options

2010-05-31 Thread Саша Стаменковић
I need to access zend translate in my models. The simplest way to do it is to get it from registry Zend_Registry::get('Zend_Translate'). But I have one class in my models which have static options for select element, like protected $options = array( self::NOTES =

[fw-general] Zend_Translate plural forms and poedit

2010-05-30 Thread Саша Стаменковић
In manual there is an example of modern plural translations: $translate-translate(array('Car','Cars first plural','Cars second plural', $number,'ru')); i use poedit to update translation strings from

Re: [fw-general] Zend_Translate plural forms and poedit

2010-05-30 Thread Саша Стаменковић
). Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: Саша Стаменковић umpir...@gmail.com To: Nabble Zend Framework General fw-general@lists.zend.com Sent: Sunday, May 30, 2010 2:26 PM Subject: [fw-general] Zend_Translate plural

Re: [fw-general] Zend_Translate plural forms and poedit

2010-05-30 Thread Саша Стаменковић
', 'Pronađeno je %s auto oglasa', $count); // found by poedit I added plural to keywords. Where did I go wrong? Do you use parsing from sources at all? Regards, Saša Stamenković On Sun, May 30, 2010 at 3:57 PM, Саша Стаменковић umpir...@gmail.comwrote: Hm, but we should create interfaces

Re: [fw-general] Zend_Translate plural forms and poedit

2010-05-30 Thread Саша Стаменковић
Framework http://www.thomasweidner.com - Original Message - From: Aleksey Zapparov i...@member.fsf.org To: Саша Стаменковић umpir...@gmail.com Cc: Thomas Weidner thomas.weid...@gmx.at; Nabble Zend Framework General fw-general@lists.zend.com Sent: Monday, May 31, 2010 12:11 AM

Re: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-27 Thread Саша Стаменковић
Still sometimes get PDOException with message 'SQLSTATE[42000] [1203] User *** already has more than 'max_user_connections' active connections :) Regards, Saša Stamenković On Wed, May 26, 2010 at 8:18 PM, Bill Karwin b...@karwin.com wrote: On May 26, 2010, at 4:11 AM, Thomas D. wrote:

Re: [fw-general] Re: Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-27 Thread Саша Стаменковић
Sure, I'll monitor this, dont happen too often. Thanks. Regards, Saša Stamenković On Thu, May 27, 2010 at 8:27 PM, Thomas D. whist...@googlemail.com wrote: Hi, Bill Karwin wrote: I wrote the following on the February thread with Ulf Wendel that you linked to, but I think it bears

[fw-general] Problem with form translation - strangle logs

2010-05-27 Thread Саша Стаменковић
Hi. i have in bootstrap protected function _initTranslate() { $translate = new Zend_Translate( Zend_Translate::AN_ARRAY, realpath(APPLICATION_PATH . '/../data/languages'), null, array( 'scan' = Zend_Translate::LOCALE_DIRECTORY, 'log' = $this-getResource('log'), 'logUntranslated' = true ) );

[fw-general] Re: Problem with form translation - strangle logs

2010-05-27 Thread Саша Стаменковић
within 'en': Sortiraj po: Even if there is only one element with that label. Maybe I'm doing something wrong with my base form. I'm extending all forms from this one http://pastie.org/980646 Thanks in advance. Regards, Saša Stamenković 2010/5/27 Саша Стаменковић umpir...@gmail.com Hi. i

Re: [fw-general] Re: Problem with form translation - strangle logs

2010-05-27 Thread Саша Стаменковић
Thanks, when it will be included into release? Regards, Saša Stamenković On Thu, May 27, 2010 at 10:52 PM, James Carr j...@purpleankh.com wrote: Саша Стаменковић wrote: Also, I noticed the labels that are not translated at all (not found in sr or en version of Zend_Form.php) are logged

[fw-general] Sharing same session accross subdomains

2010-05-26 Thread Саша Стаменковић
Hi. I want to translate site http://automobi.li/ to other languages, and I'm thinking about best practices on how to do it for best seo, user expirience and architecture. First of all, in order to have google indexing it on different languages, I will create subdomains http://en.automobi.li/,

[fw-general] Re: Sharing same session accross subdomains

2010-05-26 Thread Саша Стаменковић
. Regards, Saša Stamenković On Wed, May 26, 2010 at 11:41 AM, Саша Стаменковић umpir...@gmail.comwrote: Hi. I want to translate site http://automobi.li/ to other languages, and I'm thinking about best practices on how to do it for best seo, user expirience and architecture. First of all

Re: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-26 Thread Саша Стаменковић
That was great answer, thanks Thomas. As I expected, you can't be wrong using one or another, and using mysqli is not a bad thing (if you are using PHP 5.3+) :) Regards, Saša Stamenković On Wed, May 26, 2010 at 1:11 PM, Thomas D. whist...@googlemail.com wrote: Hi, Саша Стаменковић wrote

Re: [fw-general] Quick help with routes

2010-05-25 Thread Саша Стаменковић
PM, Саша Стаменковић umpir...@gmail.comwrote: Ok, but I neeed that dash search/price/100-200/... Why does it have to be a dash? Why can't you use a forward slash? If it must be a dash then you have a couple of options. One is to parse the parameter manually in your controller by removing

Re: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-25 Thread Саша Стаменковић
anyone see what I cannot see? Regards, Saša Stamenković On Tue, May 25, 2010 at 12:46 AM, Саша Стаменковић umpir...@gmail.comwrote: Thanks Aleksey! It works perfect on my server. I don't get it, on the first look, I do exactly same thing in my code. Will take a closer look at it tommorow

Re: [fw-general] Quick help with routes

2010-05-25 Thread Саша Стаменковић
On Mon, May 24, 2010 at 3:18 PM, Саша Стаменковић umpir...@gmail.comwrote: Yes, I must explode them manually. Thanks. Regards, Saša Stamenković On Mon, May 24, 2010 at 10:13 PM, Hector Virgen djvir...@gmail.comwrote: If your min/max price comes in as a single parameter with a hyphen

Re: [fw-general] Quick help with routes

2010-05-25 Thread Саша Стаменковић
. Is this desired behaviour? Regards, Saša Stamenković On Tue, May 25, 2010 at 8:36 AM, Саша Стаменковић umpir...@gmail.comwrote: One problem resources.router.routes.myroute.route = my-controller/price/:price/year/:year/city/:city/sort/:sort resources.router.routes.myroute.defaults.module = default

Re: [fw-general] Quick help with routes

2010-05-25 Thread Саша Стаменковић
%ABn... I tried with [:alpha:] does not match anyting. Ideas? Regards, Saša Stamenković On Tue, May 25, 2010 at 8:43 AM, Саша Стаменковић umpir...@gmail.comwrote: I see I can achieve this with asterik resources.router.routes.myroute.route = my-controller/* Another issue is that in config

Re: [fw-general] Quick help with routes

2010-05-25 Thread Саша Стаменковић
Solved, thanks to guys from #zftalk ([\C\D])+ matches characters, non digits http://perldoc.perl.org/perlreref.html Adding route my-controller/:page fixed falling into my-controller/:brand/:page route. Regards, Saša Stamenković On Tue, May 25, 2010 at 9:07 AM, Саша Стаменковић umpir

Re: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-25 Thread Саша Стаменковић
was referring to another model) to be able run this code). Attached files are: app.tar.gz - Application itself dump.sql.gz - MySQL dump of table (I have used to test) 2010/5/24 Саша Стаменковић umpir...@gmail.com: Okay, I'm using one connection, one db, one adapter, but still, I have

Re: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-25 Thread Саша Стаменковић
of traffic is generated, people are opening concrete news and break my limit of 15 connections. Looks like I need more connections, heh. Regards, Saša Stamenković On Tue, May 25, 2010 at 10:57 AM, Саша Стаменковић umpir...@gmail.comwrote: BTW, my limit is not mysqli.max_links = 15 its

Re: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-25 Thread Саша Стаменковић
pdo_mysql instead of mysqli and was able to run my (previously described) stormer without any problems even with 1024 requests. So I guess there's something wrong with mysqli adapter (of PHP). 2010/5/25 Саша Стаменковић umpir...@gmail.com: Zend_Db_Statement ин setFetchMode() calls

Re: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-25 Thread Саша Стаменковић
(in theory) change the fetch mode several times as you fetch rows from the same result set. Regards, Bill Karwin On May 25, 2010, at 10:57 AM, Саша Стаменковић wrote: Zend_Db_Statement in setFetchMode() calls $this-closeCursor(); only in default case for $mode, why not in other cases?!

Re: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-25 Thread Саша Стаменковић
even this caused sample application (from previous post) to hang server up after 130 requests. I'm gonna try to make some changes to the Zend_Db_Adapter_Mysqli and Zend_Db_Statement_Mysqli today or tomorrow and will share my investigation results :)) 2010/5/25 Саша Стаменковић umpir

Re: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-24 Thread Саша Стаменковић
Yeah, quoteInto connects to db for every quoted value, and that breaks my limit of 15 queries at once, even I only run one select and one update query, it quotes array of values. What should I do? Regards, Saša Stamenković On Thu, May 20, 2010 at 3:14 PM, Саша Стаменковић umpir

Re: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-24 Thread Саша Стаменковић
expression? OR Just generate string for use in where() method yourself. On 24 May 2010 14:06, Саша Стаменковић umpir...@gmail.com wrote: Yeah, quoteInto connects to db for every quoted value, and that breaks my limit of 15 queries at once, even I only run one select and one update query

Re: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-24 Thread Саша Стаменковић
I'm pretty sure it's one connection too, but for quoting value, does Zend_Db_Adapter contacts mysql server in order to get some info about how to quote it? Regards, Saša Stamenković On Mon, May 24, 2010 at 4:03 PM, Thomas D. whist...@googlemail.com wrote: Hi, Саша Стаменковић wrote: Yeah

Re: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-24 Thread Саша Стаменковић
) ... Regards, Saša Stamenković On Mon, May 24, 2010 at 4:11 PM, Саша Стаменковић umpir...@gmail.comwrote: I'm pretty sure it's one connection too, but for quoting value, does Zend_Db_Adapter contacts mysql server in order to get some info about how to quote it? Regards, Saša Stamenković

Re: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-24 Thread Саша Стаменковић
, at 7:14 AM, Саша Стаменковић wrote: I'm asking because I see quote method in exception trace: 2010-05-20T10:08:40+02:00 ERR (3): exception 'Zend_Db_Adapter_Mysqli_Exception' with message 'User *** already has more than 'max_user_connections' active connections' in Zend/Db/Adapter/Mysqli.php

Re: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-24 Thread Саша Стаменковић
, May 24, 2010 at 11:18 AM, Саша Стаменковић umpir...@gmail.comwrote: No, I'm not calling it twice, its handled by Zend_Application, as recommanded by Zend, and showed in quick start. I'm not telling that there are more then one connections, but that quoteInto communicates with mysql server

Re: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-24 Thread Саша Стаменковић
. Regards, Saša Stamenković On Mon, May 24, 2010 at 8:59 PM, Thomas D. whist...@googlemail.com wrote: Hi, Саша Стаменковић wrote: Does it need to communicate with the db server? Yes, it does. And as I tried to show you in my mail ~3 hours ago, it's nothing bad, because quote() will reuse

Re: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-24 Thread Саша Стаменковић
Sure, when you have unlimited number of db operation over a period of time. I'll come up with my own offline quoting. Thanks everyone! Regards, Saša Stamenković On Mon, May 24, 2010 at 9:11 PM, Thomas D. whist...@googlemail.com wrote: Hi Саша Стаменковић wrote: Problem I see is, why

Re: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-24 Thread Саша Стаменковић
code on private mail Thomas. Regards, Saša Stamenković On Mon, May 24, 2010 at 9:27 PM, Thomas D. whist...@googlemail.com wrote: Hi, Саша Стаменковић wrote: Sure, when you have unlimited number of db operation over a period of time. I'll come up with my own offline quoting. Seems like

[fw-general] Quick help with routes

2010-05-24 Thread Саша Стаменковић
I need route like this search/price/100-200/year/1947-2010/city/Nis/sort_by/sth/mode/1 search/price/:price-:price/year/:year-:year/city/:city/sort_by/:sort_by/mode/:mode This end up with uncaught exception 'Zend_Controller_Router_Exception' with message 'price-:price is not specified'. Can I

[fw-general] Re: Quick help with routes

2010-05-24 Thread Саша Стаменковић
Leaving just search/price/:price/ I get price 100-200 in request. Can I this price be an array? Regards, Saša Stamenković On Mon, May 24, 2010 at 9:39 PM, Саша Стаменковић umpir...@gmail.comwrote: I need route like this search/price/100-200/year/1947-2010/city/Nis/sort_by/sth/mode/1

Re: [fw-general] Quick help with routes

2010-05-24 Thread Саша Стаменковић
On Mon, May 24, 2010 at 9:46 PM, Bradley Holt bradley.h...@foundline.comwrote: On Mon, May 24, 2010 at 3:39 PM, Саша Стаменковић umpir...@gmail.comwrote: I need route like this search/price/100-200/year/1947-2010/city/Nis/sort_by/sth/mode/1 search/price/:price-:price/year/:year-:year/city

Re: [fw-general] Quick help with routes

2010-05-24 Thread Саша Стаменковић
Ok, but I neeed that dash search/price/100-200/... Regards, Saša Stamenković On Mon, May 24, 2010 at 9:55 PM, Bradley Holt bradley.h...@foundline.comwrote: On Mon, May 24, 2010 at 3:50 PM, Саша Стаменковић umpir...@gmail.comwrote: Thanks Bradley. yes, thats the default routing. It accepts

Re: [fw-general] Quick help with routes

2010-05-24 Thread Саша Стаменковић
: $price = $this-_request-getParam('price'); $priceParts = explode('-', $price); $priceMin = $priceParts[0]; $priceMax = $priceParts[1]; -- Hector On Mon, May 24, 2010 at 1:07 PM, Bradley Holt bradley.h...@foundline.comwrote: On Mon, May 24, 2010 at 3:58 PM, Саша Стаменковић umpir

Re: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-24 Thread Саша Стаменковић
Stamenković On Tue, May 25, 2010 at 12:40 AM, Bill Karwin b...@karwin.com wrote: On May 24, 2010, at 12:18 PM, Саша Стаменковић wrote: Sure, when you have unlimited number of db operation over a period of time. I'll come up with my own offline quoting. You should use the function provided

Re: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-20 Thread Саша Стаменковић
-quoteInto('table...', '582', NULL) #3 Zend/Db/Select.php(475): Zend_Db_Select-_where('table...', '582', NULL, true) ... Regards, Saša Stamenković On Wed, May 19, 2010 at 12:12 PM, Саша Стаменковић umpir...@gmail.comwrote: So, if I put $table-getAdapter()-beginTransaction(); before

Re: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-20 Thread Саша Стаменковић
I can have max 15 connections on this shared hosting. Because the connection I use is not persistanrt, but use pooling instead, every query counts as new connection (not sure)? Also, I thought the problem will dissapear when I remove loop, and use IN(ids) approach, but looks like quoteInto()

Re: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-20 Thread Саша Стаменковић
to reveal my unknowlesge ;)) open up file: Zend/Db/Adapter/Mysqli.php and replace string (at line 282): if ($this-_connection) { with: if ($this-isConnected()) { 2010/5/20 Саша Стаменковић umpir...@gmail.com: I can have max 15 connections on this shared hosting. Because the connection I

Re: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-20 Thread Саша Стаменковић
was useless, at least in my environment. 2010/5/20 Саша Стаменковић umpir...@gmail.com: Ugh...too scared to do that. I will try later, after some testing. Thanks! Regards, Saša Stamenković On Thu, May 20, 2010 at 12:08 PM, Aleksey Zapparov i...@member.fsf.org wrote: Hello

Re: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-20 Thread Саша Стаменковић
...@googlemail.com wrote: Hi, Саша Стаменковић wrote: I can have max 15 connections on this shared hosting. Because the connection I use is not persistanrt, but use pooling instead, every query counts as new connection (not sure)? No! In your bootstrap, you set up an adapter $db

Re: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-20 Thread Саша Стаменковић
I don't know how to monitor mysqld, maybe get connection from adapter with getConnection() and then retreive it from there and log? Regards, Saša Stamenković On Thu, May 20, 2010 at 1:25 PM, Thomas D. whist...@googlemail.com wrote: Hi, Саша Стаменковић wrote: This error occurs only on one

Re: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-20 Thread Саша Стаменковић
Stamenković On Thu, May 20, 2010 at 3:02 PM, Thomas D. whist...@googlemail.com wrote: Hi, Саша Стаменковић wrote: I don't know how to monitor mysqld, maybe get connection from adapter with getConnection() and then retreive it from there and log? No. Monitoring your mysqld has nothing

Re: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-20 Thread Саша Стаменковић
Only in development environment :) Thanks. Regards, Saša Stamenković On Thu, May 20, 2010 at 3:13 PM, Daniel Latter dan.lat...@gmail.com wrote: Ive heard about a problem with the zf debug bar where it creates extra connections? are you using this? On 20 May 2010 14:07, Саша Стаменковић

Re: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-19 Thread Саша Стаменковић
So, if I put $table-getAdapter()-beginTransaction(); before, and $table-getAdapter()-commit(); after for loop, it should help? I'm not sure about this, but I can try. Setting active is ok, this is enum, but you're right, I should go with one update query, doing it on Zend_Db_Table_Row level

[fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-18 Thread Саша Стаменковић
Connection is not persistant, maybe I should set 'persistent' = true and switch from MySQLi to PDO adapter? * * *What is the difference when I use persistant connection? * Regards, Saša Stamenković On Mon, May 17, 2010 at 10:09 PM, Саша Стаменковић umpir...@gmail.comwrote: I have this: $row

Re: [fw-general] Zend_Service_Delicious_Exception: Http client reported an error: 'Unauthorized'

2010-05-18 Thread Саша Стаменковић
Here is the issue, it would be nice to implement this during bug hunt days http://zendframework.com/issues/browse/ZF-9853. Regards, Saša Stamenković On Sat, May 8, 2010 at 3:39 PM, Саша Стаменковић umpir...@gmail.com wrote: Yeah, I see http://delicious.com/help/api. Will wait for Oauth

[fw-general] Saving many Zend_Db_Table_Rows in for loop

2010-05-17 Thread Саша Стаменковић
I have this: $row = $table-find($id); // Zend_Db_Table $row-setReadOnly(false); $row-status = 'ACTIVE'; $row-save(); In for loop. When having for instance 20 iterations, it happends to get 2010-05-17T08:49:07+02:00 ERR (3): exception 'Zend_Db_Adapter_Mysqli_Exception' with message 'User ***

[fw-general] Formatting localized date time wih Zend_Date

2010-05-14 Thread Саша Стаменковић
Hi. I use Zend_Date in my view helper for formatting my dates like $this-date-toString(Zend_Date::DATES); // $this-date instranceod Zend_Date This works perfect, I get 14.05.2010. for sr_RS locale. * * But for time I expect sth like 10:00 (

Re: [fw-general] Formatting localized date time wih Zend_Date

2010-05-14 Thread Саша Стаменковић
Thanks for the answer. I live in Serbia, and I have never seen this format before. Can you provide a link to time format spec in CLDR please? Regards, Saša Stamenković 2010/5/14 Thomas Weidner thomas.weid...@gmx.at The serbian time format is defined as HH.mm.ss within CLDR. So eighter the

Re: [fw-general] Formatting localized date time wih Zend_Date

2010-05-14 Thread Саша Стаменковић
that time format is: %H.%M.%S 2010/5/14 Саша Стаменковић umpir...@gmail.com: Thanks for the answer. I live in Serbia, and I have never seen this format before. Can you provide a link to time format spec in CLDR please? Regards, Saša Stamenković 2010/5/14 Thomas Weidner thomas.weid

[fw-general] Space in URL causing an error

2010-05-12 Thread Саша Стаменковић
Hi. I'm trying to crawl some images from the web, and I have problem when there is space in url. Example http://www.site.com/images/ArticleImages/SpaceFolder/Img_320X250.jpg gives exception 'Zend_Uri_Exception' with message 'Invalid URI supplied' in

[fw-general] Warning in Zend\Feed\Reader\Entry\Rss.php with windows-1250 charset

2010-05-11 Thread Саша Стаменковић
When importing RSS feed with windows-1250 charset, I get WARN (4): html_entity_decode() [a href='function.html-entity-decode'function.html-entity-decode/a]: charset `windows-1250' not supported, assuming iso-8859-1 in Zend\Feed\Reader\Entry\Rss.php #339. Any idea? Regards, Saša Stamenković

Re: [fw-general] Warning in Zend\Feed\Reader\Entry\Rss.php with windows-1250 charset

2010-05-11 Thread Саша Стаменковић
be committing the permanent fix to trunk. Paddy Pádraic Brady http://blog.astrumfutura.com http://www.survivethedeepend.com OpenID Europe Foundation Irish Representativehttp://www.openideurope.eu/ -- *From:* Саша Стаменковић umpir...@gmail.com *To:* Nabble Zend

Re: [fw-general] Zend_Service_Delicious_Exception: Http client reported an error: 'Unauthorized'

2010-05-08 Thread Саша Стаменковић
://blog.astrumfutura.com http://www.survivethedeepend.com OpenID Europe Foundation Irish Representativehttp://www.openideurope.eu/ -- *From:* Саша Стаменковић umpir...@gmail.com *To:* Pádraic Brady padraic.br...@yahoo.com *Cc:* Zend Framework General fw-general

Re: [fw-general] Zend_Service_Delicious_Exception: Http client reported an error: 'Unauthorized'

2010-05-08 Thread Саша Стаменковић
with Twitter's API in the reference guide. Paddy Pádraic Brady http://blog.astrumfutura.com http://www.survivethedeepend.com OpenID Europe Foundation Irish Representativehttp://www.openideurope.eu/ -- *From:* Саша Стаменковић umpir...@gmail.com *To:* Pádraic Brady

[fw-general] Zend_Service_Delicious_Exception: Http client reported an error: 'Unauthorized'

2010-05-07 Thread Саша Стаменковић
I get Zend_Service_Delicious_Exception: Http client reported an error: 'Unauthorized' thrown in Zend\Service\Delicious.php on line 501 Code: $delicious = new Zend_Service_Delicious($credentials['username'], $credentials['password']); $delicious-createNewPost($this-getShortDescription(),

Re: [fw-general] Zend_Service_Delicious_Exception: Http client reported an error: 'Unauthorized'

2010-05-07 Thread Саша Стаменковић
of anything else outside of a bug in the component. Pádraic Brady http://blog.astrumfutura.com http://www.survivethedeepend.com OpenID Europe Foundation Irish Representativehttp://www.openideurope.eu/ -- *From:* Саша Стаменковић umpir...@gmail.com *To:* Nabble Zend

Re: [fw-general] Add blog to zf powered site

2010-05-04 Thread Саша Стаменковић
Thank you all, but after all my calculations, I think I'll go with implementing a simple blog module. This will be actually a news agregator, so, simple paragraph with link to the source site will be good for the start. Maybe click counter and share or rating can be added later, but still, it's

[fw-general] Add blog to zf powered site

2010-05-03 Thread Саша Стаменковић
I have app with 2 modules, default and admin, now I want to add blog. I don't know if it is a good idea to jump into implementing blog module, when there are wordpress and other well tested engines...it would be nice if blog will be integrated into existing app, use same sidebar, header, footer,

Re: [fw-general] Extending Zend_Controller_Front

2010-05-01 Thread Саша Стаменковић
This is true for PHP 5.3+ Regards, Saša Stamenković On Sat, May 1, 2010 at 7:01 PM, Aurimas Likas auri...@wow.lt wrote: In the online documentation there are writtenhttp://framework.zend.com/manual/en/zend.controller.front.html: Overriding the getInstance() method ensures that subsequent

[fw-general] Twitter Launches Countdown to OAuthcalypse

2010-04-25 Thread Саша Стаменковић
Twitter Launches Countdown to OAuthcalypse http://mashable.com/2010/04/24/twitter-oauthcalypse/?utm_source=feedburnerutm_medium=feedutm_campaign=Feed%3A+Mashable+%28Mashable%29 . Does this means Zend_Service_Twitter will stop working? Regards, Saša Stamenković

Re: [fw-general] How to load module specific configuration

2010-04-24 Thread Саша Стаменковић
Look here http://weierophinney.net/matthew/archives/234-Module-Bootstraps-in-Zend-Framework-Dos-and-Donts.html, I solved it something like this http://binarykitten.me.uk/dev/zend-framework/177-active-module-based-config-with-zend-framework.html . Regards, Saša Stamenković On Sat, Apr 24, 2010

Re: [fw-general] Spoon-feeding the view

2010-04-22 Thread Саша Стаменковић
*Full Model Alternative.* * * *You pass the model, since it represents your data, and view(s) are responsable for model representation. * Regards, Saša Stamenković On Thu, Apr 22, 2010 at 8:05 PM, Hector Virgen djvir...@gmail.com wrote: Hello, Do you spoon-feed your views from your

Re: [fw-general] Zend_Navigation question?

2010-04-21 Thread Саша Стаменковић
$view-navigation()-menu()-setPartial('your-script.phtml'); Regards, Saša Stamenković On Wed, Apr 21, 2010 at 9:25 AM, i...@antoniocaccese.it wrote: Hi, i am using zend-navigation to render my menu but the html template i am using has a span inside a like this: ul li a href=#

Re: [fw-general] Zend Framework and Facebook Connect

2010-04-20 Thread Саша Стаменковић
By the way, when we are talking about face. Is it possible to post sth to fb fanpage via API, like we do with twitter? Regards, Saša Stamenković On Tue, Apr 20, 2010 at 6:57 PM, pwansch peterwan...@gmx.net wrote: Hi, I added Facebook Connect to my site and it works well. This is what I do

  1   2   3   4   >