Re: [fw-general] Zend_Navigation and XML file

2009-10-06 Thread Mike974
Actually, To be more clear :), I'm looking for a way to force the submenu to display in every pages except the home page. Any ideas ? Mike974 wrote: > > Hi everyone, > > I used Zend_Navigation to display a menu with several items, and for each > item the corresponding submenu. > > I used

[fw-general] Caching xml files with Zend_Cache

2009-10-06 Thread GJ Bogaerts
Hi all, I'm having trouble figuring out how to cache a config.xml for my ZF application. I should use 'File' as the frontend, but how do I pass the environment variable to the cache? Should I be using different XML configuration files in order to accomodate either my development, testing and stag

Re: [fw-general] Simple Cloud API Proposals

2009-10-06 Thread Matthew Weier O'Phinney
-- Wil Sinclair wrote (on Monday, 05 October 2009, 12:53 PM -0700): > On Sept. 22, Zend launched the Simple Cloud API project: http:// > www.simplecloud.org > > This ambitious project makes cloud application services from vendors such as > Amazon, Microsoft Azure, and Rackspace available through

Re: [fw-general] Application Resources Access

2009-10-06 Thread Hector Virgen
It probably wouldn't hurt to check in both places. I think you're right and checking for a bootstrap resource might be better (or clearer to another developer) than checking Zend_Registry. The question that comes to mind when running into this code later is "Where does the cache get initialized?".

Re: [fw-general] Simple Cloud API Proposals

2009-10-06 Thread Daniel Latter
Your email client stripped them cos they were links anyway On 6 Oct 2009, at 15:44, Matthew Weier O'Phinney wrote: -- Wil Sinclair wrote (on Monday, 05 October 2009, 12:53 PM -0700): On Sept. 22, Zend launched the Simple Cloud API project: http:// www.simplecloud.org This ambitious p

Re: [fw-general] Simple Cloud API Proposals

2009-10-06 Thread Alan Wagstaff
All showing up fine here. Also, not related to the proposals so apologies for going off-topic, but none of the www.simplecloud.org pages have titles - didn't know if it was a bug or some odd design choice :) 2009/10/6 Daniel Latter > Your email client stripped them cos they were links anyway...

[fw-general] Zend_View_Helper_Url not returning correct URL when Zend_Rest_Route is used

2009-10-06 Thread Sudheer Satyanarayana
Hi, In my bootstrap I am adding the Zend_Rest_Route [code] protected function _initRestRoute() { if (PHP_SAPI == 'cli') { return; } $this->bootstrap('frontController'); $frontController = Zend_Controller_Front::getInstance(); $restRoute =

Re: [fw-general] Caching xml files with Zend_Cache

2009-10-06 Thread GJ Bogaerts
Never mind, I figured it out. Makes sense, of course... $configPath = $this->_root . '/application/config.xml'; $frontend = array( 'master_files' => array( $configPath), 'automatic_serialization' => true); $backend = array();

Re: [fw-general] Zend_View_Helper_Url not returning correct URL when Zend_Rest_Route is used

2009-10-06 Thread Matthew Weier O'Phinney
-- Sudheer Satyanarayana wrote (on Tuesday, 06 October 2009, 09:32 PM +0530): > In my bootstrap I am adding the Zend_Rest_Route > > [code] > protected function _initRestRoute() > { > if (PHP_SAPI == 'cli') { > return; > } > > $this->bootstrap('frontControlle

Re: [fw-general] Simple Cloud API Proposals

2009-10-06 Thread Daniel Latter
Hi, Will Simple Cloud do anything with Salesforce? At the moment I am working with Salesforce and would like to help/get involved by providing a Salesforce adapter in the near future, would this be something of use? or is it not really applicable? Thanks 2009/10/5 Wil Sinclair > Hi all,

Re: [fw-general] Zend_View_Helper_Url not returning correct URL when Zend_Rest_Route is used

2009-10-06 Thread Sudheer Satyanarayana
There are two things going wrong: you need to specify the route, and, specifically, the default route, when using the url() view helper. $url = $this->url(array( 'module' =>'default', 'controller' =>'user', 'action' =>'login' ), 'default', true);

Re: [fw-general] Zend_View_Helper_Url not returning correct URL when Zend_Rest_Route is used

2009-10-06 Thread Jason Webster
On 06/10/2009 9:59 AM, Sudheer Satyanarayana wrote: There are two things going wrong: you need to specify the route, and, specifically, the default route, when using the url() view helper. $url = $this->url(array( 'module' =>'default', 'controller' =>'user', 'action' =>'login' ), 'default', tr

Re: [fw-general] Simple Cloud API Proposals

2009-10-06 Thread Daniel Latter
Just thought i'd let you know that the link in this FAQ: *Question: What is Zend Framework?* *Answer: Zend Framework is the leading open source PHP framework. Its use-at-will components offer solutions for almost all requirements encountered in complex applications. To find out more, visit http:/

Re: [fw-general] Zend_View_Helper_Url not returning correct URL when Zend_Rest_Route is used

2009-10-06 Thread Matthew Weier O'Phinney
-- Sudheer Satyanarayana wrote (on Tuesday, 06 October 2009, 10:29 PM +0530): > > There are two things going wrong: you need to specify the route, and, > > specifically, the default route, when using the url() view helper. > > > > $url = $this-> url(array( > > 'module' => 'defaul

Re: [fw-general] Form from INI multiOptions

2009-10-06 Thread vinnyman
>From my understanding, you'll have to use an onchange event at the higher level and inspect which option is selected in the corresponding javascript function (not provided here, sorry for being lazy). Something of the likes of : advertiser.broadcast.elements.broadcastRecipientsRadio.oncha

Re: [fw-general] Form from INI multiOptions

2009-10-06 Thread Fred Jiles
They probably chose not to allow you to use the onclick tag for this because it is not good standards to use inline javascript. I am also sure they would advise against using style="" as well. Another question is why do you even need to use javascript? If you have two buttons one has a value of s

Re: [fw-general] Form from INI multiOptions

2009-10-06 Thread vinnyman
My guess here is that the need of a JavaScript function was to catch an event without having to refresh the page. Your example is correct as long as you don't mind the refresh. Hence I find it's more or less relevant here. -- View this message in context: http://www.nabble.com/Form-from-INI-mu

Re: [fw-general] ZF 1.9.3 and phpunit 3.4.0 zf_tool problem

2009-10-06 Thread Marcello Duarte
Hi, I have applied Raphael's patch from #ZF-7894 and the PHPUnit error in fact is not showing anymore. However now, no providers are recognized: m...@groovy:~$ zf show version An Error Has Occurred Action 'show' is not a valid action.

Re: [fw-general] Form from INI multiOptions

2009-10-06 Thread Hector Virgen
I agree with Fred. It's much easier to write your javascript in a separate .js file instead of adding inline javascript. Inline javascript tends to become difficult to maintain over time. In jQuery you could write something like this: $(':checkbox[name="broadcastRecipientRadio"][value="all"]').cli

Re: [fw-general] unable to disable Dojo

2009-10-06 Thread gerardroche
Good work around, but shouldn't Zend_Form do this? Matthew Weier O'Phinney-3 wrote: > > -- Guillaume Oriol wrote > (on Thursday, 04 December 2008, 11:40 PM -0800): >> Thank you Matthew for your answer >> but I don't use Zend_Dojo_Form in my form, neither any Dijit. >> My form extends Zend_Form

Re: [fw-general] Zend_Db_Profiler should be working but isn't...

2009-10-06 Thread Cameron
I reverted to 1.4.0 and it started working for me again after a restart or two. It was all a bit weird to be honest. On Sat, Sep 26, 2009 at 5:49 AM, Eugene Morgan wrote: > Actually I was just using the .ini method before, but I can get it to > work now using the Bootstrap method in both Firebug

[fw-general] descending sorting using object of "Zen_Db_Select()"

2009-10-06 Thread attractive eyes
hi all, I am using the function given below to sort data and the direction of sorting is ascending. now I want to sort data in descending order, but I am not getting idea about it and it is mandatory for me to use the object of "Zend_Db_Select()" for sorting. please help me for sorting in

Re: [fw-general] Application Resources Access

2009-10-06 Thread Саша Стаменковић
Yes, you're right, but the only bad thing is writing: Zend_Controller_Front::getInstance()->getParam('bootstrap')->getResource('cache'); v.s. Zend_Registry::get('cache'); and maybe using Zend_Registry is faster? Regards, Saša Stamenković On Tue, Oct 6, 2009 at 5:21 PM, Hector Virgen wrote: >