Re: [fw-general] howto find a method

2009-05-19 Thread Mike Wright
till wrote: On Tue, May 19, 2009 at 7:41 PM, Mike Wright wrote: Tim Fountain wrote: On 19/05/2009, Mike Wright wrote: Sudheer Satyanarayana wrote: http://framework.zend.com/docs/api Is that what you are looking for Thanks for the reply. I have the API. What I would like is to be able

Re: [fw-general] howto find a method

2009-05-19 Thread Mike Wright
till wrote: On Tue, May 19, 2009 at 7:41 PM, Mike Wright wrote: Tim Fountain wrote: On 19/05/2009, Mike Wright wrote: Sudheer Satyanarayana wrote: http://framework.zend.com/docs/api Is that what you are looking for Thanks for the reply. I have the API. What I would like is to be able

Re: [fw-general] [OT] General design question

2009-05-19 Thread Deanna Bonds
I would use the join method. Calling out to the database is an expensive operation, so I try to minimize the number of calls. Also, try not to think in terms of loops when you consider data, it is more based in set theory. Or do you rather execute one large SQL statement in the UserManager mo

[fw-general] zend_rest_client inserts unnecessary vars into querystring

2009-05-19 Thread Mark Wright
I am trying to connect to the Flickr rest api's flickr.auth.getToken method and it is not working. As far as I can tell it is because zend_rtest_client is adding arg1 and rest to the query string. So it produces this querystring: method=flickr.auth.getToken&arg1=XXX&api_key=XXX&frob=YYY&api_sig=ZZ

Re: [fw-general] howto find a method

2009-05-19 Thread till
On Tue, May 19, 2009 at 7:41 PM, Mike Wright wrote: > Tim Fountain wrote: >> >> On 19/05/2009, Mike Wright wrote: >>> >>> Sudheer Satyanarayana wrote: >>> http://framework.zend.com/docs/api Is that what you are looking for >>> Thanks for the reply. >>> >>> I have the API.  Wha

Re: [fw-general] [OT] General design question

2009-05-19 Thread fire-eyed-boy
fire-eyed-boy wrote: > > > > > My design issue is the following: > > Imagine that sometimes I only need some basic info about the User with > perhaps one (main profile) image. For instance for some search result > functionality. > > The other time around I might only need all images. For

Re: [fw-general] what can be used t replace these nice smarty features

2009-05-19 Thread Tobias Gies
Hi, you can either use the form* family of view helpers (more at http://framework.zend.com/manual/en/zend.view.helpers.html#zend.view.helpers.initial) if you already have your custom form processing logic in place, or you can use Zend_Form (http://framework.zend.com/manual/en/zend.form.html), whic

[fw-general] [OT] General design question

2009-05-19 Thread fire-eyed-boy
Hi all, I'm faced with a recurring design issue for which I haven't found a good implementation yet. So I was wondering how you would generally deal with this. Let's say I have a website with user profiles. Imagine the DB model has a base table 'user' and a few child tables (for instance to link

[fw-general] what can be used t replace these nice smarty features

2009-05-19 Thread 411161
I have decided not to use Smarty as my template engine. But, what can I use instead in Zend View for things like: html_options I despise too many loops in my pages and this was a very clean way to populate a dropdown. {html_options options=$shortTerritories selected=$selected_fiscal_y

Re: [fw-general] Zend Application/Router/Navigation/Issues

2009-05-19 Thread Jurian Sluiman
Op Tuesday 19 May 2009 22:04:04 schreef Tom Shaw: > I'm using the array config Zend Application setup. My array router resource > setup is below. Here are the problems the first route "entry" is a > correctly designed route. But when I try to access it Zend Controller > Router Exception throws an e

[fw-general] Zend Application/Router/Navigation/Issues

2009-05-19 Thread Tom Shaw
I'm using the array config Zend Application setup. My array router resource setup is below. Here are the problems the first route "entry" is a correctly designed route. But when I try to access it Zend Controller Router Exception throws an exception that the title is not defined. This is a simple r

RE: [fw-general] Zend_Application: setOptions() before bootstrap()

2009-05-19 Thread Tom Shaw
I've run into a problem with that to. I'm using the Zend Application array config and the array initializes the Session using the Zend DB Table. It wont run unless in my bootstrap I initialize the db portion of the array config. The function I used to fix it is below. /** * Simply initial

[fw-general] Zend_Validate_Isbn - Proposal

2009-05-19 Thread Renan de Lima
Hi, I've created a proposal some weeks ago, Zend_Validate_Isbn Thomas Weidner helped me a lot during pre-community_review step http://framework.zend.com/wiki/display/ZFPROP/Zend_Validate_Isbn+-+Renan+de+Lima it's a simple class to validate ISBN-10 and ISBN-13 that now it's ready for review re

[fw-general] Zend_Http_Client and posting JSON within page

2009-05-19 Thread water
I have a script where I want to post some json to another site and then handle the return value. This will not just be returning a JSON value to a browser. I was thinking of using cURL but figured I'd try Zend_Http_Client. Originally, was going to use setRawPost but other developer would prefer

Re: [fw-general] howto find a method

2009-05-19 Thread Mike Wright
Tim Fountain wrote: On 19/05/2009, Mike Wright wrote: Sudheer Satyanarayana wrote: http://framework.zend.com/docs/api Is that what you are looking for Thanks for the reply. I have the API. What I would like is to be able to locate a method somewhere within it when I don't know which pack

[fw-general] Zend View Question (or Bug?)

2009-05-19 Thread Andrei Iarus
Hello all,   Is it correct that, having multiple actions to be dispatched by the front controller, the same template get rendered?   The context is as explained further: using the ActionStack plugin some 2 actions are added to be dispatched (it wil happen in the PostDispatch step of the dispatc

Re: [fw-general] howto find a method

2009-05-19 Thread Tim Fountain
On 19/05/2009, Mike Wright wrote: > > Sudheer Satyanarayana wrote: > >> http://framework.zend.com/docs/api >> >> Is that what you are looking for >> > > Thanks for the reply. > > I have the API. What I would like is to be able to locate a method > somewhere within it when I don't know which packa

Re: [fw-general] howto find a method

2009-05-19 Thread Mike Wright
Sudheer Satyanarayana wrote: Mike Wright wrote: Hi all, Is there any glossary or index that allows finding a method and/or its associated class? Sure would make life easier, especially for those not already immersed in the framework :D http://framework.zend.com/docs/api Is that what you

Re: [fw-general] Zend_Application: setOptions() before bootstrap()

2009-05-19 Thread Vladimir Mihailenko
I think that it's bug - mb such explanation will be more clear: Zend_Application::bootstrap() Zend_Application::setOptions() Zend_Application_Resource_Session::setOptions() Zend_Application_Resource_Session::setSaveHandler() Zend_Db_Table_Abstract::_setupDa

Re: [fw-general] About PDO update method

2009-05-19 Thread mysticav
Yes, the point is that "JOIN" goes before "SET" and the third argument is for "WHERE" criteria. lightflowmark wrote: > > Hi - take a look at 15.1.4.3. Updating Data. > > The update method takes 3 arguments - 1st is the table, 2nd is the array > of data to change, and 3rd is an SQL string with

Re: [fw-general] Re: Does Zend_Json_Expr work?

2009-05-19 Thread Deanna Bonds
Deanna Bonds wrote: Benjamin Eberlei wrote: Have you enabled the enableJsonExprFinder option? http://framework.zend.com/manual/en/zend.json.advanced.html#zend.json.advanced.expr you have to add the option: $jsonObjectWithExpression = Zend_Json::encode( $data, false, array('enab

[fw-general] Re: Does Zend_Json_Expr work?

2009-05-19 Thread Deanna Bonds
Benjamin Eberlei wrote: Have you enabled the enableJsonExprFinder option? http://framework.zend.com/manual/en/zend.json.advanced.html#zend.json.advanced.expr you have to add the option: $jsonObjectWithExpression = Zend_Json::encode( $data, false, array('enableJsonExprFinder' =>

Re: [fw-general] php|tek and hackathon

2009-05-19 Thread Tobias Petry
Matthew Weier O'Phinney-3 wrote: > > Additionally, there is a Hackathon scheduled to run in parallel with the > unconference, which is happening both Wednesday and Thursday evenings: > > http://tek.mtacon.com/c/s/hackathon > > Please come join me as I attempt to squash bugs -- bring me you

[fw-general] different navigation per module

2009-05-19 Thread skorp
hi guys, for the admin module i would show another navigation. in my config file i have this line. 'admin' => array( 'resources'=>array( 'navigation'=> array( 'pages' => include dirname(__FILE__) . '/admin.navigation.config.php' ), ) )

Re: [fw-general] Does Zend_Json_Expr work?

2009-05-19 Thread Benjamin Eberlei
Have you enabled the enableJsonExprFinder option? http://framework.zend.com/manual/en/zend.json.advanced.html#zend.json.advanced.expr you have to add the option: $jsonObjectWithExpression = Zend_Json::encode( $data, false, array('enableJsonExprFinder' => true) ); On Mon, 18 May 200

Re: [fw-general] Living with bugs in ZF?

2009-05-19 Thread till
On Tue, May 19, 2009 at 10:26 AM, lightflowmark <1...@lightflowinterrupted.com> wrote: > > Thanks for that.  I'm embarrassed to admit I'd never used diff or written a > patch before this morning - is there some way of automatically applying > patches to the correct files? > > Currently I'm doing st

Re: [fw-general] About PDO update method

2009-05-19 Thread lightflowmark
Hi - take a look at 15.1.4.3. Updating Data. The update method takes 3 arguments - 1st is the table, 2nd is the array of data to change, and 3rd is an SQL string with the criteria. Yours, Mark mysticav wrote: > > I was looking the PDO update method which is explained in > > Zend Framework

Re: [fw-general] Living with bugs in ZF?

2009-05-19 Thread lightflowmark
Thanks for that. I'm embarrassed to admit I'd never used diff or written a patch before this morning - is there some way of automatically applying patches to the correct files? Currently I'm doing stuff like diff library/Zend/Dojo/View/Helper/Dojo/Container.php library/Zend/Dojo/View/Helper/Do

[fw-general] What version of APC are you use?

2009-05-19 Thread Georgy Turevich
Hello. Now APC (http://pecl.php.net/package/APC) has 3.0.19 stable version. But it's already 1 year and save compability with php4. Who use 3.1.* version on production with ZF? It is stable? -- Georgy

Re: [fw-general] howto find a method

2009-05-19 Thread simplyNetworks
Sudheer Satyanarayana schrieb: > Mike Wright wrote: > > Hi all, > > > > Is there any glossary or index that allows finding a method and/or its > > associated class? > > > > Sure would make life easier, especially for those not already immersed > > in the framework :

[fw-general] Zend_Amf Map from Actionscript to PHP Assitance needed

2009-05-19 Thread J DeBord
I can send an object from the server to Flex with Zend_Amf. For example I can send an object from the server to Flex and it will map exactly as it should. When I attempt to send the same object from Flex to the server, I get the delivery in doubt error. I've been over the code and just can't find