Re: [fw-general] Zend_View_Helper - output

2008-02-15 Thread Jordan Moore
$this->_view->doctype('XHTML1_STRICT') returns an object, not a
string. Call toString().

On Fri, Feb 15, 2008 at 4:01 PM, 4991687 <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm try output data from helper:
>
> 
> class Zend_View_Helper_SiteHeader
> {
>
> protected $_view;
>
> public function setView($view)
> {
> $this->_view = $view;
>  }
>
> public function SiteHeader()
> {
> $output = $this->_view->doctype('XHTML1_STRICT');
> $output.= ' test';
> return $output;
> }
>
>
> Helper return this:
>
> Object id #29 test
>
> When i'm output more methods from Zend_View, helper return object not data?
>
>
>



-- 
Jordan Moore - Creative Director
Sanctus Studios LLC
PO Box 2202
Tacoma, WA 98401
(253) 238-8676


[fw-general] Zend_View_Helper - output

2008-02-15 Thread 4991687
Hello,

I'm try output data from helper:

_view = $view;
}

public function SiteHeader()
{
$output = $this->_view->doctype('XHTML1_STRICT');
$output.= ' test';
return $output;
}


Helper return this:

Object id #29 test

When i'm output more methods from Zend_View, helper return object not data?


[fw-general] Redirect From Bootstrap

2008-02-15 Thread Arthur M. Kang
If I'm going to redirect from the bootstrap file, are there any ZF 
methods available to me PRIOR to dispatching?


One example is for normalization.  If somebody requests /?param=value 
and I wanted to redirect it to /param/value/.  There is no need to go 
through a dispatch process, but it would be convenient to have access to 
the methods of the redirector.  Just have it rebuild the URI from the 
routes and the parameters.


Another example is in my bootstrap, I setup my db connector.  If this 
fails, I want to immediately redirect away without having to go through 
any other code or controllers.  Dispatching probably wouldn't do any 
good anyways without the db.


What's the best way to accomplish this?  Manually build the URL and use 
a standard PHP header call and exit?


Any insight is appreciated.  Thanks!


Re: [fw-general] Zend_Acl example

2008-02-15 Thread Darby Felton
Hi Kevin,

Please see Implementing Access Control with Zend Framework:

http://framework.zend.com/wiki/x/3ZQ

Hopefully this is some good material for you. :)

Best regards,
Darby

Kexiao Liao wrote:
> Is there any simple example to teach us how to use Zend_Acl in the real
> world?
> 
> Kevin
> 


[fw-general] Zend_Acl example

2008-02-15 Thread Kexiao Liao

Is there any simple example to teach us how to use Zend_Acl in the real
world?

Kevin

-- 
View this message in context: 
http://www.nabble.com/Zend_Acl-example-tp15509069s16154p15509069.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Zend_Cache_Backend_Session?

2008-02-15 Thread Michael B Allen
Is there something like Zend_Cache_Backend_Session?

Or, is there a way to use Zend_Session on the console? It seems
Zend_Session will throw an exception if it does not have access to the
session store.

Ultimately I want an array or object that is backed by the session if
it's invoked by the server or degenerates gracefully to being backed
by a regular array if it's invoked by the CLI.

Ideas?

Mike

-- 
Michael B Allen
PHP Active Directory SPNEGO SSO
http://www.ioplex.com/


[fw-general] ZF and Zend Platform integration.

2008-02-15 Thread kabel
I'm exploring Zend Platform, trying to determine if it fits some needs we 
have.  Installation was a breeze; however, trying to use the Job Queue 
functionality is not going well.

As per the user guide, I'm using the ZendAPI_Job and ZendAPI_Queue classes to 
connect and insert a job.  What's throwing me is that I can't find these 
classes.  I've googled and found nothing.  I've searched the server on which 
ZP was installed and can't find where anything's been installed.  

I'm sure I'm missing something stupid, but can anyone tell me where I'd find 
these classes?

Karl


Re: [fw-general] Vim Function Library

2008-02-15 Thread Matthew Weier O'Phinney
-- Xaviar Rigo <[EMAIL PROTECTED]> wrote
(on Friday, 15 February 2008, 12:42 PM +):
> I still havent figured out how to use ctags.. must do that someday :)

I blogged about it a little over a year ago:


http://weierophinney.net/matthew/archives/134-exuberant-ctags-with-PHP-in-Vim.html

Pretty easy -- I even provide a sample script for it. :-)

> On 15/02/2008, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote:
> 
> -- Karl Katzke <[EMAIL PROTECTED]> wrote
> (on Thursday, 14 February 2008, 11:55 PM -0600):
> 
> > Has anyone put together a vim plugin / function library for Zend
> Framework? I
> > use vim as my IDE... yes, old-school, I know, and have a library I love
> for
> > Symfony with tab completion and all, and one for PHP itself, but not one
> for
> > Zend yet.
> 
> 
> I personally simply run ctags over my ZF library periodically, which
> gets me the tab completion I need.
> 
> 
> --
> Matthew Weier O'Phinney
> PHP Developer| [EMAIL PROTECTED]
> Zend - The PHP Company   | http://www.zend.com/
> 
> 

-- 
Matthew Weier O'Phinney
PHP Developer| [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/


Re: [fw-general] Vim Function Library

2008-02-15 Thread Xaviar Rigo
I still havent figured out how to use ctags.. must do that someday :)

On 15/02/2008, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote:
>
> -- Karl Katzke <[EMAIL PROTECTED]> wrote
> (on Thursday, 14 February 2008, 11:55 PM -0600):
>
> > Has anyone put together a vim plugin / function library for Zend
> Framework? I
> > use vim as my IDE... yes, old-school, I know, and have a library I love
> for
> > Symfony with tab completion and all, and one for PHP itself, but not one
> for
> > Zend yet.
>
>
> I personally simply run ctags over my ZF library periodically, which
> gets me the tab completion I need.
>
>
> --
> Matthew Weier O'Phinney
> PHP Developer| [EMAIL PROTECTED]
> Zend - The PHP Company   | http://www.zend.com/
>


Re: [fw-general] Vim Function Library

2008-02-15 Thread Matthew Weier O'Phinney
-- Karl Katzke <[EMAIL PROTECTED]> wrote
(on Thursday, 14 February 2008, 11:55 PM -0600):
> Has anyone put together a vim plugin / function library for Zend Framework? I
> use vim as my IDE... yes, old-school, I know, and have a library I love for
> Symfony with tab completion and all, and one for PHP itself, but not one for
> Zend yet.

I personally simply run ctags over my ZF library periodically, which
gets me the tab completion I need.

-- 
Matthew Weier O'Phinney
PHP Developer| [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/


Re: [fw-general] Zend_Form Config

2008-02-15 Thread Greg Frith

Hi all,

Thanks to assistance from Matthew, I have now resolved this problem by  
changing my Zend code base to the latest trunk (r8024).


Apologies for reporting this issue without first checking the latest  
code.  FYI I was previously using 1.5.0PR.


:wq
G.

On 15 Feb 2008, at 08:18, Greg Frith wrote:



On 14 Feb 2008, at 21:50, Matthew Weier O'Phinney wrote:


Thanks Matthew,

Have tried this (see below) but still the extra prefix and path  
are not added

to element pluginloaders.


Odd -- I just tried this on my own box, using the config you  
provided,
and it worked fine; here's a portion of a var_export() I did on my  
form

object:

   'VALIDATE' =>
   Zend_Loader_PluginLoader::__set_state(array(
  '_prefixToPaths' =>
 array (
   'Zend_Validate_' =>
   array (
 0 => 'Zend/Validate/',
   ),
   'WETB_Validate_' =>
   array (
 0 => 'WETB/Validate/',
   ),
 ),
  '_loadedPlugins' =>
 array (
   'WordChars' => 'WETB_Validate_WordChars',
   'StringLength' => 'Zend_Validate_StringLength',
 ),
  '_useStaticRegistry' => NULL,
   )),

As you can see, the plugin loader has the path, and the validator was
loaded (I created a dummy validator so I could test).

Are you using current trunk? If not, could you send me a copy of your
code and config file offline so I can see if I can diagnose the  
issue?


--
Matthew Weier O'Phinney
PHP Developer| [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/


Hi Matthew,

No sorry, I should have specified earlier, I am using version  
1.5.0PR.  I will check out the trunk and try again before we go any  
further.


Many thanks,

:wq
Greg




Re: [fw-general] Zend_Form Config

2008-02-15 Thread Greg Frith


On 14 Feb 2008, at 21:50, Matthew Weier O'Phinney wrote:


Thanks Matthew,

Have tried this (see below) but still the extra prefix and path are  
not added

to element pluginloaders.


Odd -- I just tried this on my own box, using the config you provided,
and it worked fine; here's a portion of a var_export() I did on my  
form

object:

   'VALIDATE' =>
   Zend_Loader_PluginLoader::__set_state(array(
  '_prefixToPaths' =>
 array (
   'Zend_Validate_' =>
   array (
 0 => 'Zend/Validate/',
   ),
   'WETB_Validate_' =>
   array (
 0 => 'WETB/Validate/',
   ),
 ),
  '_loadedPlugins' =>
 array (
   'WordChars' => 'WETB_Validate_WordChars',
   'StringLength' => 'Zend_Validate_StringLength',
 ),
  '_useStaticRegistry' => NULL,
   )),

As you can see, the plugin loader has the path, and the validator was
loaded (I created a dummy validator so I could test).

Are you using current trunk? If not, could you send me a copy of your
code and config file offline so I can see if I can diagnose the issue?

--
Matthew Weier O'Phinney
PHP Developer| [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/


Hi Matthew,

No sorry, I should have specified earlier, I am using version  
1.5.0PR.  I will check out the trunk and try again before we go any  
further.


Many thanks,

:wq
Greg