Re: [fw-general] Zend_Controller functionality...

2007-04-10 Thread Shaun Rowe
Alexander Netkachev wrote: typo: Zend_Controller_Front::getInstance()->getRouter()->addRoute('RouteName', new Zend_Controller_Router_Route('/dir1/:parameterName', array('action' => 'action', 'controller' => 'dir1'))); Damn! Beat me to it, I'd just written a very similar reply. Hehe. Shaun

Re: [fw-general] Zend_Controller functionality...

2007-04-10 Thread Alexander Netkachev
typo: Zend_Controller_Front::getInstance()->getRouter()->addRoute('RouteName', new Zend_Controller_Router_Route('/dir1/:parameterName', array('action' => 'action', 'controller' => 'dir1'))); On 4/10/07, Alexander Netkachev <[EMAIL PROTECTED]> wrote: Greetings, You need to specify a custom rout

Re: [fw-general] Zend_Controller functionality...

2007-04-10 Thread Alexander Netkachev
Greetings, You need to specify a custom route for this as follows: Zend_Controller_Front::->getRouter()->addRoute('RouteName', new Zend_Controller_Router_Route('/dir1/:parameterName', array('action' => 'action', 'controller' => 'dir1'))); and then you can get the parameter in the action by using

[fw-general] Zend_Controller functionality...

2007-04-10 Thread Adam Balgach
Greetings All - I have a bit of an obscure question I have been thinking about, and am not sure if it is possible with Zend. Any thoughts would be helpful. What I would ideally like is for a given directory, break the Zend_Controller functionality and have it do something slightly different. t

Re: [fw-general] Zend_Auth/Zend_Acl questions

2007-04-10 Thread Alexander Netkachev
How it is going: 1. {Zend_Auth}->authenticate($adapter); 2. in Zend_Auth::authenticate(): $this->getStorage()->write($result->getIdentity()); 3. in Zend_Auth_Storage_Session::write(): $this->_session->{$this->_member} = $contents; 4. in Zend_Session_Namespace::__set(): $name = (string) $n

Re: [fw-general] View Helper questions

2007-04-10 Thread Cristian Bichis
Hello, Thanks for your reply. And good ideas too :) Cristian Yep. In the last release, 0.9.2, we added support to optionally set the view object in the helper. All you need to do is add an accessor to your helper. As an example, if you have helper 'foo', and want it to access helper 'bar':

[fw-general] Problem with Zend_Feed & JIRA-RSS

2007-04-10 Thread Jan Pieper
I want to consume a JIRA RSS Feed but the -Element contains -Elements instead of an URL (12.4 Consuming an RSS Feed). --- jira.xml --- /* ... */ /* ... */ comment_a comme

Re: [fw-general] FirePHP integration

2007-04-10 Thread Ivan Shumkov
Jean-Marc Fontaine wrote: > > Maybe we could make a common proposal if you will and if there is good > feedback from this list. > Its a good idea! I'm ready! Please tell me more about you implementation! -- View this message in context: http://www.nabble.com/FirePHP-integration-tf3553243s16

Re: [fw-general] FirePHP integration

2007-04-10 Thread Eric Coleman
In addition to this request, it would be nice if Zend_Debug::dump() detected and used xdebug if available. Regards, Eric On 4/10/07, Matthew Ratzloff <[EMAIL PROTECTED]> wrote: On Tue, April 10, 2007 7:12 am, Ivan Shumkov wrote: > > I'm think about integration FirePHP (http://firephp.org) in to

Re: [fw-general] FirePHP integration

2007-04-10 Thread Matthew Ratzloff
On Tue, April 10, 2007 7:12 am, Ivan Shumkov wrote: > > I'm think about integration FirePHP (http://firephp.org) in to Zend > Framework: > 1. Use Our_FirePHP for implementation protocol (I didn't like default PEAR > class) > 2. Use Zend_Log_Writer_FirePhp for writing log > 3. Use Zend_Controller_Pl

Re: [fw-general] question about zend_db

2007-04-10 Thread José de Menezes Soares Neto
Nice!! Thanks for all!! 2007/4/9, Alexander Netkachev <[EMAIL PROTECTED]>: Hi, For me it looks like: 1. Portability. The SQL generation depends on the data adapter used. So, when you change database of your app from MySQL to MS SQL you probably will not change anything in your selects. 2. Mana

Re: [fw-general] FirePHP integration

2007-04-10 Thread Jean-Marc Fontaine
Hi Ivan, In fact, I already implemented that for the first FirePHP release. I am waiting for the next release, which should be a major rewrite, to make my code publicly available. Maybe we could make a common proposal if you will and if there is good feedback from this list. Regards. Jean

[fw-general] FirePHP integration

2007-04-10 Thread Ivan Shumkov
I'm think about integration FirePHP (http://firephp.org) in to Zend Framework: 1. Use Our_FirePHP for implementation protocol (I didn't like default PEAR class) 2. Use Zend_Log_Writer_FirePhp for writing log 3. Use Zend_Controller_Plugin_FirePhp for response "Capabilities Definition" and FirePhp d

Re: [fw-general] View Helper questions

2007-04-10 Thread Matthew Weier O'Phinney
-- Cristian Bichis <[EMAIL PROTECTED]> wrote (on Tuesday, 10 April 2007, 11:30 AM +0200): > I started making my own helpers and since tend to be complex due to > interfering > with other components > > Problem 1: > > The helper needs access to some global variables. I added a constructor for > t

Re: [fw-general] Zend_Auth/Zend_Acl questions

2007-04-10 Thread Simon Mundy
I'll double-check but I'm sure that the DB row will serialise/ unserialise without any problems - you should be fine with the default storage. Cheers Thank you! But where the question arise: authenticate($adapter) then saves the identity in the storage and default storage is session-based

Re: [fw-general] Zend_Auth/Zend_Acl questions

2007-04-10 Thread Alexander Netkachev
Thank you! But where the question arise: authenticate($adapter) then saves the identity in the storage and default storage is session-based storage. This storage accepts only strings, as I understand. So before the example below can work I should change the storage too? Sincerely, On 4/10/07,

Re: [fw-general] Zend_Auth/Zend_Acl questions

2007-04-10 Thread Simon Mundy
Yeah, that example was ~0.7.0 when the Zend_Auth class was still in incubator and the getIdentity() was separate. Now it's possible to simply implement the Zend_Auth_Interface in an instance of Zend_Db_Table if you like and you can remove a couple of steps. The 'role' property is simply a f

Re: [fw-general] Zend_Auth/Zend_Acl questions

2007-04-10 Thread Alexander Netkachev
Thank you, that clarifies a lot! However, I would like to know where you changed the identity of Zend_Auth? E.g. what makes $this->_auth->getIdentity()->getUser()->role; possible? I think that $identity->setUser(...) means that you use some class to store identity-related information. Do use your

[fw-general] View Helper questions

2007-04-10 Thread Cristian Bichis
Hello, I started making my own helpers and since tend to be complex due to interfering with other components Problem 1: The helper needs access to some global variables. I added a constructor for that helper: public function __construct() { $this->config = Zend_Registry::ge

[fw-general] Zend_Auth/Zend_Acl questions

2007-04-10 Thread Alexander Netkachev
Hi, I'm implementing Zend_Auth scheme and do not understand what is the best way to store role of the user. My scheme is based on http://devzone.zend.com/node/view/id/1665 (which seems broken now because last code fragment is incomplete) and I want to store user's identity and all associated inf