[fw-general] Re: [fw-mvc] Finding the place for Zend_Amf in MVC

2009-05-12 Thread J DeBord
I'm not sure that a request object exists. Perhaps you could code your own.
So far I've only been calling classes from flex and passing back objects to
it. I think there is a lot more that can be done.

If anyone else can chime in, that would be great. Or if there are any
obscure resources out there, let us know about them.

Good luck,

J


On Wed, May 13, 2009 at 3:43 AM, Ships  wrote:

>
> Hello all
>
> I am trying to build a web application using the following technologies..
>
> 1. Zend framework as the main framework
> 2. Adobe flex for view layer
> 3. Doctrine PHP ORM for developing database wrapper objects - model layer
>
> I am having trouble in figuring out how to integrate Zend and Flex using
> Zend_Amf. Here is what I have achieved:
>
> 1. I have developed a login form in adobe flex. The POST or GET request
> generated can be sent to some URL like
> http://www.domain.com/controller/action.
> 2. I have created the designated controller and instantiated the models
> objects necessary.
>
> Now I have to access the request being sent from flex. How should I do
> this?
> In the examples that I have Zend_Amf is being used like this
>
>  $server = new Zend_Amf_Server();
>  $server->setClass('User');  // the class containing methods
>  $server->setClassMap('Users', 'UsersFO'); // php class being mapped to
> flex class
>  $response = $server->handle();
>  echo $response;
>
> However, the request object is nowhere mentioned. Can anybody tell what I
> am
> missing?
>
> Thanks and Regards
> Ships
> --
> View this message in context:
> http://www.nabble.com/Finding-the-place-for-Zend_Amf-in-MVC-tp23513958p23513958.html
> Sent from the Zend MVC mailing list archive at Nabble.com.
>
>


Re: [fw-general] Autoloader warnings for module bootstraps

2009-05-12 Thread Brenton Alker
Brenton Alker wrote:
> Matthew Weier O'Phinney wrote:
>> -- Brenton Alker  wrote
>> (on Wednesday, 13 May 2009, 11:03 AM +1000):
>>> I'm in the process of writing a project using the new Zend_Application
>>> features. I've got module bootstrapping working and everything is going
>>> well, except I've got
>>>
>>> Zend_Loader_Autoloader::getInstance()->suppressNotFoundWarnings(true);
>>>
>>> in my application bootstrap. The manual indicates this is not desirable,
>>> and I agree. However, without it, the autoloader emits warnings when the
>>> modules resource checks if the Module_Bootstrap class exists
>>> (Zend/Application/Resource/Modules.php:71 in r15564).
>>
>> Please test against current trunk or the new 1.8.1 release -- I believe
>> this was already reported and resolved as of today.
> 
> No, still there. This was against the current trunk head (r15564).

Ugh, no, I lie... svn was messing with me. Seems fixed. Thanks.


-- 

Brenton Alker
PHP Developer - Brisbane, Australia

http://blog.tekerson.com/



signature.asc
Description: OpenPGP digital signature


Re: [fw-general] Autoloader warnings for module bootstraps

2009-05-12 Thread Brenton Alker
Matthew Weier O'Phinney wrote:
> -- Brenton Alker  wrote
> (on Wednesday, 13 May 2009, 11:03 AM +1000):
>> I'm in the process of writing a project using the new Zend_Application
>> features. I've got module bootstrapping working and everything is going
>> well, except I've got
>>
>> Zend_Loader_Autoloader::getInstance()->suppressNotFoundWarnings(true);
>>
>> in my application bootstrap. The manual indicates this is not desirable,
>> and I agree. However, without it, the autoloader emits warnings when the
>> modules resource checks if the Module_Bootstrap class exists
>> (Zend/Application/Resource/Modules.php:71 in r15564).
> 
> 
> Please test against current trunk or the new 1.8.1 release -- I believe
> this was already reported and resolved as of today.

No, still there. This was against the current trunk head (r15564).

-- 

Brenton Alker
PHP Developer - Brisbane, Australia

http://blog.tekerson.com/



signature.asc
Description: OpenPGP digital signature


Re: [fw-general] Autoloader warnings for module bootstraps

2009-05-12 Thread Matthew Weier O'Phinney
-- Brenton Alker  wrote
(on Wednesday, 13 May 2009, 11:03 AM +1000):
> I'm in the process of writing a project using the new Zend_Application
> features. I've got module bootstrapping working and everything is going
> well, except I've got
> 
> Zend_Loader_Autoloader::getInstance()->suppressNotFoundWarnings(true);
> 
> in my application bootstrap. The manual indicates this is not desirable,
> and I agree. However, without it, the autoloader emits warnings when the
> modules resource checks if the Module_Bootstrap class exists
> (Zend/Application/Resource/Modules.php:71 in r15564).


Please test against current trunk or the new 1.8.1 release -- I believe
this was already reported and resolved as of today.



> This could be fixed by adding false as the second argument to
> class_exists(). I don't see any issue with this, because if the
> application *is* using autoloader for the Module_Bootstrap (I imagine
> most aren't) it would still do the autoloading when the class is
> actually called later.
> 
> I've attached a patch to do this (it's only a 1 liner anyway), but
> thought I'd post it here in case I've missed something.
> 
> -- 
> 
> Brenton Alker
> PHP Developer - Brisbane, Australia
> 
> http://blog.tekerson.com/

> Index: Application/Resource/Modules.php
> ===
> --- Application/Resource/Modules.php  (revision 15564)
> +++ Application/Resource/Modules.php  (working copy)
> @@ -68,7 +68,7 @@
>  }
>  
>  $bootstrapClass = $this->_formatModuleName($module) . 
> '_Bootstrap';
> -if (!class_exists($bootstrapClass)) {
> +if (!class_exists($bootstrapClass, false)) {
>  $bootstrapPath  = $front->getModuleDirectory($module) . 
> '/Bootstrap.php';
>  if (file_exists($bootstrapPath)) {
>  include_once $bootstrapPath;




-- 
Matthew Weier O'Phinney
Project Lead| matt...@zend.com
Zend Framework  | http://framework.zend.com/


[fw-general] Re: [fw-announce] Zend Framework 1.8.1

2009-05-12 Thread Александр Ильин
ДЕВОЧКИ КРИЧАТ МАЛЬЧИКИ ХЛОПАЮТ В ЛАДОШИ!

2009/5/13 Matthew Weier O'Phinney :
> Greetings!
>
> The Zend Framework team is happy to announce the immediate availability
> of Zend Framework 1.8.1, the first maintenance release in the 1.8
> series. You can get it via our downloads page:
>
>    http://framework.zend.com/download/latest
>
> Use the CDN link for fast downloads, or scroll down the page for direct
> downloads of the 1.8.1 packages from the ZF servers.
>
> 1.8.0 was released only 13 days ago, but we already have logged 68
> resolved issues in that timeframe! We appreciate everyone who has taken
> the time to log bugs, documentation issues -- even issues with the Quick
> Start! -- as well as those who have given generously of their time to
> help resolve them.
>
> One important bugfix that should be noted is that a glitch in packaging
> of 1.8.0 meant that the Dojo version shipped with it was from the Dojo
> 1.2 branch -- and not the 1.3 branch as reported in the changelogs. The
> packaging script has been corrected, and the source build within the
> full ZF distribution now correclty includes Dojo 1.3.
>
> Other prominent changes include:
>
>  * Zend_Loader::registerAutoload() now proxies to
>    Zend_Loader_Autoloader, and marks the instance as a fallback
>    autoloader. This will ensure equivalent functionality, and reduces
>    the number of deprecation notices emitted to one.
>
>  * Many bugfixes and improvements to Zend_Application.
>
>  * Addition of module generation capabilities to Zend_Tool
>
>  * Addition of strong object typing capabilities to Zend_Amf
>
>  * Many more manual translations!
>
> For a full list of resolved issues, please visit:
>
>    http://short.ie/zf1-8-1-issues
>
> Again, many thanks to all contributors to this release!
>
> --
> Matthew Weier O'Phinney
> Project Lead            | matt...@zend.com
> Zend Framework          | http://framework.zend.com/
>


[fw-general] Autoloader warnings for module bootstraps

2009-05-12 Thread Brenton Alker
Hi,

I'm in the process of writing a project using the new Zend_Application
features. I've got module bootstrapping working and everything is going
well, except I've got

Zend_Loader_Autoloader::getInstance()->suppressNotFoundWarnings(true);

in my application bootstrap. The manual indicates this is not desirable,
and I agree. However, without it, the autoloader emits warnings when the
modules resource checks if the Module_Bootstrap class exists
(Zend/Application/Resource/Modules.php:71 in r15564).

This could be fixed by adding false as the second argument to
class_exists(). I don't see any issue with this, because if the
application *is* using autoloader for the Module_Bootstrap (I imagine
most aren't) it would still do the autoloading when the class is
actually called later.

I've attached a patch to do this (it's only a 1 liner anyway), but
thought I'd post it here in case I've missed something.

-- 

Brenton Alker
PHP Developer - Brisbane, Australia

http://blog.tekerson.com/
Index: Application/Resource/Modules.php
===
--- Application/Resource/Modules.php(revision 15564)
+++ Application/Resource/Modules.php(working copy)
@@ -68,7 +68,7 @@
 }
 
 $bootstrapClass = $this->_formatModuleName($module) . '_Bootstrap';
-if (!class_exists($bootstrapClass)) {
+if (!class_exists($bootstrapClass, false)) {
 $bootstrapPath  = $front->getModuleDirectory($module) . 
'/Bootstrap.php';
 if (file_exists($bootstrapPath)) {
 include_once $bootstrapPath;


signature.asc
Description: OpenPGP digital signature


Re: [fw-general] Zend Framework 1.8.1

2009-05-12 Thread Matthew Weier O'Phinney
And just a note: we're aware the ZendX documentation is, once again,
AWOL, and we'll have it back online as soon as possible. :-)


-- Matthew Weier O'Phinney  wrote
(on Tuesday, 12 May 2009, 08:49 PM -0400):
> Greetings!
> 
> The Zend Framework team is happy to announce the immediate availability
> of Zend Framework 1.8.1, the first maintenance release in the 1.8
> series. You can get it via our downloads page:
> 
> http://framework.zend.com/download/latest
> 
> Use the CDN link for fast downloads, or scroll down the page for direct
> downloads of the 1.8.1 packages from the ZF servers.
> 
> 1.8.0 was released only 13 days ago, but we already have logged 68
> resolved issues in that timeframe! We appreciate everyone who has taken
> the time to log bugs, documentation issues -- even issues with the Quick
> Start! -- as well as those who have given generously of their time to
> help resolve them.
> 
> One important bugfix that should be noted is that a glitch in packaging
> of 1.8.0 meant that the Dojo version shipped with it was from the Dojo
> 1.2 branch -- and not the 1.3 branch as reported in the changelogs. The
> packaging script has been corrected, and the source build within the
> full ZF distribution now correclty includes Dojo 1.3.
> 
> Other prominent changes include:
> 
>   * Zend_Loader::registerAutoload() now proxies to
> Zend_Loader_Autoloader, and marks the instance as a fallback
> autoloader. This will ensure equivalent functionality, and reduces
> the number of deprecation notices emitted to one.
> 
>   * Many bugfixes and improvements to Zend_Application.
>   
>   * Addition of module generation capabilities to Zend_Tool
> 
>   * Addition of strong object typing capabilities to Zend_Amf
> 
>   * Many more manual translations!
> 
> For a full list of resolved issues, please visit:
> 
> http://short.ie/zf1-8-1-issues
> 
> Again, many thanks to all contributors to this release!

-- 
Matthew Weier O'Phinney
Project Lead| matt...@zend.com
Zend Framework  | http://framework.zend.com/


Re: [fw-general] Form initialization with parameter

2009-05-12 Thread Brenton Alker
Andrei Iarus wrote:
> Hello everyone,
>  
> I want to init/construct an extension of the Zend_Form class, passing to
> it a parameter (a model object, from which the values to be displayed
> are to extracted). How can I do that, using the init() method? As I
> read, overriding the __construct method is not recommended, so the
> init() method is the only one that remains.
>  
> Thank you,
> Andrei

No need to override the constructor. Zend_Form already takes an options
array as its only parameter. So you can do:

$form = My_Form(array('model' => $model));

and inside My_Form you can add a method:

public function setModel($model)
{
$this->_model = $model;
}

which will be called automatically in response to the options array.
Then you can do whatever you want with $this->_model.

-- 

Brenton Alker
PHP Developer - Brisbane, Australia

http://blog.tekerson.com/



signature.asc
Description: OpenPGP digital signature


[fw-general] Zend Framework 1.8.1

2009-05-12 Thread Matthew Weier O'Phinney
Greetings!

The Zend Framework team is happy to announce the immediate availability
of Zend Framework 1.8.1, the first maintenance release in the 1.8
series. You can get it via our downloads page:

http://framework.zend.com/download/latest

Use the CDN link for fast downloads, or scroll down the page for direct
downloads of the 1.8.1 packages from the ZF servers.

1.8.0 was released only 13 days ago, but we already have logged 68
resolved issues in that timeframe! We appreciate everyone who has taken
the time to log bugs, documentation issues -- even issues with the Quick
Start! -- as well as those who have given generously of their time to
help resolve them.

One important bugfix that should be noted is that a glitch in packaging
of 1.8.0 meant that the Dojo version shipped with it was from the Dojo
1.2 branch -- and not the 1.3 branch as reported in the changelogs. The
packaging script has been corrected, and the source build within the
full ZF distribution now correclty includes Dojo 1.3.

Other prominent changes include:

  * Zend_Loader::registerAutoload() now proxies to
Zend_Loader_Autoloader, and marks the instance as a fallback
autoloader. This will ensure equivalent functionality, and reduces
the number of deprecation notices emitted to one.

  * Many bugfixes and improvements to Zend_Application.
  
  * Addition of module generation capabilities to Zend_Tool

  * Addition of strong object typing capabilities to Zend_Amf

  * Many more manual translations!

For a full list of resolved issues, please visit:

http://short.ie/zf1-8-1-issues

Again, many thanks to all contributors to this release!

-- 
Matthew Weier O'Phinney
Project Lead| matt...@zend.com
Zend Framework  | http://framework.zend.com/


Re: Re: [fw-general] RFC: ZendX_Doctrine

2009-05-12 Thread Matthew Lurz

I agree, with both of you :) I don't think we need to swallow the project
whole or cultivate an overarching bureaucracy since the ZF team provides the
necessary tooling, processes, etc

At the same time, I think that a small group of us could put out a
substantial chunk and that the quality of that chunk should be greater than
it would be if we were to work separately. Also, assuming that a good
proposal is easier to get through than a poor one, we can leverage some
teamwork to ensure that we submit the best proposals possible.

Here are my recommendations for those initial components which I believe
represents the components necessary to swap out Zend_Db with Doctrine:

- ZendX_Doctrine_Application_Resource_DoctrineManager
- ZendX_Doctrine_Tool_Framework_Project_DoctrineCliProvider
- ZendX_Doctrine_Log_Writer_Table
- ZendX_Doctrine_Session_SaveHandler_Table
- ZendX_Doctrine_Auth_Adapter_Table
- ZendX_Doctrine_Paginator_Adapter_Collection

Jason has already submitted proposals for Auth_Adapter_Table and
Paginator_Adapter_Collection have proposals in the works. Please review
these if you haven't already.

Tomek Pęszor has started working on Session_SaveHandler_Table and
Application_Resource_DoctrineManager. Please review his implementations
here:

http://wiki.github.com/taat/myzend
http://github.com/taat/myzend/tree/doctrine

This leaves - ZendX_Doctrine_Tool_Framework_Project_DoctrineCliProvider and
ZendX_Doctrine_Log_Writer_Table. Zend_Tool looks daunting but I hope Ralph
will be able to offer some guidance. Any takers? I'd be more than happy to
work on either, or both if necessary.

Here is a list of additional, potential components that have been noted thus
far:

ZendX_Doctrine_CodeGenerator_Form and/or some Form Generator and/or
Form/Model integration

Doctrine event listeners? .. debug, log, test?

Doctrine with Lucene Search w/ Doctrine listeners that update the index on
save/insert/delete

Doctrine with Zend_Amf to allow direct remoting to the model layer

Any others?


Jasone wrote:
> 
> I suggest we simply start by rolling out functionality that already exists  
> in the framework (adapters and such), and then roll out new features from  
> there, things that don't even exist in the framework itself, like an acl  
> with db.
> 
> 
> Jason
> 
> On May 12, 2009 2:14pm, Josh Team  wrote:
>> I personally think we are putting the horse before the cart. This
> 
>> doesn't have to be one huge project.. If we have any type of review
> 
>> processes, which we will in being an Open Source community, we can
> 
>> break down the project into smaller independent integration points.
> 
>> (eg Zend Acl w/ Doctrine - Doctrine CRUD Plug & Play Module -
> 
>> Zend_Search w/ Doctrine Plugin Listener - Etc) we use Assembla or some
> 
>> other free Open Source site to allow a wiki / ticket creation and let
> 
>> whoever wants to jump on the different teams and help. So we as a
> 
>> community work on the overall project, but the projects are agnostic
> 
>> to each other.. once we have the building blocks we can all see the
> 
>> best way to package it together. Roles will become self evident in
> 
>> each project as certain people will champion certain things naturally.
> 
> 
> 
>> Just my $.02
> 
> 
> 
>> On Tue, May 12, 2009 at 11:52 AM, Ralph Schindler
> 
>> ralph.schind...@zend.com> wrote:
> 
>> > Yeah, this is more or less what you'd need to implement.
> 
>> >
> 
>> > Off the top of your head, can you think of what "development time"
>> tasks
> 
>> > should be exposed? What will the tool be doing for the developer?
> 
>> >
> 
>> > -ralph
> 
>> >
> 
>> > Matthew Lurz wrote:
> 
>> >>
> 
>> >> I think a Zend Tool Project Provider is what I may be looking for  
>> instead.
> 
>> >>
> 
>> >>
> 
>> >> Matthew Lurz wrote:
> 
>> >>>
> 
>> >>> Thanks Josh. I hadn't thought of those and that's exactly the kind of
> 
>> >>> input needed to get a handle on the potential scope.
> 
>> >>>
> 
>> >>>
> 
>> >>> Josh Team wrote:
> 
>> 
> 
>>  I'm an avid user of both ZF and Doctrine. Time is short on my end
>> but
> 
>>  I can help here and there. Two things I've done with ZF & Doctrine
>> is
> 
>>  merge Doctrine with Lucene Search w/ Doctrine listeners that update
> 
>>  the index on save/insert/delete. I've also merged Doctrine with
> 
>>  Zend_Amf to allow remoting to interact right with the ORM layer.  
>> There
> 
>>  are a lot of other possible touch points like, Zend_Navigation -
> 
>>  Zend_Acl - etc.. where we could merge the two frameworks.
> 
>> 
> 
>> 
> 
>>  On Fri, May 8, 2009 at 6:04 PM, Matthew Lurz mlur...@gmail.com>  
>> wrote:
> 
>> >
> 
>> > Thanks Jason!!
> 
>> >
> 
>> > Clearly others, such as yourself, have exerted more effort than I
>> in
> 
>> > creating proposals, etc. I only hope to help in whatever way  
>> possible.
> 
>> > Feel
> 
>> > free to interject, but a tentative plan to move forward might look
> 
>> > something
> 
>>

Re: [fw-general] ZF 1.8 and Performance Guide (using find/sed to remove require once calls)

2009-05-12 Thread Tony Ford
If you want to remove the disk as a bottleneck then get apc going and  
turn apc.stat=0. This will cache your scripts in memory and never go  
back to disk until you clear the cache (and/or restart apache).


 - Tony

On May 12, 2009, at 12:40 AM, Laurens0619 wrote:



Hi Matthew,

I am trying to gain performance because our server (ibm as/400) is  
really

slow with disk access.
I've tried the solution from the manual by removing the require_once
statements and use the autoloader.

I get the same error, just blank pages. I have error reporting on so  
I can't

find the problem.
Autoloader is on by using the new architecture with zend_application.

Thanks in advance,
Laurens


Matthew Weier O'Phinney-3 wrote:


-- j5  wrote
(on Friday, 01 May 2009, 02:33 PM -0700):

I was tinkering with ZF 1.8 and the performance guide.

Specifically:

C.2.2.1. Strip require_once calls with find and sed.

The sed/find commands here have changed I noticed.  When I run  
these new

commands I get the following error:

-bash: syntax error near unexpected token `('


I took a look at the commands again and I thought I found a  
missing '

error


I've fixed this on trunk and the 1.8 release branch now, and the  
changes

will show when we release 1.8.1. Thanks for the report!



so I tried the revised commands:

find . -name '*.php' -not -wholename '*/Loader/Autoloader.php' - 
print0 |

\
xargs -0 sed --regexp-extended --in-place 's/(require_once)/\/\/  
\1/g'


(I added a ' after Autoloader.php).

That looked like it worked. But now when I browse to my website, I  
get a

blank page.


I am not sure if what I did fixed anything or what..

Anyone have any suggestions?


Do you have display_errors on? If not, turn it on to see if any  
errors

are being reported.

--
Matthew Weier O'Phinney
Project Lead| matt...@zend.com
Zend Framework  | http://framework.zend.com/




--
View this message in context: 
http://www.nabble.com/ZF-1.8-and-Performance-Guide-%28using-find-sed-to-remove-require-once-calls%29-tp23340034p23497684.html
Sent from the Zend Framework mailing list archive at Nabble.com.





[fw-general] Form initialization with parameter

2009-05-12 Thread Andrei Iarus
Hello everyone,
 
I want to init/construct an extension of the Zend_Form class, passing to it a 
parameter (a model object, from which the values to be displayed are to 
extracted). How can I do that, using the init() method? As I read, overriding 
the __construct method is not recommended, so the init() method is the only one 
that remains.
 
Thank you,
Andrei


  

Re: [fw-general] Quickstart Guide Model Programming Paradigms

2009-05-12 Thread Jurian Sluiman
Hi Tom,
I don't understand your first question well, but nevertheless I'll try to 
answer. The function checkEmail() sounds very like an input validator. You can 
use Zend_Validator to validate email against it. Better: use Zend_Form for 
input and attach the validator to your input field. Now the validation is done 
even before you're speaking about the domain model or data mapper.

For table gateway functions: adding some more data during insert or update 
(timestamps and/or user id's) are typically things you want to do in the 
datamapper. The quickstart used to have such an update method.

R, Jurian
--
Jurian Sluiman
Soflomo.com

Op Tuesday 12 May 2009 18:29:32 schreef Tom Shaw:
> Following the example Model programming patterns found in the Zend
> Framework Quick Start, Domain Model, Data Mapper, Table Data Gateway. My
> question is, to adhere to the rules of all three
>
> programming patterns where should your miscellaneous functions like
> checkEmail() or updateAccess() be placed? My guess is but I want to be 100%
> certain is follow the exact same rules
>
> as the base functions getId() fetch() fetchAll() are using, by placing
> reference functions in your Domain Model that refer to the actual function
> in the Data Mapper. My last question is what kind of functions would you
> typically use in your Table Data Gateway when using all three programming
> paradigms.
>
>
>
> Thanks
>
>
>
> Tom Shaw
>
> php.co...@tx.rr.com
>
> 214-275-4326


Re: [fw-general] RFC: ZendX_Doctrine

2009-05-12 Thread admirau



Matthew Lurz wrote:
> 
> Thanks. Eventually proposals will need to be create and submitted. I think
> we need to address some big-picture questions before getting into the
> details of any given component.
> 
> 
> admirau wrote:
>> 
>> Take a look on my approach:
>> http://wiki.github.com/taat/myzend
>> 
> 
> 

Hi.
I have added Doctrine Session Handler to the repository
http://github.com/taat/myzend/tree/doctrine

-- 
regards
takeshin

-- 
View this message in context: 
http://www.nabble.com/RFC%3A-ZendX_Doctrine-tp23454552p23509142.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Zend_Amf: Method "null" does not exist

2009-05-12 Thread J DeBord
Hey Douglas,

Thanks for posting this. Definitely could come in handy.

If you know of any good resources for flex/Amf information, please let me
know.

Thanks again.

J


On Tue, May 12, 2009 at 7:47 PM, Douglas Pasqua wrote:

> The following link has the solution for this problem.
> http://www.mail-archive.com/flexcod...@yahoogroups.com/msg74512.html "Ok,
> now...one single line of code added into my Module's constructor has fixed
> the whole problem. It is:
> registerClassAlias("flex.messaging.messages.RemotingMessage",
> mx.messaging.messages.RemotingMessage);" I need also added the folowing
> line: import mx.messaging.messages.RemotingMessage; Regards, Douglas
>
> Douglas Pasqua wrote:
>  Hello, I have notice a strange behave in Zend/Amf/Server.php, line 648:
> $message = $body->getData(); Sometimes, after some requests mades from Flex
> module. the method getData returns a object instance of StdClass. On first
> Module Loaded, the $message is a instance of
> Zend_Amf_Value_Messaging_RemotingMessage. Then, I added the following code,
> after line 648: if ($message instanceof stdClass) { $n = new
> Zend_Amf_Value_Messaging_RemotingMessage(); $n->source = $message->source;
> $n->operation = $message->operation; $n->headers = $message->headers;
> $n->destination = $message->destination; $n->messageId =
> $message->messageId; $n->body = $message->body; $n->clientId =
> $message->clientId; $n->timestamp = $message->timestamp; $n->timeToLive =
> $message->timeToLive; $message = $n; } After that, I didin't received the
> error message: Method "null" does not exist ! Everything is working well.
> Maybe, there is a Flex RemoteObject request that ZF doesn't handle well.
> Regards, Douglas Pasqua
>
> Douglas Pasqua wrote:
>  Hello Guys, I have a flex module , named "Host", loaded by a item in a
> Tree. The module makes requests to a Zend_Amf_Server ! The flex module has a
> init method where its make the connection to Zend_Amf_Server, loading a
> DataGrid and some LIST form components. On the first load of module,
> everything goes well. The DataGrid and the Lists form are Loaded successful!
> When I click in another item of Tree, changing the module, and then return
> back to the module "Host", loading the "Host" module again, I receive the
> message below: The same connection made a litte time ago with sucess, know
> it's fail. [RPC Fault faultString="Method "null" does not exist"
> faultCode="0" faultDetail="#0 /usr/share/php/Zend/Amf/Server.php(268):
> Zend_Amf_Server->_dispatch('null', Object(stdClass)) #1
> /usr/share/php/Zend/Amf/Server.php(322):
> Zend_Amf_Server->_handle(Object(Zend_Amf_Request_Http)) #2
> /home/AGTECH/douglas.pasqua/public_html/agmonitor_dev/application/core/controllers/ServerController.php(44):
> Zend_Amf_Server->handle() #3 /usr/share/php/Zend/Controller/Action.php(503):
> ServerController->loadAction() #4
> /usr/share/php/Zend/Controller/Dispatcher/Standard.php(285):
> Zend_Controller_Action->dispatch('loadAction') #5
> /usr/share/php/Zend/Controller/Front.php(934):
> Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http),
> Object(Zend_Controller_Response_Http)) #6
> /home/AGTECH/douglas.pasqua/public_html/agmonitor_dev/application/library/Agtech/Bootstrap.php(217):
> Zend_Controller_Front->dispatch() #7
> /home/AGTECH/douglas.pasqua/public_html/agmonitor_dev/application/webapp/controller.php(25):
> Agtech_Bootstrap->dispatch() #8 {main}"] at mx.rpc::AbstractInvoker/
> http://www.adobe.com/2006/flex/mx/internal::faultHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:220]
> at
> mx.rpc::Responder/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\Responder.as:53]
> at
> mx.rpc::AsyncRequest/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:103]
> at
> NetConnectionMessageResponder/statusHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\channels\NetConnectionChannel.as:569]
> at
> mx.messaging::MessageResponder/status()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\MessageResponder.as:222]
> The Server Controller, loadAction: $server = new Zend_Amf_Server();
> $server->setProduction(false); require_once dirname(__FILE__) .
> '/../Host/HostServer.php'; require_once dirname(__FILE__) .
> '/../Host/agHost.php'; $server->setClass('HostServer');
> $server->setClassMap('HostVO', 'agHost'); $response = $server->handle();
> echo $response; Services-Config: * Regards, Douglas
>
>
> --
> View this message in context: Re: Zend_Amf: Method "null" does not 
> exist
> Sent from the Zend Framework mailing list 
> archiveat Nabble.com.
>


Re: [fw-general] Re: that Zend_Application Quickstart again

2009-05-12 Thread holografix .
If you can set up a virtual host you can define the mod_rewrite rules in it
and you don't need the .htaccess.


ServerName app
DocumentRoot "/wwwroot/www-php/projects/app/public"

RewriteEngine off


RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ /index.php [NC,L]



Cheers
holo

2009/5/12 David Mintz 

> Nevermind!
>
> Let this be a lesson to other fools like me:  when you set up a virtual
> host and start playing, take your time and do it right. My vhost was not
> parsing .htaccess because I hadn't said AllowOverride All for my doc root
> directory on the filesystem. So what was happening was that when I accessed
> / , it "worked" because I was lucky:  the server was processing index.php
> and rendering /index/index. When I tried to access /anything/else it was 404
> whether the controller/action existed or not.
>
> On Tue, May 12, 2009 at 11:04 AM, David Mintz wrote:
>
>> I created the skeleton with zf. Now I am supposing that if you point your
>> browser to myproject/non/existent you should get an error courtesy of the
>> error handler plugin/ErrorController. But I get a blank screen.
>>
>> Do you have to explicitly register Zend_Controller_Plugin_ErrorHandler
>> with the front controller and if so, how?
>>
>> (I could swear I saw someone demonstrate this in a previous thread but now
>> I can't find it.)
>>
>> Thanks.
>>
>>
>> --
>> David Mintz
>> http://davidmintz.org/
>>
>> The subtle source is clear and bright
>> The tributary streams flow through the darkness
>>
>
>
>
> --
> David Mintz
> http://davidmintz.org/
>
> The subtle source is clear and bright
> The tributary streams flow through the darkness
>


[fw-general] Re: that Zend_Application Quickstart again

2009-05-12 Thread David Mintz
Nevermind!

Let this be a lesson to other fools like me:  when you set up a virtual host
and start playing, take your time and do it right. My vhost was not parsing
.htaccess because I hadn't said AllowOverride All for my doc root directory
on the filesystem. So what was happening was that when I accessed / , it
"worked" because I was lucky:  the server was processing index.php and
rendering /index/index. When I tried to access /anything/else it was 404
whether the controller/action existed or not.

On Tue, May 12, 2009 at 11:04 AM, David Mintz  wrote:

> I created the skeleton with zf. Now I am supposing that if you point your
> browser to myproject/non/existent you should get an error courtesy of the
> error handler plugin/ErrorController. But I get a blank screen.
>
> Do you have to explicitly register Zend_Controller_Plugin_ErrorHandler with
> the front controller and if so, how?
>
> (I could swear I saw someone demonstrate this in a previous thread but now
> I can't find it.)
>
> Thanks.
>
>
> --
> David Mintz
> http://davidmintz.org/
>
> The subtle source is clear and bright
> The tributary streams flow through the darkness
>



-- 
David Mintz
http://davidmintz.org/

The subtle source is clear and bright
The tributary streams flow through the darkness


Re: Re: [fw-general] RFC: ZendX_Doctrine

2009-05-12 Thread jasoneisen
I suggest we simply start by rolling out functionality that already exists  
in the framework (adapters and such), and then roll out new features from  
there, things that don't even exist in the framework itself, like an acl  
with db.



Jason

On May 12, 2009 2:14pm, Josh Team  wrote:

I personally think we are putting the horse before the cart. This



doesn't have to be one huge project.. If we have any type of review



processes, which we will in being an Open Source community, we can



break down the project into smaller independent integration points.



(eg Zend Acl w/ Doctrine - Doctrine CRUD Plug & Play Module -



Zend_Search w/ Doctrine Plugin Listener - Etc) we use Assembla or some



other free Open Source site to allow a wiki / ticket creation and let



whoever wants to jump on the different teams and help. So we as a



community work on the overall project, but the projects are agnostic



to each other.. once we have the building blocks we can all see the



best way to package it together. Roles will become self evident in



each project as certain people will champion certain things naturally.





Just my $.02





On Tue, May 12, 2009 at 11:52 AM, Ralph Schindler



ralph.schind...@zend.com> wrote:



> Yeah, this is more or less what you'd need to implement.



>



> Off the top of your head, can you think of what "development time" tasks



> should be exposed? What will the tool be doing for the developer?



>



> -ralph



>



> Matthew Lurz wrote:



>>


>> I think a Zend Tool Project Provider is what I may be looking for  
instead.



>>



>>



>> Matthew Lurz wrote:



>>>



>>> Thanks Josh. I hadn't thought of those and that's exactly the kind of



>>> input needed to get a handle on the potential scope.



>>>



>>>



>>> Josh Team wrote:







 I'm an avid user of both ZF and Doctrine. Time is short on my end but



 I can help here and there. Two things I've done with ZF & Doctrine is



 merge Doctrine with Lucene Search w/ Doctrine listeners that update



 the index on save/insert/delete. I've also merged Doctrine with


 Zend_Amf to allow remoting to interact right with the ORM layer.  
There



 are a lot of other possible touch points like, Zend_Navigation -



 Zend_Acl - etc.. where we could merge the two frameworks.










 On Fri, May 8, 2009 at 6:04 PM, Matthew Lurz mlur...@gmail.com>  
wrote:



>



> Thanks Jason!!



>



> Clearly others, such as yourself, have exerted more effort than I in


> creating proposals, etc. I only hope to help in whatever way  
possible.



> Feel



> free to interject, but a tentative plan to move forward might look



> something



> like:



>



> 1) Gather momentum and get a few dedicated people on board



>


> 2) Analyze/review potential integration points and agree on the  
initial



> scope of the library



>



> 3) Gather/modify/normalize existing/proposed components



>



> 4) Implement additional components within the initial scope



>


> 5) Provide a roadmap for enhancements taking into consideration  
changes



> to



> the ZF and Doctrine



>


> I'm assuming that you've gone through the process of signing the  
CLA,



> etc? I



> have not and so would need to review this information and go through



> the



> necessary process.



>



> Thanks again for the feedback. Let me know if you have any other



> recommendations, ideas, etc.



>



>



> Jasone wrote:



>>



>> I am able, and have the time, to do this. I authored two of those



>> proposals. Been waiting on the zend team :)



>>



>> (Or now that I look, maybe they're not moved to "ready for review"



>> yet?)



>>



>>



>> Jason



>>



>>



>> On May 8, 2009 6:16pm, Matthew Lurz mlur...@gmail.com> wrote:



>>



>>



>>> !!! Calling All Doctrine/ZF Users !!!



>>



>>


>>> While the ZF wiki contains several Doctrine related proposals,  
there



>>> doesn't



>>> seem to exist a cohesive movement toward tying together these 2



>>> excellent



>>> pieces of software. With the benefits of doing so being so great,



>>> let's



>>> band



>>> together for this purpose!



>>



>>



>>> If you are a potential recipient of these benefits, would you be



>>> interested



>>> in



>>> using or contributing to the development of such an integration



>>> library?



>>



>>



>>> If so, read on and reply..



>>



>>



>>> A brief survey of potential integration points (1) turned up:



>>



>>



>>> ZendX_Doctrine_Application_Resource_Manager (2)



>>



>>



>>> ZendX_Doctrine_Tool_Framework_Client



>>



>>



>>> Zen

Re: [fw-general] RFC: ZendX_Doctrine

2009-05-12 Thread Josh Team
I personally think we are putting the horse before the cart. This
doesn't have to be one huge project.. If we have any type of review
processes, which we will in being an Open Source community, we can
break down the project into smaller independent integration points.
(e.g. Zend Acl w/ Doctrine - Doctrine CRUD Plug & Play Module -
Zend_Search w/ Doctrine Plugin Listener - Etc) we use Assembla or some
other free Open Source site to allow a wiki / ticket creation and let
whoever wants to jump on the different teams and help. So we as a
community work on the overall project, but the projects are agnostic
to each other.. once we have the building blocks we can all see the
best way to package it together. Roles will become self evident in
each project as certain people will champion certain things naturally.

Just my $.02

On Tue, May 12, 2009 at 11:52 AM, Ralph Schindler
 wrote:
> Yeah, this is more or less what you'd need to implement.
>
> Off the top of your head, can you think of what "development time" tasks
> should be exposed?  What will the tool be doing for the developer?
>
> -ralph
>
> Matthew Lurz wrote:
>>
>> I think a Zend Tool Project Provider is what I may be looking for instead.
>>
>>
>> Matthew Lurz wrote:
>>>
>>> Thanks Josh. I hadn't thought of those and that's exactly the kind of
>>> input needed to get a handle on the potential scope.
>>>
>>>
>>> Josh Team wrote:

 I'm an avid user of both ZF and Doctrine. Time is short on my end but
 I can help here and there. Two things I've done with ZF & Doctrine is
 merge Doctrine with Lucene Search w/ Doctrine listeners that update
 the index on save/insert/delete. I've also merged Doctrine with
 Zend_Amf to allow remoting to interact right with the ORM layer. There
 are a lot of other possible touch points like, Zend_Navigation -
 Zend_Acl - etc.. where we could merge the two frameworks.


 On Fri, May 8, 2009 at 6:04 PM, Matthew Lurz  wrote:
>
> Thanks Jason!!
>
> Clearly others, such as yourself, have exerted more effort than I in
> creating proposals, etc. I only hope to help in whatever way possible.
> Feel
> free to interject, but a tentative plan to move forward might look
> something
> like:
>
> 1) Gather momentum and get a few dedicated people on board
>
> 2) Analyze/review potential integration points and agree on the initial
> scope of the library
>
> 3) Gather/modify/normalize existing/proposed components
>
> 4) Implement additional components within the initial scope
>
> 5) Provide a roadmap for enhancements taking into consideration changes
> to
> the ZF and Doctrine
>
> I'm assuming that you've gone through the process of signing the CLA,
> etc? I
> have not and so would need to review this information and go through
> the
> necessary process.
>
> Thanks again for the feedback. Let me know if you have any other
> recommendations, ideas, etc.
>
>
> Jasone wrote:
>>
>> I am able, and have the time, to do this. I authored two of those
>> proposals. Been waiting on the zend team :)
>>
>> (Or now that I look, maybe they're not moved to "ready for review"
>> yet?)
>>
>>
>> Jason
>>
>>
>> On May 8, 2009 6:16pm, Matthew Lurz  wrote:
>>
>>
>>> !!! Calling All Doctrine/ZF Users !!!
>>
>>
>>> While the ZF wiki contains several Doctrine related proposals, there
>>> doesn't
>>> seem to exist a cohesive movement toward tying together these 2
>>> excellent
>>> pieces of software. With the benefits of doing so being so great,
>>> let's
>>> band
>>> together for this purpose!
>>
>>
>>> If you are a potential recipient of these benefits, would you be
>>> interested
>>> in
>>> using or contributing to the development of such an integration
>>> library?
>>
>>
>>> If so, read on and reply..
>>
>>
>>> A brief survey of potential integration points (1) turned up:
>>
>>
>>> ZendX_Doctrine_Application_Resource_Manager (2)
>>
>>
>>> ZendX_Doctrine_Tool_Framework_Client
>>
>>
>>> ZendX_Doctrine_Log_Writer_Table
>>
>>
>>> ZendX_Doctrine_Session_SaveHandler_Table
>>
>>
>>> ZendX_Doctrine_Auth_Adapter_Table (3)
>>
>>
>>> ZendX_Doctrine_Paginator_Adapter_Collection (3)
>>
>>
>>> ZendX_Doctrine_CodeGenerator_Form (3)
>>
>>
>>> ---
>>
>>
>>> It wasn't my intent to define scope or vision, but the general intent
>>> of
>>> each
>>> should be somewhat self-evident.
>>
>>
>>> Integration points moving in the other direction exist as well. I've
>>> yet
>>> to
>>> evaluate these relationships, but one possibility is Doctrine event
>>> listeners
>>> using Zend_Log for profiling, debugging, etc.
>>

Re: [fw-general] Zend_Amf: Method "null" does not exist

2009-05-12 Thread Douglas Pasqua


The following link has the solution for this problem.

http://www.mail-archive.com/flexcod...@yahoogroups.com/msg74512.html
http://www.mail-archive.com/flexcod...@yahoogroups.com/msg74512.html 

"Ok, now...one single line of code added into my Module's constructor has
fixed the whole problem. It is:

registerClassAlias("flex.messaging.messages.RemotingMessage",
mx.messaging.messages.RemotingMessage);"

I need also added the folowing line:

import mx.messaging.messages.RemotingMessage;

Regards,

Douglas



Douglas Pasqua wrote:
> 
> Hello,
> 
> I have notice a strange behave in Zend/Amf/Server.php, line 648:
> 
> $message = $body->getData();
> 
> Sometimes,  after some requests mades from Flex module. the method getData
> returns
> a object instance of StdClass. On first Module Loaded, the $message is a
> instance of
> Zend_Amf_Value_Messaging_RemotingMessage.
> 
> Then, I added the following code, after line 648:
> 
>   if ($message instanceof stdClass) {
>   $n = new Zend_Amf_Value_Messaging_RemotingMessage();
>   $n->source = $message->source;
>   $n->operation = $message->operation;
>   $n->headers = $message->headers;
>   $n->destination = $message->destination;
>   $n->messageId = $message->messageId;
>   $n->body = $message->body;
>   $n->clientId = $message->clientId;
>   $n->timestamp = $message->timestamp;
>   $n->timeToLive = $message->timeToLive;
> 
>   $message = $n;
>   }
> 
> 
> After that, I didin't received the error message: Method "null" does not
> exist !
> Everything is working well.
> 
> Maybe, there is a Flex RemoteObject request that ZF doesn't handle well.
> 
> Regards,
> 
> Douglas Pasqua
> 
> 
> 
> Douglas Pasqua wrote:
>> 
>> Hello Guys,
>> 
>> I have a flex module , named "Host", loaded by a item in a Tree. The
>> module makes requests to 
>> a Zend_Amf_Server !
>> 
>> The flex module has a init method where its make the connection to
>> Zend_Amf_Server, loading 
>> a DataGrid and some LIST form components. On the first load of module,
>> everything goes well. 
>> The DataGrid and the Lists form are Loaded successful!
>> 
>> When I click in another item of Tree, changing the module, and then
>> return back to the module 
>> "Host", loading the "Host" module again, I receive the message below: The
>> same connection 
>> made a litte time ago with sucess, know it's fail.
>> 
>> [RPC Fault faultString="Method "null" does not exist" faultCode="0"
>> faultDetail="#0 /usr/share/php/Zend/Amf/Server.php(268):
>> Zend_Amf_Server->_dispatch('null', Object(stdClass))
>> #1 /usr/share/php/Zend/Amf/Server.php(322):
>> Zend_Amf_Server->_handle(Object(Zend_Amf_Request_Http))
>> #2
>> /home/AGTECH/douglas.pasqua/public_html/agmonitor_dev/application/core/controllers/ServerController.php(44):
>> Zend_Amf_Server->handle()
>> #3 /usr/share/php/Zend/Controller/Action.php(503):
>> ServerController->loadAction()
>> #4 /usr/share/php/Zend/Controller/Dispatcher/Standard.php(285):
>> Zend_Controller_Action->dispatch('loadAction')
>> #5 /usr/share/php/Zend/Controller/Front.php(934):
>> Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http),
>> Object(Zend_Controller_Response_Http))
>> #6
>> /home/AGTECH/douglas.pasqua/public_html/agmonitor_dev/application/library/Agtech/Bootstrap.php(217):
>> Zend_Controller_Front->dispatch()
>> #7
>> /home/AGTECH/douglas.pasqua/public_html/agmonitor_dev/application/webapp/controller.php(25):
>> Agtech_Bootstrap->dispatch()
>> #8 {main}"]
>>  at
>> mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:220]
>>  at
>> mx.rpc::Responder/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\Responder.as:53]
>>  at
>> mx.rpc::AsyncRequest/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:103]
>>  at
>> NetConnectionMessageResponder/statusHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\channels\NetConnectionChannel.as:569]
>>  at
>> mx.messaging::MessageResponder/status()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\MessageResponder.as:222]
>> 
>> The Server Controller, loadAction:
>> 
>>  $server = new Zend_Amf_Server();
>>  $server->setProduction(false);
>> 
>>  require_once dirname(__FILE__) . '/../Host/HostServer.php';
>>  require_once dirname(__FILE__) . '/../Host/agHost.php';
>>  $server->setClass('HostServer');
>>  $server->setClassMap('HostVO', 'agHost');
>>  $response = $server->handle();
>> echo $response;
>> 
>> 
>> Services-Config:
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> *
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> Regards,
>> 
>> Douglas
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Zend_Amf%3A-Method-%22null%22-does-not-exist-tp21108518p23506775.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Re: [fw-general] RFC: ZendX_Doctrine

2009-05-12 Thread Ralph Schindler

Yeah, this is more or less what you'd need to implement.

Off the top of your head, can you think of what "development time" tasks 
should be exposed?  What will the tool be doing for the developer?


-ralph

Matthew Lurz wrote:

I think a Zend Tool Project Provider is what I may be looking for instead.


Matthew Lurz wrote:

Thanks Josh. I hadn't thought of those and that's exactly the kind of
input needed to get a handle on the potential scope.


Josh Team wrote:

I'm an avid user of both ZF and Doctrine. Time is short on my end but
I can help here and there. Two things I've done with ZF & Doctrine is
merge Doctrine with Lucene Search w/ Doctrine listeners that update
the index on save/insert/delete. I've also merged Doctrine with
Zend_Amf to allow remoting to interact right with the ORM layer. There
are a lot of other possible touch points like, Zend_Navigation -
Zend_Acl - etc.. where we could merge the two frameworks.


On Fri, May 8, 2009 at 6:04 PM, Matthew Lurz  wrote:

Thanks Jason!!

Clearly others, such as yourself, have exerted more effort than I in
creating proposals, etc. I only hope to help in whatever way possible.
Feel
free to interject, but a tentative plan to move forward might look
something
like:

1) Gather momentum and get a few dedicated people on board

2) Analyze/review potential integration points and agree on the initial
scope of the library

3) Gather/modify/normalize existing/proposed components

4) Implement additional components within the initial scope

5) Provide a roadmap for enhancements taking into consideration changes
to
the ZF and Doctrine

I'm assuming that you've gone through the process of signing the CLA,
etc? I
have not and so would need to review this information and go through the
necessary process.

Thanks again for the feedback. Let me know if you have any other
recommendations, ideas, etc.


Jasone wrote:

I am able, and have the time, to do this. I authored two of those
proposals. Been waiting on the zend team :)

(Or now that I look, maybe they're not moved to "ready for review"
yet?)


Jason


On May 8, 2009 6:16pm, Matthew Lurz  wrote:



!!! Calling All Doctrine/ZF Users !!!




While the ZF wiki contains several Doctrine related proposals, there
doesn't
seem to exist a cohesive movement toward tying together these 2
excellent
pieces of software. With the benefits of doing so being so great,
let's
band
together for this purpose!




If you are a potential recipient of these benefits, would you be
interested
in
using or contributing to the development of such an integration
library?




If so, read on and reply..




A brief survey of potential integration points (1) turned up:




ZendX_Doctrine_Application_Resource_Manager (2)




ZendX_Doctrine_Tool_Framework_Client




ZendX_Doctrine_Log_Writer_Table




ZendX_Doctrine_Session_SaveHandler_Table




ZendX_Doctrine_Auth_Adapter_Table (3)




ZendX_Doctrine_Paginator_Adapter_Collection (3)




ZendX_Doctrine_CodeGenerator_Form (3)




---




It wasn't my intent to define scope or vision, but the general intent
of
each
should be somewhat self-evident.




Integration points moving in the other direction exist as well. I've
yet
to
evaluate these relationships, but one possibility is Doctrine event
listeners
using Zend_Log for profiling, debugging, etc.




Have I missed any potential integration points? Any other comments?




1) ZendX_Doctrine is the proposed namespace
2) I have some very basic, working code if anyone is interested
3) Proposal exists on ZF wiki
--
View this message in context:
http://www.nabble.com/RFC%3A-ZendX_Doctrine-tp23454552p23454552.html
Sent from the Zend Framework mailing list archive at Nabble.com.






--
View this message in context:
http://www.nabble.com/RFC%3A-ZendX_Doctrine-tp23454552p23455034.html
Sent from the Zend Framework mailing list archive at Nabble.com.










[fw-general] Quickstart Guide Model Programming Paradigms

2009-05-12 Thread Tom Shaw
Following the example Model programming patterns found in the Zend Framework
Quick Start, Domain Model, Data Mapper, Table Data Gateway. My question is,
to adhere to the rules of all three 

programming patterns where should your miscellaneous functions like
checkEmail() or updateAccess() be placed? My guess is but I want to be 100%
certain is follow the exact same rules

as the base functions getId() fetch() fetchAll() are using, by placing
reference functions in your Domain Model that refer to the actual function
in the Data Mapper. My last question is what kind of functions would you
typically use in your Table Data Gateway when using all three programming
paradigms. 

 

Thanks

 

Tom Shaw

php.co...@tx.rr.com

214-275-4326

 

 



[fw-general] that Zend_Application Quickstart again

2009-05-12 Thread David Mintz
I created the skeleton with zf. Now I am supposing that if you point your
browser to myproject/non/existent you should get an error courtesy of the
error handler plugin/ErrorController. But I get a blank screen.

Do you have to explicitly register Zend_Controller_Plugin_ErrorHandler with
the front controller and if so, how?

(I could swear I saw someone demonstrate this in a previous thread but now I
can't find it.)

Thanks.


-- 
David Mintz
http://davidmintz.org/

The subtle source is clear and bright
The tributary streams flow through the darkness


[fw-general] Action controller in modular structure

2009-05-12 Thread Vibhor Singh
Hi,

 

I am using a modular directory structure for my zend app. Here is the
structure:

 

Appname

- frontend

-modules

-module1

-controller

-models

-views

-module2

-controller

-models

-views

-layouts

-helpers

 

I need to have an action helper for my controllers

The helpers directory is where my action helper files will reside. In the
bootstrap, I have done this:

 

$view->addHelperPath(FRONT_APPLICATION_PATH.'/helpers');

 

This is the code that I have written for my new helper

class Zend_Controller_Action_Helper_Cim extends
Zend_Controller_Action_Helper_Abstract

  {

function direct($a) {

return $a.'from Helper';

}



function other($a) {

echo $a.'from Helper other';

}

  }

 

And this is how I am calling in the controller:

$leadHelper = $this->_helper->getHelper('cim');

 echo $leadHelper->direct('asdasd');

 

I cannot see any error but also I do not see any output. Am I doing
something wrong here. 

Any help will be appreciated.

 

Thanks,

Vibhor



[fw-general] Serious problems with Zend_Form after OS upgrade (Debian Lenny x86_64)

2009-05-12 Thread Stefan Aumann

Hey,

after upgrading to Debian Lenny (2.6.24.2-vs2.2.0.5.0.7-xeon15 #1 SMP 
x86_64 GNU/Linux) I am encountering serious problems with Zend_Form. 
Whenever I try to open a page containing a Zend_Form-generated form I 
get the following error:


Fatal error: Cannot redeclare class Zend_Filter_Interface in 
/usr/local/ZendFramework/library/Zend/Filter/Interface.php on line 30


I would be very grateful if anybody could give me a hint towards a 
solution for the problem. The error occurs when I try to output the form 
via Zend_View:



 form; ?>


When I use print_r() or var_dump() the form is dumped correctly.

There were no such errors before the os upgrade. Maybe this has to do 
with the PHP version (PHP 5.2.6-1+lenny3 with Suhosin-Patch 0.9.6.2). 
The error occurs irrespective of the ZF version (1.7.4 to 1.8.0). As 
regards my site configuration, I use autoloading (no opcode caching 
mechanism is used on the machine).


My bootstrap class (ZF 1.8.0) has the following directives:

$rootDir = dirname(dirname(__FILE__));
define('ROOT_DIR', $rootDir);
set_include_path(
  '/usr/local/ZendFramework/library'
  . PATH_SEPARATOR . get_include_path()
  . PATH_SEPARATOR . ROOT_DIR . '/lib'
  . PATH_SEPARATOR . ROOT_DIR . '/application/models'
  . PATH_SEPARATOR . ROOT_DIR . '/application/forms'
);

require_once 'Zend/Loader/Autoloader.php';
$loader = Zend_Loader_Autoloader::getInstance();
$loader->setFallbackAutoloader(true);
$loader->suppressNotFoundWarnings(false);

The include_path directive in php.ini reads as follows:

include_path = ".:/usr/share/php"

Thanks a lot in advance!

Stefan



Re: [fw-general] library folder autoload

2009-05-12 Thread Matthew Weier O'Phinney
-- andeeh  wrote
(on Tuesday, 12 May 2009, 03:07 AM -0700):
> Whats the correct way to autoload from the library folder? What do I invoke
> in the bootstrap for version 1.8?

The correct way is to have your library folder on your include_path --
and that's all. The autoloader will then pick this up.

Now, if you have additional prefixes under the library folder -- such
as, in your example below, 'Mylib_' -- you should pass these to
Zend_Application either via your configuration or the options you pass:

$application = new Zend_Application(APPLICATION_ENV, array(
'autoloaderNamespaces' => array('Mylib_'),
...
));

or, in a config file:

autoloaderNamespaces[] = "Mylib_"

No other action is necessary.

However...

 

> How would I modify _initAutoload() to load classes under /library/Mylib? 
> 
> for example I have an "action helper" under 
> 
> /library/Mylib/Controller/Action/Helper/MyHelper.php

This is a different question, as you want the helper broker to be able
to find action helpers under that prefix and path. The way to do so is
to create a resource method or class with the following contents:


Zend_Controller_Action_HelperBroker::addPrefix('Mylib_Controller_Action_Helper');

and that will automatically find action helpers with that prefix so long
as they're on your include_path. (And, if you add library/ to your
include_path, you'll be fine in your case.)

-- 
Matthew Weier O'Phinney
Project Lead| matt...@zend.com
Zend Framework  | http://framework.zend.com/


Re: [fw-general] phpDocumentor array param

2009-05-12 Thread Matthew Weier O'Phinney
-- helderfelipe  wrote
(on Monday, 11 May 2009, 06:46 PM -0700):
> I have an array param  $args($var1=>'',$var2=>'') and i want to speficy the
> vars of the array in the documentation
> 
> now, is this way:
> /**
>  * Test
>  *
>  * @param  array $args
>  */
> public function teste($args)
> {
>   }

What you're doing above is correct. If you want to specify the keys
expected, you usually do so in the "long comment" like this:

/**
 * Test
 *
 * $args may contain the following keys:
 * - var1: 
 * - var2: 
 *
 * @param  array @args
 * @return void
 */

Items prefixed with a '- ' will be treated as bullets by phpDocumentor.

-- 
Matthew Weier O'Phinney
Project Lead| matt...@zend.com
Zend Framework  | http://framework.zend.com/


Re: [fw-general] Zend_Tool problem: Call to undefined method SplFileInfo::getRealPath()

2009-05-12 Thread Tobias Gies
Hey,

When upgrading, note that the Zend Framework team recommends PHP 5.2.4
or greater for all components to work as expected.

Best regards,
Tobias

2009/5/12 wenbert :
>
> Thanks! I think upgrading my PHP is the problem. I have tested on the other
> machine with 5.2.3 and it works.
>
>
> Karl-54 wrote:
>>
>> Hi,
>>
>> You need at least version 5.2.2
>>
>> SplFileInfo::getRealPath
>>
>>
>> (PHP 5 >= 5.2.2)
>>
>>
>
> -
> http://blog.ekini.net
> --
> View this message in context: 
> http://www.nabble.com/Zend_Tool-problem%3A-Call-to-undefined-method-SplFileInfo%3A%3AgetRealPath%28%29-tp23498712p23499919.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>


RE: [fw-general] Zend_Tool problem: Call to undefined method SplFileInfo::getRealPath()

2009-05-12 Thread wenbert

Thanks! I think upgrading my PHP is the problem. I have tested on the other
machine with 5.2.3 and it works.


Karl-54 wrote:
> 
> Hi,
>  
> You need at least version 5.2.2
>  
> SplFileInfo::getRealPath
> 
> 
> (PHP 5 >= 5.2.2)
> 
> 

-
http://blog.ekini.net
-- 
View this message in context: 
http://www.nabble.com/Zend_Tool-problem%3A-Call-to-undefined-method-SplFileInfo%3A%3AgetRealPath%28%29-tp23498712p23499919.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] library folder autoload

2009-05-12 Thread andeeh

Whats the correct way to autoload from the library folder? What do I invoke
in the bootstrap for version 1.8?

protected function _initAutoload()
{   
$moduleLoader = new Zend_Application_Module_Autoloader(array(
'namespace' => '', 
'basePath'  => APPLICATION_PATH));

return $moduleLoader;
}

I've seen example applications using simple custom libraries but I'm unable
to adapt this to the _initAutoload() method in the bootstrap generated by
zend tool.

/library/Zend autoloads fine.

How would I modify _initAutoload() to load classes under /library/Mylib? 

for example I have an "action helper" under 

/library/Mylib/Controller/Action/Helper/MyHelper.php

Thanks,
Andy

-- 
View this message in context: 
http://www.nabble.com/library-folder-autoload-tp23499750p23499750.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Bring the router and navigation closer together

2009-05-12 Thread Jurian Sluiman
Hi all,
I'm creating a cms with zf. Websites made with it might become very large and 
can contain a lot of pages. All these pages are entries in the database and 
have a label, the appropriate part of the url and a link to their parent 
entry.
I loop through the whole tree to create an array for all the routes (they are 
in most cases Zend_Controller_Router_Route_Static and sometimes 
Zend_Controller_Router_Route). I need at several places a menu, breadcrumb or 
sitemap, so I use Zend_Navigation as well. But they both share almost the same 
information!

Isn't is much more efficient to be able to send a Zend_Navigation_Container 
towards the router? Then we require to make a tree once and the application 
code will be much cleaner. I know the router is a straight array and the 
container might have multiple subnodes, but still I see a lot of 
opportunities. Any comments?

Regards, Jurian
---
Jurian Sluiman
Soflomo.com


RE: [fw-general] Zend_Tool problem: Call to undefined method SplFileInfo::getRealPath()

2009-05-12 Thread Karl
Hi,
 
You need at least version 5.2.2
 
SplFileInfo::getRealPath


(PHP 5 >= 5.2.2)




From: wenbert [mailto:wenbertdelrosa...@yahoo.com] 
Sent: 12 May 2009 10:55 AM
To: fw-general@lists.zend.com
Subject: [fw-general] Zend_Tool problem: Call to undefined method
SplFileInfo::getRealPath()


I followed the Quickstart manual and I have this error: 
-bash-3.00$ zf show version

Fatal error: Call to undefined method SplFileInfo::getRealPath() in
/usr/local/lib/php/Zend/Tool/Framework/Loader/IncludePathLoader/
RecursiveFilterIterator.php on line 57

I have PHP running using version: 
PHP Version 5.2.1

SPL from phpinfo(): 
Interfaces
Countable, OuterIterator, RecursiveIterator, SeekableIterator,
SplObserver, SplSubject

Classes
AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException,
BadMethodCallException, CachingIterator, DirectoryIterator,
DomainException, EmptyIterator, FilterIterator, InfiniteIterator,
InvalidArgumentException, IteratorIterator, LengthException,
LimitIterator, LogicException, NoRewindIterator, OutOfBoundsException,
OutOfRangeException, OverflowException, ParentIterator,
RangeException, RecursiveArrayIterator, RecursiveCachingIterator,
RecursiveDirectoryIterator, RecursiveFilterIterator,
RecursiveIteratorIterator, RecursiveRegexIterator, RegexIterator,
RuntimeException, SimpleXMLIterator, SplFileInfo, SplFileObject,
SplObjectStorage, SplTempFileObject, UnderflowException,
UnexpectedValueException

Here are more details: 
-bash-3.00$ zf
Fatal error: Call to undefined method SplFileInfo::getRealPath() in
/usr/local/lib/php/Zend/Tool/Framework/Loader/IncludePathLoader/
RecursiveFilterIterator.php on line 57
---
-bash-3.00$ ls -l /usr/local/lib/php | grep zf
-rwxr-xr-x   1 root  root   1258 May 12 14:11 zf.bat
-rwxr-xr-x   1 root  root   3004 May 12 14:11 zf.php
-rwxr-xr-x   1 root  root   1402 May 12 14:11 zf.sh
---
-bash-3.00$ ls -la /usr/local/bin/zf
lrwxrwxrwx  1 root root 24 May 12 14:14
/usr/local/bin/zf -> /usr/local/lib/php/zf.sh
---
-bash-3.00$ ls -la /usr/local/lib/php/Zend
total 1424
drwxrwxr-x  58 webmaster webmaster   4096 Apr 28 09:19 .
drwxr-xr-x  13 root  root4096 May 12 14:00 ..
drwxrwxr-x   5 webmaster webmaster   4096 Apr 28 09:18 Acl
-rw-rw-r--   1 webmaster webmaster  38930 May  9  2008 Acl.php
drwxrwxr-x   8 webmaster webmaster   4096 Apr 28 09:19 Amf
drwxrwxr-x   5 webmaster webmaster   4096 Apr 28 09:19 Application
-rw-rw-r--   1 webmaster webmaster   9232 Apr 26 01:46 Application.php
drwxrwxr-x   4 webmaster webmaster   4096 Apr 28 09:18 Auth
-rw-rw-r--   1 webmaster webmaster   3854 Oct  9  2008 Auth.php
drwxrwxr-x   4 webmaster webmaster   4096 Apr 28 09:19 Cache
-rw-rw-r--   1 webmaster webmaster   9397 Nov 11 02:41 Cache.php
drwxrwxr-x   2 webmaster webmaster   4096 Apr 28 09:18 Captcha
drwxrwxr-x   3 webmaster webmaster   4096 Apr 28 09:18 CodeGenerator
drwxrwxr-x   3 webmaster webmaster   4096 Apr 28 09:18 Config
...Rest of the Zend Framework files here...

Sorry for the small PRE-tags text. I don't know how to make it larger. Any
reply would be greatly appreciated. Thanks!!! 
http://blog.ekini.net



View this message in context: Zend_Tool problem: Call to undefined method
SplFileInfo::getRealPath()
 
Sent from the Zend Framework mailing list archive
  at Nabble.com.




[fw-general] Zend_Tool problem: Call to undefined method SplFileInfo::getRealPath()

2009-05-12 Thread wenbert

I followed the Quickstart manual and I have this error:

-bash-3.00$ zf show version

Fatal error: Call to undefined method SplFileInfo::getRealPath() in
/usr/local/lib/php/Zend/Tool/Framework/Loader/IncludePathLoader/
RecursiveFilterIterator.php on line 57


I have PHP running using version:

PHP Version 5.2.1


SPL from phpinfo():

Interfaces
Countable, OuterIterator, RecursiveIterator, SeekableIterator,
SplObserver, SplSubject

Classes
AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException,
BadMethodCallException, CachingIterator, DirectoryIterator,
DomainException, EmptyIterator, FilterIterator, InfiniteIterator,
InvalidArgumentException, IteratorIterator, LengthException,
LimitIterator, LogicException, NoRewindIterator, OutOfBoundsException,
OutOfRangeException, OverflowException, ParentIterator,
RangeException, RecursiveArrayIterator, RecursiveCachingIterator,
RecursiveDirectoryIterator, RecursiveFilterIterator,
RecursiveIteratorIterator, RecursiveRegexIterator, RegexIterator,
RuntimeException, SimpleXMLIterator, SplFileInfo, SplFileObject,
SplObjectStorage, SplTempFileObject, UnderflowException,
UnexpectedValueException


Here are more details:

-bash-3.00$ zf
Fatal error: Call to undefined method SplFileInfo::getRealPath() in
/usr/local/lib/php/Zend/Tool/Framework/Loader/IncludePathLoader/
RecursiveFilterIterator.php on line 57
---
-bash-3.00$ ls -l /usr/local/lib/php | grep zf
-rwxr-xr-x   1 root  root   1258 May 12 14:11 zf.bat
-rwxr-xr-x   1 root  root   3004 May 12 14:11 zf.php
-rwxr-xr-x   1 root  root   1402 May 12 14:11 zf.sh
---
-bash-3.00$ ls -la /usr/local/bin/zf
lrwxrwxrwx  1 root root 24 May 12 14:14
/usr/local/bin/zf -> /usr/local/lib/php/zf.sh
---
-bash-3.00$ ls -la /usr/local/lib/php/Zend
total 1424
drwxrwxr-x  58 webmaster webmaster   4096 Apr 28 09:19 .
drwxr-xr-x  13 root  root4096 May 12 14:00 ..
drwxrwxr-x   5 webmaster webmaster   4096 Apr 28 09:18 Acl
-rw-rw-r--   1 webmaster webmaster  38930 May  9  2008 Acl.php
drwxrwxr-x   8 webmaster webmaster   4096 Apr 28 09:19 Amf
drwxrwxr-x   5 webmaster webmaster   4096 Apr 28 09:19 Application
-rw-rw-r--   1 webmaster webmaster   9232 Apr 26 01:46 Application.php
drwxrwxr-x   4 webmaster webmaster   4096 Apr 28 09:18 Auth
-rw-rw-r--   1 webmaster webmaster   3854 Oct  9  2008 Auth.php
drwxrwxr-x   4 webmaster webmaster   4096 Apr 28 09:19 Cache
-rw-rw-r--   1 webmaster webmaster   9397 Nov 11 02:41 Cache.php
drwxrwxr-x   2 webmaster webmaster   4096 Apr 28 09:18 Captcha
drwxrwxr-x   3 webmaster webmaster   4096 Apr 28 09:18 CodeGenerator
drwxrwxr-x   3 webmaster webmaster   4096 Apr 28 09:18 Config
...Rest of the Zend Framework files here...


Sorry for the small PRE-tags text. I don't know how to make it larger.

Any reply would be greatly appreciated. Thanks!!!

-
http://blog.ekini.net
-- 
View this message in context: 
http://www.nabble.com/Zend_Tool-problem%3A-Call-to-undefined-method-SplFileInfo%3A%3AgetRealPath%28%29-tp23498712p23498712.html
Sent from the Zend Framework mailing list archive at Nabble.com.


[fw-general] Zend_Navigation Menu view helper, need an id for rendered UL

2009-05-12 Thread Denis Fohl

Hi,

is it possible to give an id to the ul rendered with renderMenu() ?

I'd like to use it like ulClass parameter.
We can do
echo 
$this->navigation()->menu()->renderMenu($this->menu1,array('ulClass' => 
'nav1'));


but there's nothing in documentation about passing an id in options array.

My problem is that i use jquery droppy for my dropdown menus and this is 
working only when the javascript selector is an id, not working when 
it's a css class.


Thanks for help.

Denis.



Re: [fw-general] ZF 1.8 and Performance Guide (using find/sed to remove require once calls)

2009-05-12 Thread Laurens0619

Hi Matthew,

I am trying to gain performance because our server (ibm as/400) is really
slow with disk access.
I've tried the solution from the manual by removing the require_once
statements and use the autoloader. 

I get the same error, just blank pages. I have error reporting on so I can't
find the problem.
Autoloader is on by using the new architecture with zend_application.

Thanks in advance, 
Laurens


Matthew Weier O'Phinney-3 wrote:
> 
> -- j5  wrote
> (on Friday, 01 May 2009, 02:33 PM -0700):
>> I was tinkering with ZF 1.8 and the performance guide.
>> 
>> Specifically:
>> 
>> C.2.2.1. Strip require_once calls with find and sed.
>> 
>> The sed/find commands here have changed I noticed.  When I run these new
>> commands I get the following error:
>> 
>> -bash: syntax error near unexpected token `('
>> 
>> 
>> I took a look at the commands again and I thought I found a missing '
>> error
> 
> I've fixed this on trunk and the 1.8 release branch now, and the changes
> will show when we release 1.8.1. Thanks for the report!
> 
> 
>> so I tried the revised commands:
>> 
>> find . -name '*.php' -not -wholename '*/Loader/Autoloader.php' -print0 |
>> \
>> xargs -0 sed --regexp-extended --in-place 's/(require_once)/\/\/ \1/g'
>> 
>> (I added a ' after Autoloader.php).
>> 
>> That looked like it worked. But now when I browse to my website, I get a
>> blank page.
>> 
>> 
>> I am not sure if what I did fixed anything or what..
>> 
>> Anyone have any suggestions?
> 
> Do you have display_errors on? If not, turn it on to see if any errors
> are being reported.
> 
> -- 
> Matthew Weier O'Phinney
> Project Lead| matt...@zend.com
> Zend Framework  | http://framework.zend.com/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/ZF-1.8-and-Performance-Guide-%28using-find-sed-to-remove-require-once-calls%29-tp23340034p23497684.html
Sent from the Zend Framework mailing list archive at Nabble.com.