[fw-general] Best Approach for complex site code structure

2008-12-03 Thread SteveWilhelm

I am looking for suggestions on how to structure my Zend code for
implementing a site that contains the following features:

1. MVC-based code for the public website
2. A REST-based server to provide programmatic access to application data
3. Admin utility functions that are run by cron jobs and on demand on a
command line
4. Utility classes that are shared by all three of the above.

Is there a good example or tutorial that demonstrates how to structure code
for this type of site?

Thanks in advance for your help.

- Steve W.
-- 
View this message in context: 
http://www.nabble.com/Best-Approach-for-complex-site-code-structure-tp20828590p20828590.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] zend dojo text area- how that work?

2008-12-03 Thread Matthew Weier O'Phinney
-- gerardroche <[EMAIL PROTECTED]> wrote
(on Wednesday, 03 December 2008, 02:13 PM -0800):
> 
> This isn't just limited to the dd tag, lists cause the same problem. This is
> one annoying bug.

Honestly, I'm running latest dojo under FF 3, using Zend_Dojo_Form with
the default decorators, and not seeing any issues...


> Themodem wrote:
> > 
> > The would depend on the problem.
> > 
> > If its a ZF Problem then i would expect so.
> > 
> > Id its a Dojo problem then we will have to wait for the next release of ZF
> > and hope the updated dojo that is released with it will be fixed.
> > 
> > If its a problem with Firefox then we will have to wait for a firefox
> > update
> > 
> > 
> > vladimirn wrote:
> >> 
> >> Thanks Themodem.
> >> Does anyone knows if Zend FW team will make some solution for this? 
> >> 
> >> 
> >> Themodem wrote:
> >>> 
> >>> Howdy, it appears to be a bug with Firefox 3 and the  tag
> >>> 
> >>> 
> >>> http://dojotoolkit.org/forum/dijit-dijit-0-9/dijit-support/dijit-form-textarea-firefox3-enter-key-does-not-work
> >>> http://dojotoolkit.org/forum/dijit-dijit-0-9/dijit-support/dijit-form-textarea-firefox3-enter-key-does-not-work
> >>>  
> >>> 
> >>> 
> >>> vladimirn wrote:
>  
>  I need just a simple text area where you can type :
>  First row in text area (i would like to press Enter here and to type in
>  next row)
>  Next row here[Enter]
>  And so on..
>  
>  Well when i press Enter key within Zend Dojo textarea field, nothing
>  happens, and you can type forever, no way to make a new row pressing
>  Enter.. I cant find the way to have a simple textarea field.
>  
>  How to make this?
>  
>  Thanks,
>  V
>  
> >>> 
> >>> 
> >> 
> >> 
> > 
> > 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/zend-dojo-text-area--how-that-work--tp19498776p20822836.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
> 

-- 
Matthew Weier O'Phinney
Software Architect   | [EMAIL PROTECTED]
Zend Framework   | http://framework.zend.com/


Re: [fw-general] Zend Mailing Lists [All]

2008-12-03 Thread netlynx


Nico Edtinger-3 wrote:
> 
> You are already using Nabble and should see the link to a feed  
> somewhere in your address bar:. fw-general has a feed at
>   >. But IMO using push is the better option, if available, as you  
> aren't wasting resources (like fetching the feed although nothing has  
> changed) and you get new mails as soon as they arrive. With a .forward  
> file it's quite easy to call a CLI script and import the mail into  
> your database (maybe using Zend_Mail_Message[_File])
> 
> nico
> 
> 

Absolutely you are correct, however, where I intend to archive this
information is on my development server which doesn't have any mail system
set up (nor does it have a public ip / domain name in order to set up a mail
account).  In thinking about this scenario a little more, it would probably
be relatively easy to set up an external mail address and pull in the mail
and handle it that way.  I am going to give this some more thought as the
feed system was intended as a quick and dirty method to get around the mail
system issue.  Ok, thanks for making me think!

:) Thanks
Aaron
-- 
View this message in context: 
http://www.nabble.com/Zend-Mailing-Lists--All--tp20817622p20825051.html
Sent from the Zend Framework mailing list archive at Nabble.com.



RE: [fw-general] Zend Mailing Lists [All]

2008-12-03 Thread netlynx



vRandom wrote:
> 
> There is an xml atom feed from nabble.com, if that helps.
> 
> http://www.nabble.com/Zend-Framework-Community-f16154.html (at the bottom
> of
> the page)
> 
> Terre 
> 

Ah yes, now I feel like a complete idiot.  Apparently that big orange XML
button at the bottom of the page was just too obvious.  I actually just
started using nabble, because for some reason I can't post messages to the
list [EMAIL PROTECTED] doesn't seem to work for me (shrug),
probably also something as obvious as that BIG ORANGE BUTTON! hahaha.

Thanks,
Aaron
-- 
View this message in context: 
http://www.nabble.com/Zend-Mailing-Lists--All--tp20817622p20824911.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Periodic operations through cron with Zend

2008-12-03 Thread Karol Grecki

Vahe

You don't need anything special to do it with Zend.
Just include your bootstrap in a script file and write any code you need.
If your boostrap contains some MVC specific code you may want to extract it
into another file or create a separate bootstrap for scripts etc.
I personally use an application class where mvc components are set up in
their own method separate from config, etc. so I can reuse it in cron
scripts by just calling the stuff I need. 

Karol


Vahe Oughourlian wrote:
> 
> Greetings,
> 
>   On our previous project, we had several operations (processing of a  
> job queue, snapshoting, etc) done through a cronjob.  Being that the  
> previous codebase was written in straight php, all the includes and  
> such for connecting to the database and whatnot had to be done by  
> hand, and we had a few problems with certain assumptions (for  
> instance, the inclusion of certain constants) that we had to resolve.
> 
>   I'd like to replicate that functionality with Zend, but I'm not  
> exactly sure how to go about it.  I'd like that all the inits done in  
> the bootstrap be available to this script, but I don't want this  
> operation to be a publicly accessible action through a Controller  
> action.  Any recommendations?
> 
> Thanks,
> jedcred
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Periodic-operations-through-cron-with-Zend-tp20822956p20824282.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] logging offending queries

2008-12-03 Thread till
On Wed, Dec 3, 2008 at 11:58 PM, Ralikwen <[EMAIL PROTECTED]> wrote:
>
> You mean : Zend_Db_Profiler_Firebug('All DB Queries') ?
> Yes, I did try that and I thought wow, fantastic, but it seems to me that it
> only logs successful queries so e.g. queries with a syntax error would not
> get logged - which would be logical for a profiler that needs start and end
> time.

Can you explain that? I was always under the impression that errors
are thrown with an exception - so in your case that is where I would
log the offenders? Just a wild guess but that's what I'd do. But maybe
I didn't get the full picture.

Also, there are services like getexceptional.com that allow you to
post exceptions to a webservice and you get all your errors in a very
pretty interface. There's a PHP class on github (shameless plug) -
. So basically
what it does is, it intercepts the standard exception handler, hands
it off to getexceptional.com and then it continues with whatever your
app does with the errors usually.


Cheers,
Till


Re: [fw-general] logging offending queries

2008-12-03 Thread Ralikwen

You mean : Zend_Db_Profiler_Firebug('All DB Queries') ?
Yes, I did try that and I thought wow, fantastic, but it seems to me that it
only logs successful queries so e.g. queries with a syntax error would not
get logged - which would be logical for a profiler that needs start and end
time.



Tim Nagel wrote:
> 
> Have you looked at the Zend_Db profiler? We use it to log queries to
> FirePHP.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/logging-offending-queries-tp20800359p20823628.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Periodic operations through cron with Zend

2008-12-03 Thread Vahe Oughourlian

Greetings,

 On our previous project, we had several operations (processing of a  
job queue, snapshoting, etc) done through a cronjob.  Being that the  
previous codebase was written in straight php, all the includes and  
such for connecting to the database and whatnot had to be done by  
hand, and we had a few problems with certain assumptions (for  
instance, the inclusion of certain constants) that we had to resolve.


 I'd like to replicate that functionality with Zend, but I'm not  
exactly sure how to go about it.  I'd like that all the inits done in  
the bootstrap be available to this script, but I don't want this  
operation to be a publicly accessible action through a Controller  
action.  Any recommendations?


Thanks,
jedcred


Re: [fw-general] zend dojo text area- how that work?

2008-12-03 Thread gerardroche

This isn't just limited to the dd tag, lists cause the same problem. This is
one annoying bug.



Themodem wrote:
> 
> The would depend on the problem.
> 
> If its a ZF Problem then i would expect so.
> 
> Id its a Dojo problem then we will have to wait for the next release of ZF
> and hope the updated dojo that is released with it will be fixed.
> 
> If its a problem with Firefox then we will have to wait for a firefox
> update
> 
> 
> vladimirn wrote:
>> 
>> Thanks Themodem.
>> Does anyone knows if Zend FW team will make some solution for this? 
>> 
>> 
>> Themodem wrote:
>>> 
>>> Howdy, it appears to be a bug with Firefox 3 and the  tag
>>> 
>>> 
>>> http://dojotoolkit.org/forum/dijit-dijit-0-9/dijit-support/dijit-form-textarea-firefox3-enter-key-does-not-work
>>> http://dojotoolkit.org/forum/dijit-dijit-0-9/dijit-support/dijit-form-textarea-firefox3-enter-key-does-not-work
>>>  
>>> 
>>> 
>>> vladimirn wrote:
 
 I need just a simple text area where you can type :
 First row in text area (i would like to press Enter here and to type in
 next row)
 Next row here[Enter]
 And so on..
 
 Well when i press Enter key within Zend Dojo textarea field, nothing
 happens, and you can type forever, no way to make a new row pressing
 Enter.. I cant find the way to have a simple textarea field.
 
 How to make this?
 
 Thanks,
 V
 
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/zend-dojo-text-area--how-that-work--tp19498776p20822836.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] logging offending queries

2008-12-03 Thread Tim Nagel
Have you looked at the Zend_Db profiler? We use it to log queries to
FirePHP.



T

On Thu, Dec 4, 2008 at 02:25, Daniel Latter <[EMAIL PROTECTED]> wrote:

> Hi,
>
> Just an idea but you could have a base class (maybe extend
> Zend_Db_Table) and put some custom code in here that does the logging,
> that way you would only have to add the logging code in one place.
>
> just my 2p
>
> Thank You
> Daniel Latter
>
>
>
> 2008/12/2 Ralikwen <[EMAIL PROTECTED]>:
>  >
> > Hi,
> > is there a generic way to log all database calls from ZF? Or log all db
> > errors?
> >
> > I know that I can use the profiler - I use it with Firebug and it works
> > nicely with successful queries - but gives me no help when a db error
> > occurs.
> > When a db error occurs I would like to see the offending statement
> without
> > having to write spec code to every db call. Even the stack trace could
> help
> > if only it displayed the whole sql statement instead of just the
> beginning
> > of it. I searched quite a lot now but couldn't find an example of a
> generic
> > way to log sql statement or even sql errors.
> >
> > How would you do this?
> >
> > Thanks for the help.
> > SWK
> > --
> > View this message in context:
> http://www.nabble.com/logging-offending-queries-tp20800359p20800359.html
> > Sent from the Zend Framework mailing list archive at Nabble.com.
> >
> >
>


Re: [fw-general] Zend_Form and square brackets in elements' name

2008-12-03 Thread saulius


Julien Huang wrote:
> 
> Hello,
> 
> I'm currently using Zend_Form, and can't use square brackets in my
> form elements' name. I've looked at the code, and it seems that the
> method "setName" (by filterName) in Zend_Form_Element removes the
> square brackets, why ? Moreover, there's an option in filterName to
> allow square brackets.
> 
> Example :
> require_once 'Zend/Form.php';
> $f = new Zend_Form;
> $e = $f->createElement('multiCheckbox', 'question[42]');
> $e->setMultiOptions(array(
>   'Checkbox 1',
>   'Checkbox 2',
>   'Checkbox 3',
> ));
> $f->addElement($e);
> die($f)
> 
> I got input elements like this :
> 
> 
> 
> 
> 
> Instead of :
> 
> 
> 
> 
> How can I achieve this ?
> 
> -- 
> Julien Huang
> 
> 

Just extend Zend_Form_Element and change that part where it's removing
brackets. Here's a howto link:
http://www.currentlyoffline.co.uk/square-brackets-in-html-element-name/

-- 
View this message in context: 
http://www.nabble.com/Zend_Form-and-square-brackets-in-elements%27-name-tp20483297p20822175.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Zend_Dojo vs Prototype

2008-12-03 Thread Marc Grue


Matthew Weier O'Phinney-3 wrote:
> 
> You can pass a "form" key to the XHR call, and point it to the form's
> DOM node. If you're using Zend_Dojo_Form (and thus dijit.form.Form),
> you'll need to do this:
> 
> form: dijit.byId("").domNode,
> 
> This will send all form elements as key/value pairs in the request.
> 

That sounds like a good option - I don't seem to need it now, but will have
it in mind when needed (with the Zend_Dojo_Form soon :)


Matthew Weier O'Phinney-3 wrote:
> 
> Dojo is highly modular, which makes it easy to debug, maintain, and
> understand. The downfall, of course, is lots of micro requests. The
> upside is that Dojo provides a build tool that allows you to compile all
> these files into a single file, complete with comment stripping,
> whitespace removal, and more. I've blogged about it as well as presented
> on the topic... and will have an article in an upcoming issue of
> php|architect covering it as well.
> 
My Prototype library was probably compiled like that. I'm looking forward to
your article!

Matthew Ratzloff wrote:
> 
> I don't use Dojo, but from what I understand this might be helpful:
> http://dojotoolkit.org/book/dojo-book-0-4/part-6-customizing-dojo-builds-better-performance/dojo-build-system/creating-cust
> 
Thank you also to Matthew Ratzloff for pointing me in that direction!


Matthew Weier O'Phinney-3 wrote:
> 
>> I have some follow-up questions:
>> How can I get the response back from the action in my controller and
>> 'cancel' all other aggregated content in the view? Do I have to use
>> contextSwitch action helper somehow, or am I on the wrong track?
>> Embarrasing: for now I do an *ugly* die($content) to just abort and echo
>> the
>> data back.
> 
> Disable the layout and the view renderer. If you use ContextSwitch or
> AjaxContext helpers, this is done automatically.
> 
I tried these, but didn't find a way to let them accept the partial
('_my_partial.phtml') without a special suffix  like in
'_my_partial.ajax.phtml' that I already use in my view and that I want to
keep the same. So I went with the following (borrowing from AjaxContext):

// ... in controller:
if ($this->getRequest()->isXmlHttpRequest()) {
$this->_helper->layout()->disableLayout();
$viewRenderer =
Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer');
$viewRenderer->setNoRender(true);

// send response now
echo $this->view->partial(
'_my_partial.phtml',
array(
'var1' => 'value1',
'var2' => 'value2',
)
);
// stop processing
exit;
}

After I send the response back to the calling view, I don't want any further
processing happening, or? Is there a better way to echo/exit?

Thanks for all your help!
-- 
View this message in context: 
http://www.nabble.com/Zend_Dojo-vs-Prototype-tp20757810p20822127.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] [Zend_Form] Zend_Form_Element_File::getValue() is calling Zend_File_Transfer_Http:: receive()

2008-12-03 Thread Thomas Weidner

Laurent,

I would say that the isReceived method is a really easy way to check this.
Or you can get the file infos and check for the isReceived tag manually.

You can delete all files which have been received until then without 
problems.


Changing the name can also easily be done by using the rename filter.

When you want to do the retrievment manually you can do this already with 
the existing implementation.

Simply use the old syntax instead of the new getValue syntax.
isValid -> rename -> receive

Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com

- Original Message - 
From: "Laurent Melmoux" <[EMAIL PROTECTED]>

To: "Zend Framework General" 
Sent: Wednesday, December 03, 2008 7:04 PM
Subject: [fw-general] [Zend_Form] Zend_Form_Element_File::getValue() is 
calling Zend_File_Transfer_Http:: receive()




Hi,

I’m wondering if it is a good idea to move the uploaded file on 
Zend_Form_Element_File::getValue() call.


Because:

• If the receive() failed for what ever reason I may not want to go 
further like inserting the other data in the database. And Currently there 
is no easy way to check if receive() succeed.

• Or if a database transaction failed I will have to delete the files
• What if we want to name the file from the UID of the database record


Personally I prefer to use this pattern:

$this->db->beginTransaction();
try {

// will not call receive()
$data = $this->form->getValues(); $this->insert($data);
// will call Zend_File_Transfer_Http:: receive()
// if receive() failed throw an exception then no data is inserted
$this->saveFiles();
$this->db->commit();
} catch (Exception $ex) {
$this->db->rollBack();
}

Not calling receive() on Zend_Form_Element_File::getValue() would leave 
more flexibility for the developer on how he want to handle the file. What 
do you think?


--
Laurent Melmoux
Conseil et Solutions Web | [EMAIL PROTECTED]
2mx - Annecy, France | http://laurent.2mx.fr/ 




Re: [fw-general] Zend_Form + Zend_File_Transfer issue with Zend_Form::getValues()

2008-12-03 Thread Thomas Weidner

Laurent,

I see two problems with your code:

You create a form element and name it file1.
And then you do not display a file form element but a file1 element which 
does not exist in HTML and name it fichier.


Second, you try to get values from a form where no data has been populated.

Change your form code to use same names otherwise it will not work.
And when you need to get unpopulated values (they don't exist in this case) 
use a try/catch block.


Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com

- Original Message - 
From: "Laurent Melmoux" <[EMAIL PROTECTED]>

To: "Thomas Weidner" <[EMAIL PROTECTED]>
Cc: "Zend Framework General" 
Sent: Wednesday, December 03, 2008 4:02 PM
Subject: Re: [fw-general] Zend_Form + Zend_File_Transfer issue with 
Zend_Form::getValues()




Thomas,

here is an exemple of what I'm taking about (modified version of your blog 
post :) ) :


require_once('Zend/Loader.php');
Zend_Loader::registerAutoload();
  $request = new Zend_Controller_Request_Http();
  // setup the form
$form = new Zend_Form();
$form->setMethod("post");
$form->setAttrib("enctype",Zend_Form::ENCTYPE_MULTIPART);
  // file element, upload is optional, but if file is uploaded run 
multiple validators

$file1 = $form->createElement("file","file1");
$file1->setRequired(false)
  ->setLabel("File:")
  ->addValidator('Count', true, 2)->addValidator('Size', true, 
"100KB")

  ->addValidator('Extension', true, 'jpg')
  ->addValidator('MimeType',true,array('image/jpeg'))
  ->addValidator('ImageSize',true,array(0,0,340,480))
  ->setMultiFile(3);
  $comment = $form->createElement("text","comment");
  $form->addElements(array($file1,$comment));
  // check the form
if($request->isPost()) {
   $formData = $request->getPost();
   if($form->isValid($formData)) {
   echo "FORM VALID";
   } else {
   print_r($form->getMessages()); }
} else {
   // It's over symplified here
   $data = array('comment'=>'initial value');
   $form->populate($data);
   $formData = (object) $form->getValues();
}


?>


 
 
 


Laurent Melmoux a écrit :

Hi Thomas,

Well I said  $_FILES to simplified the internal of 
Zend_File_Transfer_Adapter_Abstract which is using 
Zend_File_Transfer_Adapter_Abstract ::_files :) sorry if it made it 
confusing.


To simplified it :

If I call Zend_Form::getValues() before any form submission an exception 
is thrown ("myFile" not found by file transfer adapter ) which occur in 
Zend_File_Transfer_Adapter_Abstract :: _getFiles() because it can not 
find the element in _files



Right now I’m using the patch below (which is making use of the 
$noexception arg to avoid the exception) and it is working ok:



Zend_Form_Element_File::getValue()
// @line 643
$content = 
current($this->getTransferAdapter()->getFileInfo($this->getName(), 
true));


And

Zend_File_Transfer_Adapter_Abstract
// @line 886
public function getFileInfo($file = null, $noexception = false)
{
   return $this->_getFiles($file, false, $noexception);
}


Thomas Weidner a écrit :

Laurent,

getValues does NOT access $_FILES.
This you have misunderstood. The $_FILES array is used as input for the 
transfer adapter. But again, it does not work with the $_FILES array. 
The internal representation of the data is different to $_FILES.


So you said that you are not displaying the form but do this yourself.
As long as you are following the syntax of the HTTP file element it 
should work.
But when you use subforms or multifiles and are not using the file 
decorator you must do the normalisation manually.


This exception you are referring to does simply say:
The file element you requested is not defined, nor is it a filename or a 
temporary name... I don't know which data you want to work with.


As you gave no details it's hard to say something specific to this 
problem.


Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com

- Original Message - From: "Laurent Melmoux" <[EMAIL PROTECTED]>
To: "Zend Framework General" 
Sent: Wednesday, December 03, 2008 3:01 PM
Subject: [fw-general] Zend_Form + Zend_File_Transfer issue with 
Zend_Form::getValues()




Hi guys, Matthew, Thomas,

I’m giving a try to Zend_Form + Zend_File_Transfer and I’m facing a 
issue with Zend_Form_Element_File::getValue()


I’m not using Zend_Form to renders my forms.
Before displaying the form (on create or update) I populate it with 
default values or values from the db and then I’m using 
Zend_Form::getValues() to pass form values to the view.


But here with files element Zend_Form_Element_File::getValue() try to 
access the global $_FILES and as no form has been submitted yet an 
exception thrown :


throw new Zend_File_Transfer_Exception(sprintf('"%s" not found by file 
transfer adapter', $find));


See :
Zend_File_Transfer_Adapter_Abstract ::getFileInfo($file = null)
Zend_File_Transfer_Adapter_Abstract ::_getFiles($files, $name

Re: [fw-general] Zend_Form + Zend_File_Transfer issue with Zend_Form::getValues()

2008-12-03 Thread Thomas Weidner
In my opinion this could only occur when you call getValues without the form 
being rendered.


The patch only hides the problem that the element does not exist.
But the exception was added because this is a notable problem.

When this is no problem in your case you could still wrap the call into an 
try catch block as you do it with all other classes instead of changing ZF 
code. :-)


Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com

- Original Message - 
From: "Laurent Melmoux" <[EMAIL PROTECTED]>

To: "Thomas Weidner" <[EMAIL PROTECTED]>
Cc: "Zend Framework General" 
Sent: Wednesday, December 03, 2008 3:46 PM
Subject: Re: [fw-general] Zend_Form + Zend_File_Transfer issue with 
Zend_Form::getValues()




Hi Thomas,

Well I said  $_FILES to simplified the internal of 
Zend_File_Transfer_Adapter_Abstract which is using 
Zend_File_Transfer_Adapter_Abstract ::_files :) sorry if it made it 
confusing.


To simplified it :

If I call Zend_Form::getValues() before any form submission an exception 
is thrown ("myFile" not found by file transfer adapter ) which occur in 
Zend_File_Transfer_Adapter_Abstract :: _getFiles() because it can not find 
the element in _files



Right now I’m using the patch below (which is making use of the 
$noexception arg to avoid the exception) and it is working ok:



Zend_Form_Element_File::getValue()
// @line 643
$content = 
current($this->getTransferAdapter()->getFileInfo($this->getName(), true));


And

Zend_File_Transfer_Adapter_Abstract
// @line 886
public function getFileInfo($file = null, $noexception = false)
{
   return $this->_getFiles($file, false, $noexception);
}


Thomas Weidner a écrit :

Laurent,

getValues does NOT access $_FILES.
This you have misunderstood. The $_FILES array is used as input for the 
transfer adapter. But again, it does not work with the $_FILES array. The 
internal representation of the data is different to $_FILES.


So you said that you are not displaying the form but do this yourself.
As long as you are following the syntax of the HTTP file element it 
should work.
But when you use subforms or multifiles and are not using the file 
decorator you must do the normalisation manually.


This exception you are referring to does simply say:
The file element you requested is not defined, nor is it a filename or a 
temporary name... I don't know which data you want to work with.


As you gave no details it's hard to say something specific to this 
problem.


Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com

- Original Message - From: "Laurent Melmoux" <[EMAIL PROTECTED]>
To: "Zend Framework General" 
Sent: Wednesday, December 03, 2008 3:01 PM
Subject: [fw-general] Zend_Form + Zend_File_Transfer issue with 
Zend_Form::getValues()




Hi guys, Matthew, Thomas,

I’m giving a try to Zend_Form + Zend_File_Transfer and I’m facing a 
issue with Zend_Form_Element_File::getValue()


I’m not using Zend_Form to renders my forms.
Before displaying the form (on create or update) I populate it with 
default values or values from the db and then I’m using 
Zend_Form::getValues() to pass form values to the view.


But here with files element Zend_Form_Element_File::getValue() try to 
access the global $_FILES and as no form has been submitted yet an 
exception thrown :


throw new Zend_File_Transfer_Exception(sprintf('"%s" not found by file 
transfer adapter', $find));


See :
Zend_File_Transfer_Adapter_Abstract ::getFileInfo($file = null)
Zend_File_Transfer_Adapter_Abstract ::_getFiles($files, $names = false, 
$noexception = false)


Is it a issue or am I using incorrectly Zend_Form + Zend_File_Transfer ?

Regards,

--
Laurent Melmoux
Conseil et Solutions Web | [EMAIL PROTECTED]
2mx - Annecy, France | http://laurent.2mx.fr/





--
Laurent Melmoux
Conseil et Solutions Web | [EMAIL PROTECTED]
2mx - Annecy, France | http://laurent.2mx.fr/
Tél. | +33 (0)9 74 53 10 40 




RE: [fw-general] Problems with View Helpers with update 1.5.1 to1.7.1

2008-12-03 Thread Terre Porter
Ah, okie that makes sence.  

-Original Message-
From: Matthew Weier O'Phinney [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 03, 2008 2:24 PM
To: fw-general@lists.zend.com
Subject: Re: [fw-general] Problems with View Helpers with update 1.5.1
to1.7.1

-- Terre Porter <[EMAIL PROTECTED]> wrote (on Wednesday, 03
December 2008, 02:12 PM -0500):
> Couple of things,
> 
> Would the \ in [/views\helpers/] cause problems in windows path?

No. PHP on Windows is smart enough to figure that out.

> C:/Program Files/Apache Software
> Foundation/Apache2.2/htdocs/mbm/app/modules/config/views\helpers/
> 
> Also, the error doesn't say it is using [library/Zend/View/Helper] as 
> an include path.

The paths printed are plugin paths, not the include_path. Any relative paths
on there will be searched on the include_path.


> -Original Message-
> From: kabel2 [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 03, 2008 1:57 PM
> To: fw-general@lists.zend.com
> Subject: Re: [fw-general] Problems with View Helpers with update 1.5.1 
> to
> 1.7.1
> 
> 
> Confirmed:
> There is only one instance of ZF referenced in include_path and 
> Layout.php does exist in library/Zend/View/Helper.
> 
> Has anyone else experienced issues with the PluginLoader? Was there a 
> drastic change from 1.5.1 to it that would cause this error?
> 
> 
> Matthew Weier O'Phinney-3 wrote:
> > 
> > -- kabel2 <[EMAIL PROTECTED]> wrote (on Tuesday, 02 December 
> > 2008, 11:06 PM -0800):
> >> 
> >> I had  a stable application put together using a layout and view 
> >> setup in Zend Framework 1.5.1. I noticed some improvements to the a 
> >> particular view helper in ZF 1.7.1, so I thought I would be a 
> >> simple transition just to update the library directory with the new
Zend.
> >> With the updated version of ZF I now get the following exception:
> >> 
> >> Fatal error:  Uncaught exception 'Zend_Loader_PluginLoader_Exception'
> >> with
> >> message 'Plugin by name 'Layout' was not found in the registry; 
> >> used
> >> paths:
> >> Config_View_Helper_: C:/Program Files/Apache Software 
> >> Foundation/Apache2.2/htdocs/mbm/app/modules/config/views\helpers/
> >> Zend_View_Helper_: Zend/View/Helper/' in C:\Program Files\Apache 
> >> Software
> >> Foundation\Apache2.2\htdocs\mbm\lib\Zend\Loader\PluginLoader.php:38
> >> 6
> > 
> > Can you double-check and make sure that you don't (a) have two ZF 
> > installs on your include_path, and (b) that Layout.php exists in 
> > library/Zend/View/Helper ?
> > 
> >> Stack trace:
> >> #0 C:\Program Files\Apache Software
> >> Foundation\Apache2.2\htdocs\mbm\lib\Zend\View\Abstract.php(1067):
> >> Zend_Loader_PluginLoader->load('Layout')
> >> #1 C:\Program Files\Apache Software
> >> Foundation\Apache2.2\htdocs\mbm\lib\Zend\View\Abstract.php(545):
> >> Zend_View_Abstract->_getPlugin('helper', 'layout')
> >> #2 C:\Program Files\Apache Software
> >> Foundation\Apache2.2\htdocs\mbm\lib\Zend\View\Abstract.php(312):
> >> Zend_View_Abstract->getHelper('layout')
> >> #3 [internal function]: Zend_View_Abstract->__call('layout',
> >> Array)
> >> #4 C:\Program Files\Apache Software
> >> Foundation\Apache2.2\htdocs\mbm\skin\layouts\fixed.phtml(44): 
> >> Zend_View in C:\Program Files\Apache Software 
> >> Foundation\Apache2.2\htdocs\mbm\lib\Zend\Loader\PluginLoader.php on 
> >> line 386
> >> 
> >> I have no idea why I'm getting this error, as the Layout helper 
> >> does exist and, yes, it is in my include path.
> >> 
> >> The call that is causing this error starts in my default layout file:
> >> echo $this->layout()->content
> >> That was taken right from the documentation wiki, so I'm lost.
> >> 
> >> Please help!
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Problems-with-View-Helpers-with-update-1.5.1-
> >> to -1.7.1-tp20807841p20807841.html Sent from the Zend Framework 
> >> mailing list archive at Nabble.com.
> >> 
> > 
> > --
> > Matthew Weier O'Phinney
> > Software Architect   | [EMAIL PROTECTED]
> > Zend Framework   | http://framework.zend.com/
> > 
> > 
> 
> --
> View this message in context:
> http://www.nabble.com/Problems-with-View-Helpers-with-update-1.5.1-to-
> 1.7.1-
> tp20807841p20819279.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
> 
> 

--
Matthew Weier O'Phinney
Software Architect   | [EMAIL PROTECTED]
Zend Framework   | http://framework.zend.com/



Re: [fw-general] Problems with View Helpers with update 1.5.1 to 1.7.1

2008-12-03 Thread Matthew Weier O'Phinney
-- Terre Porter <[EMAIL PROTECTED]> wrote
(on Wednesday, 03 December 2008, 02:12 PM -0500):
> Couple of things,
> 
> Would the \ in [/views\helpers/] cause problems in windows path?

No. PHP on Windows is smart enough to figure that out.

> C:/Program Files/Apache Software
> Foundation/Apache2.2/htdocs/mbm/app/modules/config/views\helpers/ 
> 
> Also, the error doesn't say it is using [library/Zend/View/Helper] as an
> include path.

The paths printed are plugin paths, not the include_path. Any relative
paths on there will be searched on the include_path.


> -Original Message-
> From: kabel2 [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, December 03, 2008 1:57 PM
> To: fw-general@lists.zend.com
> Subject: Re: [fw-general] Problems with View Helpers with update 1.5.1 to
> 1.7.1
> 
> 
> Confirmed:
> There is only one instance of ZF referenced in include_path and Layout.php
> does exist in library/Zend/View/Helper.
> 
> Has anyone else experienced issues with the PluginLoader? Was there a
> drastic change from 1.5.1 to it that would cause this error?
> 
> 
> Matthew Weier O'Phinney-3 wrote:
> > 
> > -- kabel2 <[EMAIL PROTECTED]> wrote (on Tuesday, 02 December 
> > 2008, 11:06 PM -0800):
> >> 
> >> I had  a stable application put together using a layout and view 
> >> setup in Zend Framework 1.5.1. I noticed some improvements to the a 
> >> particular view helper in ZF 1.7.1, so I thought I would be a simple 
> >> transition just to update the library directory with the new Zend. 
> >> With the updated version of ZF I now get the following exception:
> >> 
> >> Fatal error:  Uncaught exception 'Zend_Loader_PluginLoader_Exception'
> >> with
> >> message 'Plugin by name 'Layout' was not found in the registry; used
> >> paths:
> >> Config_View_Helper_: C:/Program Files/Apache Software 
> >> Foundation/Apache2.2/htdocs/mbm/app/modules/config/views\helpers/
> >> Zend_View_Helper_: Zend/View/Helper/' in C:\Program Files\Apache 
> >> Software
> >> Foundation\Apache2.2\htdocs\mbm\lib\Zend\Loader\PluginLoader.php:386
> > 
> > Can you double-check and make sure that you don't (a) have two ZF 
> > installs on your include_path, and (b) that Layout.php exists in 
> > library/Zend/View/Helper ?
> > 
> >> Stack trace:
> >> #0 C:\Program Files\Apache Software
> >> Foundation\Apache2.2\htdocs\mbm\lib\Zend\View\Abstract.php(1067):
> >> Zend_Loader_PluginLoader->load('Layout')
> >> #1 C:\Program Files\Apache Software
> >> Foundation\Apache2.2\htdocs\mbm\lib\Zend\View\Abstract.php(545):
> >> Zend_View_Abstract->_getPlugin('helper', 'layout')
> >> #2 C:\Program Files\Apache Software
> >> Foundation\Apache2.2\htdocs\mbm\lib\Zend\View\Abstract.php(312):
> >> Zend_View_Abstract->getHelper('layout')
> >> #3 [internal function]: Zend_View_Abstract->__call('layout', 
> >> Array)
> >> #4 C:\Program Files\Apache Software
> >> Foundation\Apache2.2\htdocs\mbm\skin\layouts\fixed.phtml(44): 
> >> Zend_View in C:\Program Files\Apache Software 
> >> Foundation\Apache2.2\htdocs\mbm\lib\Zend\Loader\PluginLoader.php on 
> >> line 386
> >> 
> >> I have no idea why I'm getting this error, as the Layout helper does 
> >> exist and, yes, it is in my include path.
> >> 
> >> The call that is causing this error starts in my default layout file:
> >> echo $this->layout()->content
> >> That was taken right from the documentation wiki, so I'm lost.
> >> 
> >> Please help!
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Problems-with-View-Helpers-with-update-1.5.1-to
> >> -1.7.1-tp20807841p20807841.html Sent from the Zend Framework mailing 
> >> list archive at Nabble.com.
> >> 
> > 
> > --
> > Matthew Weier O'Phinney
> > Software Architect   | [EMAIL PROTECTED]
> > Zend Framework   | http://framework.zend.com/
> > 
> > 
> 
> --
> View this message in context:
> http://www.nabble.com/Problems-with-View-Helpers-with-update-1.5.1-to-1.7.1-
> tp20807841p20819279.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
> 
> 

-- 
Matthew Weier O'Phinney
Software Architect   | [EMAIL PROTECTED]
Zend Framework   | http://framework.zend.com/


Re: [fw-general] Problems with View Helpers with update 1.5.1 to 1.7.1

2008-12-03 Thread kabel2

That seems like a good explanation, but sadly the include_path still contains
a reference to the library directory:

C:\Program Files\Apache Software
Foundation\Apache2.2\htdocs\mbm\app\modules;C:\Program Files\Apache Software
Foundation\Apache2.2\htdocs\mbm\lib;.;C:\php5\pear

--Kevin Abel


Matthew Weier O'Phinney-3 wrote:
> 
> In the 1.5 series, Zend_View did not use the PluginLoader (it used an
> internal mechanism); that switch occurred for 1.6. I've not seen any
> reports from people having such issues upgrading from 1.5.x to 1.6,
> however.
> 
> It's clear that the Zend_View_Helper path is present in the Zend_View
> helper plugin loader; the question is why it's unable to find the
> Layout.php file in that path. I'm inclined to believe that the
> include_path has changed prior to the layout script rendering.
> 
> One way to test this is to replace the call to echo the layout
> placeholder with this:
> 
> // remove this:
> layout()->content ?>
> 
> // replace with:
> 
> 
> and see what the include_path is at the time the layout helper is
> called.
> 

-- 
View this message in context: 
http://www.nabble.com/Problems-with-View-Helpers-with-update-1.5.1-to-1.7.1-tp20807841p20819661.html
Sent from the Zend Framework mailing list archive at Nabble.com.



RE: [fw-general] Problems with View Helpers with update 1.5.1 to 1.7.1

2008-12-03 Thread Terre Porter

Couple of things,

Would the \ in [/views\helpers/] cause problems in windows path?

C:/Program Files/Apache Software
Foundation/Apache2.2/htdocs/mbm/app/modules/config/views\helpers/ 

Also, the error doesn't say it is using [library/Zend/View/Helper] as an
include path.

Terre

-Original Message-
From: kabel2 [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 03, 2008 1:57 PM
To: fw-general@lists.zend.com
Subject: Re: [fw-general] Problems with View Helpers with update 1.5.1 to
1.7.1


Confirmed:
There is only one instance of ZF referenced in include_path and Layout.php
does exist in library/Zend/View/Helper.

Has anyone else experienced issues with the PluginLoader? Was there a
drastic change from 1.5.1 to it that would cause this error?


Matthew Weier O'Phinney-3 wrote:
> 
> -- kabel2 <[EMAIL PROTECTED]> wrote (on Tuesday, 02 December 
> 2008, 11:06 PM -0800):
>> 
>> I had  a stable application put together using a layout and view 
>> setup in Zend Framework 1.5.1. I noticed some improvements to the a 
>> particular view helper in ZF 1.7.1, so I thought I would be a simple 
>> transition just to update the library directory with the new Zend. 
>> With the updated version of ZF I now get the following exception:
>> 
>> Fatal error:  Uncaught exception 'Zend_Loader_PluginLoader_Exception'
>> with
>> message 'Plugin by name 'Layout' was not found in the registry; used
>> paths:
>> Config_View_Helper_: C:/Program Files/Apache Software 
>> Foundation/Apache2.2/htdocs/mbm/app/modules/config/views\helpers/
>> Zend_View_Helper_: Zend/View/Helper/' in C:\Program Files\Apache 
>> Software
>> Foundation\Apache2.2\htdocs\mbm\lib\Zend\Loader\PluginLoader.php:386
> 
> Can you double-check and make sure that you don't (a) have two ZF 
> installs on your include_path, and (b) that Layout.php exists in 
> library/Zend/View/Helper ?
> 
>> Stack trace:
>> #0 C:\Program Files\Apache Software
>> Foundation\Apache2.2\htdocs\mbm\lib\Zend\View\Abstract.php(1067):
>> Zend_Loader_PluginLoader->load('Layout')
>> #1 C:\Program Files\Apache Software
>> Foundation\Apache2.2\htdocs\mbm\lib\Zend\View\Abstract.php(545):
>> Zend_View_Abstract->_getPlugin('helper', 'layout')
>> #2 C:\Program Files\Apache Software
>> Foundation\Apache2.2\htdocs\mbm\lib\Zend\View\Abstract.php(312):
>> Zend_View_Abstract->getHelper('layout')
>> #3 [internal function]: Zend_View_Abstract->__call('layout', 
>> Array)
>> #4 C:\Program Files\Apache Software
>> Foundation\Apache2.2\htdocs\mbm\skin\layouts\fixed.phtml(44): 
>> Zend_View in C:\Program Files\Apache Software 
>> Foundation\Apache2.2\htdocs\mbm\lib\Zend\Loader\PluginLoader.php on 
>> line 386
>> 
>> I have no idea why I'm getting this error, as the Layout helper does 
>> exist and, yes, it is in my include path.
>> 
>> The call that is causing this error starts in my default layout file:
>> echo $this->layout()->content
>> That was taken right from the documentation wiki, so I'm lost.
>> 
>> Please help!
>> --
>> View this message in context:
>> http://www.nabble.com/Problems-with-View-Helpers-with-update-1.5.1-to
>> -1.7.1-tp20807841p20807841.html Sent from the Zend Framework mailing 
>> list archive at Nabble.com.
>> 
> 
> --
> Matthew Weier O'Phinney
> Software Architect   | [EMAIL PROTECTED]
> Zend Framework   | http://framework.zend.com/
> 
> 

--
View this message in context:
http://www.nabble.com/Problems-with-View-Helpers-with-update-1.5.1-to-1.7.1-
tp20807841p20819279.html
Sent from the Zend Framework mailing list archive at Nabble.com.




Re: [fw-general] Problems with View Helpers with update 1.5.1 to 1.7.1

2008-12-03 Thread Matthew Weier O'Phinney
-- kabel2 <[EMAIL PROTECTED]> wrote
(on Wednesday, 03 December 2008, 10:57 AM -0800):
> Confirmed:
> There is only one instance of ZF referenced in include_path and Layout.php
> does exist in library/Zend/View/Helper.
> 
> Has anyone else experienced issues with the PluginLoader? Was there a
> drastic change from 1.5.1 to it that would cause this error?

In the 1.5 series, Zend_View did not use the PluginLoader (it used an
internal mechanism); that switch occurred for 1.6. I've not seen any
reports from people having such issues upgrading from 1.5.x to 1.6,
however.

It's clear that the Zend_View_Helper path is present in the Zend_View
helper plugin loader; the question is why it's unable to find the
Layout.php file in that path. I'm inclined to believe that the
include_path has changed prior to the layout script rendering.

One way to test this is to replace the call to echo the layout
placeholder with this:

// remove this:
layout()->content ?>

// replace with:


and see what the include_path is at the time the layout helper is
called.

> Matthew Weier O'Phinney-3 wrote:
> > 
> > -- kabel2 <[EMAIL PROTECTED]> wrote
> > (on Tuesday, 02 December 2008, 11:06 PM -0800):
> >> 
> >> I had  a stable application put together using a layout and view setup in
> >> Zend Framework 1.5.1. I noticed some improvements to the a particular
> >> view
> >> helper in ZF 1.7.1, so I thought I would be a simple transition just to
> >> update the library directory with the new Zend. With the updated version
> >> of
> >> ZF I now get the following exception:
> >> 
> >> Fatal error:  Uncaught exception 'Zend_Loader_PluginLoader_Exception'
> >> with
> >> message 'Plugin by name 'Layout' was not found in the registry; used
> >> paths:
> >> Config_View_Helper_: C:/Program Files/Apache Software
> >> Foundation/Apache2.2/htdocs/mbm/app/modules/config/views\helpers/
> >> Zend_View_Helper_: Zend/View/Helper/' in C:\Program Files\Apache Software
> >> Foundation\Apache2.2\htdocs\mbm\lib\Zend\Loader\PluginLoader.php:386
> > 
> > Can you double-check and make sure that you don't (a) have two ZF
> > installs on your include_path, and (b) that Layout.php exists in
> > library/Zend/View/Helper ?
> > 
> >> Stack trace:
> >> #0 C:\Program Files\Apache Software
> >> Foundation\Apache2.2\htdocs\mbm\lib\Zend\View\Abstract.php(1067):
> >> Zend_Loader_PluginLoader->load('Layout')
> >> #1 C:\Program Files\Apache Software
> >> Foundation\Apache2.2\htdocs\mbm\lib\Zend\View\Abstract.php(545):
> >> Zend_View_Abstract->_getPlugin('helper', 'layout')
> >> #2 C:\Program Files\Apache Software
> >> Foundation\Apache2.2\htdocs\mbm\lib\Zend\View\Abstract.php(312):
> >> Zend_View_Abstract->getHelper('layout')
> >> #3 [internal function]: Zend_View_Abstract->__call('layout', Array)
> >> #4 C:\Program Files\Apache Software
> >> Foundation\Apache2.2\htdocs\mbm\skin\layouts\fixed.phtml(44): Zend_View
> >> in
> >> C:\Program Files\Apache Software
> >> Foundation\Apache2.2\htdocs\mbm\lib\Zend\Loader\PluginLoader.php on line
> >> 386
> >> 
> >> I have no idea why I'm getting this error, as the Layout helper does
> >> exist
> >> and, yes, it is in my include path.
> >> 
> >> The call that is causing this error starts in my default layout file:
> >> echo $this->layout()->content
> >> That was taken right from the documentation wiki, so I'm lost.
> >> 
> >> Please help!
> >> -- 
> >> View this message in context:
> >> http://www.nabble.com/Problems-with-View-Helpers-with-update-1.5.1-to-1.7.1-tp20807841p20807841.html
> >> Sent from the Zend Framework mailing list archive at Nabble.com.
> >> 
> > 
> > -- 
> > Matthew Weier O'Phinney
> > Software Architect   | [EMAIL PROTECTED]
> > Zend Framework   | http://framework.zend.com/
> > 
> > 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/Problems-with-View-Helpers-with-update-1.5.1-to-1.7.1-tp20807841p20819279.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
> 

-- 
Matthew Weier O'Phinney
Software Architect   | [EMAIL PROTECTED]
Zend Framework   | http://framework.zend.com/


Re: [fw-general] Problems with View Helpers with update 1.5.1 to 1.7.1

2008-12-03 Thread kabel2

Confirmed:
There is only one instance of ZF referenced in include_path and Layout.php
does exist in library/Zend/View/Helper.

Has anyone else experienced issues with the PluginLoader? Was there a
drastic change from 1.5.1 to it that would cause this error?


Matthew Weier O'Phinney-3 wrote:
> 
> -- kabel2 <[EMAIL PROTECTED]> wrote
> (on Tuesday, 02 December 2008, 11:06 PM -0800):
>> 
>> I had  a stable application put together using a layout and view setup in
>> Zend Framework 1.5.1. I noticed some improvements to the a particular
>> view
>> helper in ZF 1.7.1, so I thought I would be a simple transition just to
>> update the library directory with the new Zend. With the updated version
>> of
>> ZF I now get the following exception:
>> 
>> Fatal error:  Uncaught exception 'Zend_Loader_PluginLoader_Exception'
>> with
>> message 'Plugin by name 'Layout' was not found in the registry; used
>> paths:
>> Config_View_Helper_: C:/Program Files/Apache Software
>> Foundation/Apache2.2/htdocs/mbm/app/modules/config/views\helpers/
>> Zend_View_Helper_: Zend/View/Helper/' in C:\Program Files\Apache Software
>> Foundation\Apache2.2\htdocs\mbm\lib\Zend\Loader\PluginLoader.php:386
> 
> Can you double-check and make sure that you don't (a) have two ZF
> installs on your include_path, and (b) that Layout.php exists in
> library/Zend/View/Helper ?
> 
>> Stack trace:
>> #0 C:\Program Files\Apache Software
>> Foundation\Apache2.2\htdocs\mbm\lib\Zend\View\Abstract.php(1067):
>> Zend_Loader_PluginLoader->load('Layout')
>> #1 C:\Program Files\Apache Software
>> Foundation\Apache2.2\htdocs\mbm\lib\Zend\View\Abstract.php(545):
>> Zend_View_Abstract->_getPlugin('helper', 'layout')
>> #2 C:\Program Files\Apache Software
>> Foundation\Apache2.2\htdocs\mbm\lib\Zend\View\Abstract.php(312):
>> Zend_View_Abstract->getHelper('layout')
>> #3 [internal function]: Zend_View_Abstract->__call('layout', Array)
>> #4 C:\Program Files\Apache Software
>> Foundation\Apache2.2\htdocs\mbm\skin\layouts\fixed.phtml(44): Zend_View
>> in
>> C:\Program Files\Apache Software
>> Foundation\Apache2.2\htdocs\mbm\lib\Zend\Loader\PluginLoader.php on line
>> 386
>> 
>> I have no idea why I'm getting this error, as the Layout helper does
>> exist
>> and, yes, it is in my include path.
>> 
>> The call that is causing this error starts in my default layout file:
>> echo $this->layout()->content
>> That was taken right from the documentation wiki, so I'm lost.
>> 
>> Please help!
>> -- 
>> View this message in context:
>> http://www.nabble.com/Problems-with-View-Helpers-with-update-1.5.1-to-1.7.1-tp20807841p20807841.html
>> Sent from the Zend Framework mailing list archive at Nabble.com.
>> 
> 
> -- 
> Matthew Weier O'Phinney
> Software Architect   | [EMAIL PROTECTED]
> Zend Framework   | http://framework.zend.com/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problems-with-View-Helpers-with-update-1.5.1-to-1.7.1-tp20807841p20819279.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Zend_Form Radio/Checkbox decorator

2008-12-03 Thread chinaski

I am trying to decorate a radio group as follows: 


   label
   
  
 
 radiovalue1 label
  
  
 
 radiovalue2 label
  
  
 
 radiovalue3 label
  
   
 

Help appreciated!
-- 
View this message in context: 
http://www.nabble.com/Zend_Form-Radio-Checkbox-decorator-tp20819236p20819236.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Zend Mailing Lists [All]

2008-12-03 Thread Nico Edtinger

Hi Aaron!

netlynx wrote:

netlynx wrote:


I have been subscribed to the groups here for a while, and I am  
somewhat
versed in pulling rss feeds and atom feeds and storing them in a  
database.

What I am wondering is, is there a feed for these mailing lists (as
opposed to downloading them via e-mail and filtering them into  
folders).
Long explanation short, are the Zend Framework Mailing Lists  
available via

RSS feed? (download only, not posting that is).

Thanks
Aaron



Oh and just to clarify (laugh), I realize that I could register a mail
account specifically to receive the groups and have PHP/Zend Framework
handle the incoming messages.  I am more-so looking for a feed  
(pull) as

opposed to a mail (push) type scenario.

--
View this message in context: 
http://www.nabble.com/Zend-Mailing-Lists--All--tp20817622p20817675.html
Sent from the Zend Framework mailing list archive at Nabble.com.


You are already using Nabble and should see the link to a feed  
somewhere in your address bar:. fw-general has a feed at . But IMO using push is the better option, if available, as you  
aren't wasting resources (like fetching the feed although nothing has  
changed) and you get new mails as soon as they arrive. With a .forward  
file it's quite easy to call a CLI script and import the mail into  
your database (maybe using Zend_Mail_Message[_File])


nico


[fw-general] [Zend_Form] Zend_Form_Element_File::getValue() is calling Zend_File_Transfer_Http:: receive()

2008-12-03 Thread Laurent Melmoux

Hi,

I’m wondering if it is a good idea to move the uploaded file on 
Zend_Form_Element_File::getValue() call.


Because:

• If the receive() failed for what ever reason I may not want to go 
further like inserting the other data in the database. And Currently 
there is no easy way to check if receive() succeed.

• Or if a database transaction failed I will have to delete the files
• What if we want to name the file from the UID of the database record


Personally I prefer to use this pattern:

$this->db->beginTransaction();
try {

// will not call receive()
$data = $this->form->getValues(); $this->insert($data);
// will call Zend_File_Transfer_Http:: receive()
// if receive() failed throw an exception then no data is inserted
$this->saveFiles();
$this->db->commit();
} catch (Exception $ex) {
$this->db->rollBack();
}

Not calling receive() on Zend_Form_Element_File::getValue() would leave 
more flexibility for the developer on how he want to handle the file. 
What do you think?


--
Laurent Melmoux
Conseil et Solutions Web | [EMAIL PROTECTED]
2mx - Annecy, France | http://laurent.2mx.fr/



RE: [fw-general] Zend Mailing Lists [All]

2008-12-03 Thread Terre Porter
There is an xml atom feed from nabble.com, if that helps.

http://www.nabble.com/Zend-Framework-Community-f16154.html (at the bottom of
the page)

Terre 

-Original Message-
From: netlynx [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 03, 2008 12:33 PM
To: fw-general@lists.zend.com
Subject: Re: [fw-general] Zend Mailing Lists [All]




netlynx wrote:
> 
> I have been subscribed to the groups here for a while, and I am 
> somewhat versed in pulling rss feeds and atom feeds and storing them in a
database.
> What I am wondering is, is there a feed for these mailing lists (as 
> opposed to downloading them via e-mail and filtering them into folders).
> Long explanation short, are the Zend Framework Mailing Lists available 
> via RSS feed? (download only, not posting that is).
> 
> Thanks
> Aaron
> 

Oh and just to clarify (laugh), I realize that I could register a mail
account specifically to receive the groups and have PHP/Zend Framework
handle the incoming messages.  I am more-so looking for a feed (pull) as
opposed to a mail (push) type scenario.

--
View this message in context:
http://www.nabble.com/Zend-Mailing-Lists--All--tp20817622p20817675.html
Sent from the Zend Framework mailing list archive at Nabble.com.




Re: [fw-general] Friendly URLs

2008-12-03 Thread Michał Zieliński

Sorry for the emails. My mistake, won`t happen again :[

Thanks for reply.
-- 
View this message in context: 
http://www.nabble.com/Friendly-URLs-tp6055801p20817780.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Zend Mailing Lists [All]

2008-12-03 Thread netlynx



netlynx wrote:
> 
> I have been subscribed to the groups here for a while, and I am somewhat
> versed in pulling rss feeds and atom feeds and storing them in a database. 
> What I am wondering is, is there a feed for these mailing lists (as
> opposed to downloading them via e-mail and filtering them into folders). 
> Long explanation short, are the Zend Framework Mailing Lists available via
> RSS feed? (download only, not posting that is).
> 
> Thanks
> Aaron
> 

Oh and just to clarify (laugh), I realize that I could register a mail
account specifically to receive the groups and have PHP/Zend Framework
handle the incoming messages.  I am more-so looking for a feed (pull) as
opposed to a mail (push) type scenario.

-- 
View this message in context: 
http://www.nabble.com/Zend-Mailing-Lists--All--tp20817622p20817675.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Zend Mailing Lists [All]

2008-12-03 Thread netlynx

I have been subscribed to the groups here for a while, and I am somewhat
versed in pulling rss feeds and atom feeds and storing them in a database. 
What I am wondering is, is there a feed for these mailing lists (as opposed
to downloading them via e-mail and filtering them into folders).  Long
explanation short, are the Zend Framework Mailing Lists available via RSS
feed? (download only, not posting that is).

Thanks
Aaron
-- 
View this message in context: 
http://www.nabble.com/Zend-Mailing-Lists--All--tp20817622p20817622.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Best Practices Question

2008-12-03 Thread netlynx



Simon Corless wrote:
> 
> 
> 
> netlynx wrote:
>> 
>> The question that came to mind is Rob is checking for an identity in the
>> preDispatch() method of the action controller --
>> Zend_Auth::getInstance()->hasIdentity() --, and I am wondering if this
>> wouldn’t be better located in the init() method of the action controller?
>> 
>> I guess what it really comes down to is without poking through the Zend
>> Framework source code and api documentation too much, what ‘order’ does
>> things happen in, and what are the best practices of what should go into
>> the different methods.  Is there some kind of quick descriptions or maybe
>> an application flow diagram of some sort that has been put together
>> showing this?
>> 
> 
> I would personally put this in a plugin so that you didn't have to mess
> with your actions, that way the site and feature should work whether you
> have auth or not (i.e. as different situations may arise).
> 
> It's specified in the manual under plugins and controllers (I believe) as
> to what order the calls are made, but also someone did a chart the other
> day which is here: 
> 
> http://www.nabble.com/Graph-showing-Action-Helpers,-Plugins-and-Controllers-lifecycle-along-dispatch-td20304504.html#a20613357
> 
> Or directly:
> 
> http://surlandia.com/2008/11/03/zend-framework-plugins-action-helpers-and-controllers-life-cycle-during-dispatch/
> 
> Which I think you will find very useful.
> 
> Simon
> 

That is definitely helpful thank you.  I hadn't even thought of creating a
plugin (mainly because I completely skipped the whole section on controllers
and plugins).  I kinda stopped at the point in that section of extending the
action controller (which also works -- from a kind of preDispatch hook kind
of sense, I was putting anything 'global' to action controllers into the
init() and preDispatch() methods of the extended class).  I'm going to do
some more reading! :)  The chart as well was good, I am wondering if there
is a more detailed chart that provided a complete Zend Framework application
lifecycle, indicating what sorts of things would generally be placed in each
phase of the lifecycle.

I hope I am making sense in my question?  I am going to start separating my
auth and acl stuff from the action controllers here, wish me luck in not
breaking everything :)

Thanks
Aaron

-- 
View this message in context: 
http://www.nabble.com/Best-Practices-Question-tp20805394p20817465.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Zend_Dojo vs Prototype

2008-12-03 Thread Matthew Ratzloff
>
> When debugging in firefow, I also noticed that the dojo library loaded a
>
long list of files taking up some time whereas the prototype library was
>
only one file. I certainly don't want to say that "dojo is better than
>
prototype" - I have way to little knowledge about both libraries, but I
>
wonder if the "overhead" could be avoided when loading the dojo libraries
>
(using 1 file?)?
>

I don't use Dojo, but from what I understand this might be helpful:
http://dojotoolkit.org/book/dojo-book-0-4/part-6-customizing-dojo-builds-better-performance/dojo-build-system/creating-cust

-Matt

On Tue, Dec 2, 2008 at 3:19 PM, Marc Grue <[EMAIL PROTECTED]> wrote:

>
>
> Matthew Weier O'Phinney-3 wrote:
> >
> > Look into dojo.xhr:
> >
> >
> >
> http://dojotoolkit.org/book/dojo-book-0-9/part-3-programmatic-dijit-and-dojo/ajax-transports
> >
> > There's not a direct equivalent to Ajax.Updater, but it's trivial to use
> > dojo.place to inject the content into your DOM via a load callback.
> >
>
> Thanks for the link and guidance, Matthew!
>
> I messed around with the dojo.xhr parts and found a solution that worked
> (sending a form) but wasn't as elegant as my old prototype way (sending
> var/value pairs). I have included both below if somebody can use them.
>
> When debugging in firefow, I also noticed that the dojo library loaded a
> long list of files taking up some time whereas the prototype library was
> only one file. I certainly don't want to say that "dojo is better than
> prototype" - I have way to little knowledge about both libraries, but I
> wonder if the "overhead" could be avoided when loading the dojo libraries
> (using 1 file?)?
>
> I have some follow-up questions:
> How can I get the response back from the action in my controller and
> 'cancel' all other aggregated content in the view? Do I have to use
> contextSwitch action helper somehow, or am I on the wrong track?
> Embarrasing: for now I do an *ugly* die($content) to just abort and echo
> the
> data back.
>
> I'm also sending a format variable with the ajax call to determine in my
> action if I should send back the result to an ajax call or if it's a
> 'normal' request where all subsequent actions should carry out and build
> the
> whole page. But shouldn't I be able to detect an ajax call without the
> format variable?!
>
>
> DOJO SOLUTION (in view script) ===
> ... load dojo libraries ...
> url: "myController/myAction/format/ajax",
>handleAs:"text",
>load: function(response){
>dojo.byId('myBox').innerHTML = response;
>},
>error: function(data){
>alert("Holy Bomb Box, Batman!  An error occurred: " +
> data);
>},
>timeout: 2000
>};
>dojo.xhrGet(kw);  // or: dojo.xhrPost(kw);
> " >Replace the content in myBox
>
> Old content...
>
>
> PROTOTYPE SOLUTION (in view script) ==
> ... load prototype libraries ...
> Replace the content in
> myBox
>
> Old content...
>
> --
> View this message in context:
> http://www.nabble.com/Zend_Dojo-vs-Prototype-tp20757810p20803325.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>


Re: [fw-general] Friendly URLs

2008-12-03 Thread Matthew Ratzloff
Why are you sending so many e-mails?  You sent three the first time, and six
following my reply.  If this is a bug in your e-mail client, please use a
different one.  If this is intentional, please stop.
Now that I think about it some more, you can do one of two things.  You can
define a series of routes up to a reasonable maximum number of submenus
(hacky, but it's fast and will work) or you can write your own Route class,
Your_Controller_Router_Route_Http.  You definitely do not want to match on
(.*) and parse it yourself, since you'd basically be writing your own Route
class in a non-standard way.

-Matt

On Wed, Dec 3, 2008 at 12:24 AM, Michał Zieliński <[EMAIL PROTECTED]> wrote:

>
> Thanks Matt.
>
> I create route like this:
> routes.x.type = "Zend_Controller_Router_Route_Regex"
> routes.x.route = "(.*)"
> routes.x.defaults.module = "default"
> routes.x.defaults.controller = "section"
> routes.x.defaults.action = "load"
> routes.x.map.1 = "path"
>
> For uri like /about/history/1999/
> I get output like:
> array(4) {
>  ["path"] => string(2) "about/history/1999"
>  ["module"] => string(7) "default"
>  ["controller"] => string(5) "section"
>  ["action"] => string(5) "load"
> }
>
> So it is fine, I can easily load appropriate site section (section: about,
> subsection: history, subsubsection: 1999).
>
> But if I have a defined controller like subscription, or different module
> like admin I can`t use them. I could redirect to it from within
> SectionController::loadAction where every request goes but it isn`t the
> best
> solution I believe.
>
> I was thinking about plugin which could decide if additional routing is
> needed or maybe custom route but (in both options) at the moment when
> routes
> are loaded I guess front controller methods like getModuleName or
> getControllerName don`t exist or return null. So I`m not sure how could I
> make this decision (if controller exists load it, else use route regex like
> "(.*)".
>
> How it should be done?
>
> @edit
> looking at the errorHandler plugin I see that this approach could also be
> used:
>
>
> switch ($exceptionType) {
>case 'Zend_Controller_Dispatcher_Exception':
>$error->type = self::EXCEPTION_NO_CONTROLLER;
>break;
>
>
> So I could write similar plugin for this or basically use
> ErrorController::errorAction to handle the logic for retriving section from
> db. However, I don`t know if this plugin (errorAction method) was designed
> to play such role.
> I could also try to catch dispatch exception in my app index.php file like
> this:
>
>
> $fc = Zend_Controller_Front::getInstance();
> try {
>  $fc->dispatch();
> } catch  (Zend_Controller_Dispatcher_Exception $e) {
>  // create router with additional route "(.*)"
>  $fc->setRouter($router);
>  $fc->dispatch();
> } catch (Exception $e) {
>  // ...
> }
>
>
> However, I don`t know if this approach is recommended because according to
> quickstart tutorial I guess front controller configuration (and other
> config
> as well) should be in bootstrap file. Index.php should only launch
> dispatch.
> Again, what`s your opinion?
> --
> View this message in context:
> http://www.nabble.com/Friendly-URLs-tp6055801p20808404.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>


Re: [fw-general] QUestion about jQuery ajaxLink- can anyone take a look on this please?

2008-12-03 Thread Daniel Latter
Hi Benjamin,

I know this, I stated AjaxContent and ContextSwitches as an
alternative, (i.e not using ajaxLink in response) as I did not see
them mentioned in previous mesaages, but appologies if they have been.

Vladimir:

heres the link anyway if you interested:

http://framework.zend.com/manual/en/zend.controller.actionhelpers.html
Section: 10.8.4.3

Thank You
Daniel Latter



2008/12/3 Benjamin Eberlei <[EMAIL PROTECTED]>:
> we are already that far. The problem is javascript within that
> ajax generated html that is not interpreted correctly when using ajaxLink
> and inline onClick rendering.
>
> On Wednesday 03 December 2008 17:49:31 Daniel Latter wrote:
>> Hi again,
>>
>> You may want to look at Ajaxcontent and ContextSwitches in the
>> manual , with these you can fire of an ajax request to a controller
>> action and have it return HTML you can then use in your current view:
>>
>> class CommentController extends Zend_Controller_Action {
>>
>> public function init()
>> {
>> $ajaxContext = $this->_helper->getHelper('AjaxContext');
>> $ajaxContext->->addActionContext('process', 'html') //
>> processAction method
>> ->initContext();
>> }
>>
>> public function processAction()
>> {
>>   $this->_helper->viewRenderer->setNoRender();
>>   $form = new BlogCommentForm();
>> // Process a new comment
>> // Return the results as JSON; simply assign the results as
>> // view variables, and JSON will be returned.
>>   if ($this->_request->isPost()) {
>>   $formData = $this->_request->getPost();
>>   if ($form->isValid($formData)) {
>>   $posts = new BlogComments();
>>   $row = $posts->createRow();
>>   $row->comment = $form->getValue('comment');
>>   $row->postID = $form->getValue('postID');
>>   $row->save();
>>   $this->view->comment =  "Your comment has been 
>> added";
>>   } else {
>>   $form->populate($formData);
>>   }
>>   }
>> }
>> }
>>
>> On Dec 3, 2008, at 16:13, vladimirn <[EMAIL PROTECTED]> wrote:
>> > Hello Benjamin, thanks for your response.
>> > Are you saying that ajaxLInk could be used only to display pages
>> > which must
>> > not have javascipt inside?
>> > So, only plain text and html without javascript will work?
>> > If so, i really dont see real use for it except to play and have ONE
>> > quickly
>> > loaded page.
>> > Also, no one told me WHY link name is out of href tags. I copied
>> > that part
>> > of page source above, so i think that i have ajaxLink inside ajaxLink
>> > requested page, but its missformated. I dont know.
>> > So i must abandon jQuey for now, considering i dont have any
>> > knowledge about
>> > javascript and dont know to write any.
>> > Thanks,
>> > V
>> >
>> > beberlei wrote:
>> >> Hello vladimirn,
>> >>
>> >> this is just not possible as i said earlier. You have to find a
>> >> generic
>> >> jQuery
>> >> by hand written solution for this. I have tested myself if its
>> >> possible
>> >> with
>> >> the inline argument, but that gives javascript errors.
>> >>
>> >> The problem is the following. The ajaxLink helper puts jQuery code
>> >> onto
>> >> the
>> >> jQuery Helper stack. When you render from ajax the stack has
>> >> already been
>> >> outputted to the view, so its missing the hooks for the "new links".
>> >>
>> >> If you write some generic javascript yourself you can circumvent this
>> >> problem
>> >> rather easy.
>> >>
>> >> greetings,
>> >> Benjamin
>> >>
>> >> On Wednesday 03 December 2008 16:36:02 vladimirn wrote:
>> >>> Thank you Daniel,
>> >>> i already have this added in my bootstrap.
>> >>> At least you have read my post :)
>> >>>
>> >>> ajaxLink works ok . But i need to have ajaxLink inside requested
>> >>> ajaxLInk
>> >>> content.
>> >>>
>> >>> Is my english to bad, or no one here can give me an answer? :)
>> >>> I really want thats about my english and that i dont know to
>> >>> explain :)
>> >>> If anyone thinks that could help on this, i will explain it over and
>> >>> over,
>> >>> and make things clear :0)
>> >>>
>> >>> Thanks in advance,
>> >>> V
>> >>>
>> >>> dan.latter wrote:
>>  you need
>> 
>>  $view->addHelperPath("ZendX/JQuery/View/Helper",
>>  "ZendX_JQuery_View_Helper");
>> 
>>  in your view I think as this is JQuery related.
>> 
>>  Thank You
>>  Daniel Latter
>> 
>>  2008/12/2 vladimirn <[EMAIL PROTECTED]>:
>> > Anyone pls?
>> >
>> > --
>> > View this message in context:
>> >>>
>> >>> http://www.nabble.com/QUestion-about-jQuery-ajaxLink--can-anyone-take-a
>> >>>-
>> >>>
>> > look-on-this-please--tp20732925p20795245.html Sent from the Zend
>> > Framework mailing list arch

Re: [fw-general] QUestion about jQuery ajaxLink- can anyone take a look on this please?

2008-12-03 Thread Benjamin Eberlei
we are already that far. The problem is javascript within that
ajax generated html that is not interpreted correctly when using ajaxLink
and inline onClick rendering.

On Wednesday 03 December 2008 17:49:31 Daniel Latter wrote:
> Hi again,
>
> You may want to look at Ajaxcontent and ContextSwitches in the
> manual , with these you can fire of an ajax request to a controller
> action and have it return HTML you can then use in your current view:
>
> class CommentController extends Zend_Controller_Action {
>
> public function init()
> {
> $ajaxContext = $this->_helper->getHelper('AjaxContext');
> $ajaxContext->->addActionContext('process', 'html') //
> processAction method
> ->initContext();
> }
>
> public function processAction()
> {
>   $this->_helper->viewRenderer->setNoRender();
>   $form = new BlogCommentForm();
> // Process a new comment
> // Return the results as JSON; simply assign the results as
> // view variables, and JSON will be returned.
>   if ($this->_request->isPost()) {
>   $formData = $this->_request->getPost();
>   if ($form->isValid($formData)) {
>   $posts = new BlogComments();
>   $row = $posts->createRow();
>   $row->comment = $form->getValue('comment');
>   $row->postID = $form->getValue('postID');
>   $row->save();
>   $this->view->comment =  "Your comment has been 
> added";
>   } else {
>   $form->populate($formData);
>   }
>   }
> }
> }
>
> On Dec 3, 2008, at 16:13, vladimirn <[EMAIL PROTECTED]> wrote:
> > Hello Benjamin, thanks for your response.
> > Are you saying that ajaxLInk could be used only to display pages
> > which must
> > not have javascipt inside?
> > So, only plain text and html without javascript will work?
> > If so, i really dont see real use for it except to play and have ONE
> > quickly
> > loaded page.
> > Also, no one told me WHY link name is out of href tags. I copied
> > that part
> > of page source above, so i think that i have ajaxLink inside ajaxLink
> > requested page, but its missformated. I dont know.
> > So i must abandon jQuey for now, considering i dont have any
> > knowledge about
> > javascript and dont know to write any.
> > Thanks,
> > V
> >
> > beberlei wrote:
> >> Hello vladimirn,
> >>
> >> this is just not possible as i said earlier. You have to find a
> >> generic
> >> jQuery
> >> by hand written solution for this. I have tested myself if its
> >> possible
> >> with
> >> the inline argument, but that gives javascript errors.
> >>
> >> The problem is the following. The ajaxLink helper puts jQuery code
> >> onto
> >> the
> >> jQuery Helper stack. When you render from ajax the stack has
> >> already been
> >> outputted to the view, so its missing the hooks for the "new links".
> >>
> >> If you write some generic javascript yourself you can circumvent this
> >> problem
> >> rather easy.
> >>
> >> greetings,
> >> Benjamin
> >>
> >> On Wednesday 03 December 2008 16:36:02 vladimirn wrote:
> >>> Thank you Daniel,
> >>> i already have this added in my bootstrap.
> >>> At least you have read my post :)
> >>>
> >>> ajaxLink works ok . But i need to have ajaxLink inside requested
> >>> ajaxLInk
> >>> content.
> >>>
> >>> Is my english to bad, or no one here can give me an answer? :)
> >>> I really want thats about my english and that i dont know to
> >>> explain :)
> >>> If anyone thinks that could help on this, i will explain it over and
> >>> over,
> >>> and make things clear :0)
> >>>
> >>> Thanks in advance,
> >>> V
> >>>
> >>> dan.latter wrote:
>  you need
> 
>  $view->addHelperPath("ZendX/JQuery/View/Helper",
>  "ZendX_JQuery_View_Helper");
> 
>  in your view I think as this is JQuery related.
> 
>  Thank You
>  Daniel Latter
> 
>  2008/12/2 vladimirn <[EMAIL PROTECTED]>:
> > Anyone pls?
> >
> > --
> > View this message in context:
> >>>
> >>> http://www.nabble.com/QUestion-about-jQuery-ajaxLink--can-anyone-take-a
> >>>-
> >>>
> > look-on-this-please--tp20732925p20795245.html Sent from the Zend
> > Framework mailing list archive at Nabble.com.
> >>
> >> --
> >> Benjamin Eberlei
> >> http://www.beberlei.de
> >
> > --
> > View this message in context:
> > http://www.nabble.com/QUestion-about-jQuery-ajaxLink--can-anyone-take-a-l
> >ook-on-this-please--tp20732925p20816016.html Sent from the Zend Framework
> > mailing list archive at Nabble.com.

-- 
Benjamin Eberlei
http://www.beberlei.de


Re: [fw-general] QUestion about jQuery ajaxLink- can anyone take a look on this please?

2008-12-03 Thread Daniel Latter
Hi again,

You may want to look at Ajaxcontent and ContextSwitches in the
manual , with these you can fire of an ajax request to a controller
action and have it return HTML you can then use in your current view:

class CommentController extends Zend_Controller_Action {

public function init()
{
$ajaxContext = $this->_helper->getHelper('AjaxContext');
$ajaxContext->->addActionContext('process', 'html') //
processAction method
->initContext();
}

public function processAction()
{
$this->_helper->viewRenderer->setNoRender();
$form = new BlogCommentForm();
// Process a new comment
// Return the results as JSON; simply assign the results as
// view variables, and JSON will be returned.
if ($this->_request->isPost()) {
$formData = $this->_request->getPost();
if ($form->isValid($formData)) {
$posts = new BlogComments();
$row = $posts->createRow();
$row->comment = $form->getValue('comment');
$row->postID = $form->getValue('postID');
$row->save();
$this->view->comment =  "Your comment has been 
added";
} else {
$form->populate($formData);
}
}
}
}




On Dec 3, 2008, at 16:13, vladimirn <[EMAIL PROTECTED]> wrote:

>
> Hello Benjamin, thanks for your response.
> Are you saying that ajaxLInk could be used only to display pages
> which must
> not have javascipt inside?
> So, only plain text and html without javascript will work?
> If so, i really dont see real use for it except to play and have ONE
> quickly
> loaded page.
> Also, no one told me WHY link name is out of href tags. I copied
> that part
> of page source above, so i think that i have ajaxLink inside ajaxLink
> requested page, but its missformated. I dont know.
> So i must abandon jQuey for now, considering i dont have any
> knowledge about
> javascript and dont know to write any.
> Thanks,
> V
>
> beberlei wrote:
>>
>> Hello vladimirn,
>>
>> this is just not possible as i said earlier. You have to find a
>> generic
>> jQuery
>> by hand written solution for this. I have tested myself if its
>> possible
>> with
>> the inline argument, but that gives javascript errors.
>>
>> The problem is the following. The ajaxLink helper puts jQuery code
>> onto
>> the
>> jQuery Helper stack. When you render from ajax the stack has
>> already been
>> outputted to the view, so its missing the hooks for the "new links".
>>
>> If you write some generic javascript yourself you can circumvent this
>> problem
>> rather easy.
>>
>> greetings,
>> Benjamin
>>
>> On Wednesday 03 December 2008 16:36:02 vladimirn wrote:
>>> Thank you Daniel,
>>> i already have this added in my bootstrap.
>>> At least you have read my post :)
>>>
>>> ajaxLink works ok . But i need to have ajaxLink inside requested
>>> ajaxLInk
>>> content.
>>>
>>> Is my english to bad, or no one here can give me an answer? :)
>>> I really want thats about my english and that i dont know to
>>> explain :)
>>> If anyone thinks that could help on this, i will explain it over and
>>> over,
>>> and make things clear :0)
>>>
>>> Thanks in advance,
>>> V
>>>
>>> dan.latter wrote:
 you need

 $view->addHelperPath("ZendX/JQuery/View/Helper",
 "ZendX_JQuery_View_Helper");

 in your view I think as this is JQuery related.

 Thank You
 Daniel Latter

 2008/12/2 vladimirn <[EMAIL PROTECTED]>:
> Anyone pls?
>
> --
> View this message in context:
>
>>> http://www.nabble.com/QUestion-about-jQuery-ajaxLink--can-anyone-take-a-
> look-on-this-please--tp20732925p20795245.html Sent from the Zend
> Framework mailing list archive at Nabble.com.
>>
>> --
>> Benjamin Eberlei
>> http://www.beberlei.de
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/QUestion-about-jQuery-ajaxLink--can-anyone-take-a-look-on-this-please--tp20732925p20816016.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>


Re: [fw-general] QUestion about jQuery ajaxLink- can anyone take a look on this please?

2008-12-03 Thread vladimirn

Hello Benjamin, thanks for your response.
Are you saying that ajaxLInk could be used only to display pages which must
not have javascipt inside?
So, only plain text and html without javascript will work?
If so, i really dont see real use for it except to play and have ONE quickly
loaded page.
Also, no one told me WHY link name is out of href tags. I copied that part
of page source above, so i think that i have ajaxLink inside ajaxLink
requested page, but its missformated. I dont know.
So i must abandon jQuey for now, considering i dont have any knowledge about
javascript and dont know to write any.
Thanks,
V

beberlei wrote:
> 
> Hello vladimirn,
> 
> this is just not possible as i said earlier. You have to find a generic
> jQuery 
> by hand written solution for this. I have tested myself if its possible
> with 
> the inline argument, but that gives javascript errors.
> 
> The problem is the following. The ajaxLink helper puts jQuery code onto
> the 
> jQuery Helper stack. When you render from ajax the stack has already been 
> outputted to the view, so its missing the hooks for the "new links".
> 
> If you write some generic javascript yourself you can circumvent this
> problem 
> rather easy.
> 
> greetings,
> Benjamin
> 
> On Wednesday 03 December 2008 16:36:02 vladimirn wrote:
>> Thank you Daniel,
>> i already have this added in my bootstrap.
>> At least you have read my post :)
>>
>> ajaxLink works ok . But i need to have ajaxLink inside requested ajaxLInk
>> content.
>>
>> Is my english to bad, or no one here can give me an answer? :)
>> I really want thats about my english and that i dont know to explain :)
>> If anyone thinks that could help on this, i will explain it over and
>> over,
>> and make things clear :0)
>>
>> Thanks in advance,
>> V
>>
>> dan.latter wrote:
>> > you need
>> >
>> > $view->addHelperPath("ZendX/JQuery/View/Helper",
>> > "ZendX_JQuery_View_Helper");
>> >
>> > in your view I think as this is JQuery related.
>> >
>> > Thank You
>> > Daniel Latter
>> >
>> > 2008/12/2 vladimirn <[EMAIL PROTECTED]>:
>> >> Anyone pls?
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/QUestion-about-jQuery-ajaxLink--can-anyone-take-a-
>> >>look-on-this-please--tp20732925p20795245.html Sent from the Zend
>> >> Framework mailing list archive at Nabble.com.
> 
> -- 
> Benjamin Eberlei
> http://www.beberlei.de
> 
> 

-- 
View this message in context: 
http://www.nabble.com/QUestion-about-jQuery-ajaxLink--can-anyone-take-a-look-on-this-please--tp20732925p20816016.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] QUestion about jQuery ajaxLink- can anyone take a look on this please?

2008-12-03 Thread Benjamin Eberlei
Hello vladimirn,

this is just not possible as i said earlier. You have to find a generic jQuery 
by hand written solution for this. I have tested myself if its possible with 
the inline argument, but that gives javascript errors.

The problem is the following. The ajaxLink helper puts jQuery code onto the 
jQuery Helper stack. When you render from ajax the stack has already been 
outputted to the view, so its missing the hooks for the "new links".

If you write some generic javascript yourself you can circumvent this problem 
rather easy.

greetings,
Benjamin

On Wednesday 03 December 2008 16:36:02 vladimirn wrote:
> Thank you Daniel,
> i already have this added in my bootstrap.
> At least you have read my post :)
>
> ajaxLink works ok . But i need to have ajaxLink inside requested ajaxLInk
> content.
>
> Is my english to bad, or no one here can give me an answer? :)
> I really want thats about my english and that i dont know to explain :)
> If anyone thinks that could help on this, i will explain it over and over,
> and make things clear :0)
>
> Thanks in advance,
> V
>
> dan.latter wrote:
> > you need
> >
> > $view->addHelperPath("ZendX/JQuery/View/Helper",
> > "ZendX_JQuery_View_Helper");
> >
> > in your view I think as this is JQuery related.
> >
> > Thank You
> > Daniel Latter
> >
> > 2008/12/2 vladimirn <[EMAIL PROTECTED]>:
> >> Anyone pls?
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/QUestion-about-jQuery-ajaxLink--can-anyone-take-a-
> >>look-on-this-please--tp20732925p20795245.html Sent from the Zend
> >> Framework mailing list archive at Nabble.com.

-- 
Benjamin Eberlei
http://www.beberlei.de


Re: [fw-general] QUestion about jQuery ajaxLink- can anyone take a look on this please?

2008-12-03 Thread vladimirn

Thank you Daniel, 
i already have this added in my bootstrap.
At least you have read my post :)

ajaxLink works ok . But i need to have ajaxLink inside requested ajaxLInk
content.

Is my english to bad, or no one here can give me an answer? :)
I really want thats about my english and that i dont know to explain :)
If anyone thinks that could help on this, i will explain it over and over,
and make things clear :0)

Thanks in advance,
V

dan.latter wrote:
> 
> you need
> 
> $view->addHelperPath("ZendX/JQuery/View/Helper",
> "ZendX_JQuery_View_Helper");
> 
> in your view I think as this is JQuery related.
> 
> Thank You
> Daniel Latter
> 
> 
> 
> 2008/12/2 vladimirn <[EMAIL PROTECTED]>:
>>
>> Anyone pls?
>>
>> --
>> View this message in context:
>> http://www.nabble.com/QUestion-about-jQuery-ajaxLink--can-anyone-take-a-look-on-this-please--tp20732925p20795245.html
>> Sent from the Zend Framework mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/QUestion-about-jQuery-ajaxLink--can-anyone-take-a-look-on-this-please--tp20732925p20815247.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] [Dumb Question] How do I use the URL view helper in my controllers?

2008-12-03 Thread Jason Webster
The URL action helper is much more robust in its functionality than the 
view helper.

To get an interface exactly the same as the view helper, use

$this->_helper->url->url(array(), 'routename', false);


Rolando Espinoza La Fuente wrote:

On Tue, Dec 2, 2008 at 3:06 AM, Cameron <[EMAIL PROTECTED]> wrote:
  

Hi guys,

The subject line sums it all up. I do some URL generation in the controller
/ model (form submission URLs and so on), and I'd love to be able to use the
same url View Helper that has proven so wonderful in my Views. What's the
trick? I'm sure it's something simple that I'm not smart enough to have
guessed.



Have you tried the url action helper?

 $thils->_helper->url($action, $controller);

Cheers,

  




Re: [fw-general] Overriding Zend_Loader::loadClass()

2008-12-03 Thread Ralph Schindler



> Ralph,
> Looks interesting, "Namespace & PseudoNamespace loading capabilities"
> sounds similar to the class loader I'm using. I think having multiple
> loaders available within ZF is a great idea, but I don't see much need
> for Zend_Loader_Autoloader, as SPL already has good autoloader stack
> management features.

Actually, last time I checked, I didn't see any stack management features.
All I saw was a LIFO stack, which means you have to take special concern in
the order you do you registering.  My solution I was originally working on
would introduce the idea of a stack index that would allow you to register
your autoloader above or beneath other loaders regardless of where in the
code its called from.

So the idea here was simply to be able to manage the ordering of the
autoload stack...  And short circuit known prefixes.

Ideally, this kind of feature would appear in the spl_autoload_* itself :)

> The way I see it working is that a user can either set up the existing
> (or one of the multiple) Zend_Loader's as their autoloader, by calling
> Zend_Loader::registerAutoload(). Or they can create and use their own
> autoloader (eg. My_Loader::registerAutoloader()). My_Loader shouldn't
> have to have anything to do with Zend_Loader, and no other component
> should directly reference Zend_Loader, everything should be done
> through the SPL autoload stack.

-- 
Ralph Schindler
Software Engineer | [EMAIL PROTECTED]
Zend Framework| http://framework.zend.com/




Re: [fw-general] logging offending queries

2008-12-03 Thread Daniel Latter
Hi,

Just an idea but you could have a base class (maybe extend
Zend_Db_Table) and put some custom code in here that does the logging,
that way you would only have to add the logging code in one place.

just my 2p

Thank You
Daniel Latter



2008/12/2 Ralikwen <[EMAIL PROTECTED]>:
>
> Hi,
> is there a generic way to log all database calls from ZF? Or log all db
> errors?
>
> I know that I can use the profiler - I use it with Firebug and it works
> nicely with successful queries - but gives me no help when a db error
> occurs.
> When a db error occurs I would like to see the offending statement without
> having to write spec code to every db call. Even the stack trace could help
> if only it displayed the whole sql statement instead of just the beginning
> of it. I searched quite a lot now but couldn't find an example of a generic
> way to log sql statement or even sql errors.
>
> How would you do this?
>
> Thanks for the help.
> SWK
> --
> View this message in context: 
> http://www.nabble.com/logging-offending-queries-tp20800359p20800359.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>


Re: [fw-general] Overriding Zend_Loader::loadClass()

2008-12-03 Thread Jack Sleight
Matthew,
Yes absolutely. The only changes necessary are the four very simple
replacements the script makes. As far as I know (although I've not
tested every component) this is all that's required.

Ralph,
Looks interesting, "Namespace & PseudoNamespace loading capabilities"
sounds similar to the class loader I'm using. I think having multiple
loaders available within ZF is a great idea, but I don't see much need
for Zend_Loader_Autoloader, as SPL already has good autoloader stack
management features.

The way I see it working is that a user can either set up the existing
(or one of the multiple) Zend_Loader's as their autoloader, by calling
Zend_Loader::registerAutoload(). Or they can create and use their own
autoloader (eg. My_Loader::registerAutoloader()). My_Loader shouldn't
have to have anything to do with Zend_Loader, and no other component
should directly reference Zend_Loader, everything should be done
through the SPL autoload stack.
-- 
Jack


Re: [fw-general] QUestion about jQuery ajaxLink- can anyone take a look on this please?

2008-12-03 Thread Daniel Latter
you need

$view->addHelperPath("ZendX/JQuery/View/Helper", "ZendX_JQuery_View_Helper");

in your view I think as this is JQuery related.

Thank You
Daniel Latter



2008/12/2 vladimirn <[EMAIL PROTECTED]>:
>
> Anyone pls?
>
> --
> View this message in context: 
> http://www.nabble.com/QUestion-about-jQuery-ajaxLink--can-anyone-take-a-look-on-this-please--tp20732925p20795245.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>


Re: [fw-general] Zend Form: Dynamic/Chained select boxes

2008-12-03 Thread Daniel Latter
Hi,

My thinking is you need to use javascript/ajax for this,

You could render the select boxes in zend_form, one populated with the
cities and one empty, and then manipulate them in JS using dom id's,

Of course you could post back to the server when each city is chosen
and then rebuild the form each time but this is not recommended

Thank You
Daniel Latter



2008/12/3 lmcosorio <[EMAIL PROTECTED]>:
>
> Hi!
>
> I've been looking up and down for some example regarding dynamic/linked
> select boxes with Zend_Form. I have a form that when the user clicks on the
> country select box, an other select box should display all cities belonging
> to this country.
> Can someone share some way to accomplish this?
>
> Thanks,
>
> Luis
>
>
> gigantorTRON wrote:
>>
>> I've searched through the forums here and was surprised that I couldn't
>> find much information about creating dynamic select boxes within zend
>> form.
>>
>> What I need is a basic country->populate states setup, where a text field
>> is provided (or enabled) if any country other than US or Canada is
>> selected.
>>
>> What's the best approach to this?
>>
>> Thanks.
>>
>
> --
> View this message in context: 
> http://www.nabble.com/Zend-Form%3A-Dynamic-Chained-select-boxes-tp20099459p20803880.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>


Re: [fw-general] Zend_Form + Zend_File_Transfer issue with Zend_Form::getValues()

2008-12-03 Thread Laurent Melmoux

Thomas,

here is an exemple of what I'm taking about (modified version of your 
blog post :) ) :


require_once('Zend/Loader.php');
Zend_Loader::registerAutoload();
  
$request = new Zend_Controller_Request_Http();
  
// setup the form

$form = new Zend_Form();
$form->setMethod("post");
$form->setAttrib("enctype",Zend_Form::ENCTYPE_MULTIPART);
  
// file element, upload is optional, but if file is uploaded run 
multiple validators

$file1 = $form->createElement("file","file1");
$file1->setRequired(false)
  ->setLabel("File:")
  ->addValidator('Count', true, 2)
  ->addValidator('Size', true, "100KB")

  ->addValidator('Extension', true, 'jpg')
  ->addValidator('MimeType',true,array('image/jpeg'))
  ->addValidator('ImageSize',true,array(0,0,340,480))
  ->setMultiFile(3);
  
 
$comment = $form->createElement("text","comment");
  
  
$form->addElements(array($file1,$comment));
  
// check the form

if($request->isPost()) {
   $formData = $request->getPost();
   if($form->isValid($formData)) {
   echo "FORM VALID";
   } else {
   print_r($form->getMessages()); 
   }

} else {
   // It's over symplified here
   $data = array('comment'=>'initial value');
   $form->populate($data);
   $formData = (object) $form->getValues();
}


?>


 
 
 


Laurent Melmoux a écrit :

Hi Thomas,

Well I said  $_FILES to simplified the internal of 
Zend_File_Transfer_Adapter_Abstract which is using 
Zend_File_Transfer_Adapter_Abstract ::_files :) sorry if it made it 
confusing.


To simplified it :

If I call Zend_Form::getValues() before any form submission an 
exception is thrown ("myFile" not found by file transfer adapter ) 
which occur in Zend_File_Transfer_Adapter_Abstract :: _getFiles() 
because it can not find the element in _files



Right now I’m using the patch below (which is making use of the 
$noexception arg to avoid the exception) and it is working ok:



Zend_Form_Element_File::getValue()
// @line 643
$content = 
current($this->getTransferAdapter()->getFileInfo($this->getName(), 
true));


And

Zend_File_Transfer_Adapter_Abstract
// @line 886
public function getFileInfo($file = null, $noexception = false)
{
   return $this->_getFiles($file, false, $noexception);
}


Thomas Weidner a écrit :

Laurent,

getValues does NOT access $_FILES.
This you have misunderstood. The $_FILES array is used as input for 
the transfer adapter. But again, it does not work with the $_FILES 
array. The internal representation of the data is different to $_FILES.


So you said that you are not displaying the form but do this yourself.
As long as you are following the syntax of the HTTP file element it 
should work.
But when you use subforms or multifiles and are not using the file 
decorator you must do the normalisation manually.


This exception you are referring to does simply say:
The file element you requested is not defined, nor is it a filename 
or a temporary name... I don't know which data you want to work with.


As you gave no details it's hard to say something specific to this 
problem.


Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com

- Original Message - From: "Laurent Melmoux" <[EMAIL PROTECTED]>
To: "Zend Framework General" 
Sent: Wednesday, December 03, 2008 3:01 PM
Subject: [fw-general] Zend_Form + Zend_File_Transfer issue with 
Zend_Form::getValues()




Hi guys, Matthew, Thomas,

I’m giving a try to Zend_Form + Zend_File_Transfer and I’m facing a 
issue with Zend_Form_Element_File::getValue()


I’m not using Zend_Form to renders my forms.
Before displaying the form (on create or update) I populate it with 
default values or values from the db and then I’m using 
Zend_Form::getValues() to pass form values to the view.


But here with files element Zend_Form_Element_File::getValue() try 
to access the global $_FILES and as no form has been submitted yet 
an exception thrown :


throw new Zend_File_Transfer_Exception(sprintf('"%s" not found by 
file transfer adapter', $find));


See :
Zend_File_Transfer_Adapter_Abstract ::getFileInfo($file = null)
Zend_File_Transfer_Adapter_Abstract ::_getFiles($files, $names = 
false, $noexception = false)


Is it a issue or am I using incorrectly Zend_Form + 
Zend_File_Transfer ?


Regards,

--
Laurent Melmoux
Conseil et Solutions Web | [EMAIL PROTECTED]
2mx - Annecy, France | http://laurent.2mx.fr/ 








--
Laurent Melmoux
Conseil et Solutions Web | [EMAIL PROTECTED]
2mx - Annecy, France | http://laurent.2mx.fr/
Tél. | +33 (0)9 74 53 10 40



Re: [fw-general] Zend Framework 1.7.1 is now available!

2008-12-03 Thread Jordan Moore
Sounds good to me.

On Tue, Dec 2, 2008 at 11:51 AM, Matthew Weier O'Phinney
<[EMAIL PROTECTED]> wrote:
> -- Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote
> (on Monday, 01 December 2008, 11:50 PM -0500):
>> -- Jordan Moore <[EMAIL PROTECTED]> wrote
>> (on Monday, 01 December 2008, 08:24 PM -0800):
>> > The route that fails is as follows:
>> >
>> > 
>> >   
>> > Zend_Controller_Router_Route_Static
>> > 
>> > 
>> >   homepage
>> > 
>> >   
>> >   ...
>> > 
>> >
>> > The only configuration-type changes I make to the front controller is
>> > setting the default module to "public" and turning on
>> > "prefixDefaultModule". I'm not removing default routes.
>>
>> Okay, I've verified this, and will look into it more closely first thing
>> in the morning. However, I have one caveat: not providing a default for
>> the controller parameter in your route -- paticularly in static routes
>> -- is a bad practice, and one we have certainly never intended to
>> support. (I would have expected the above to fail previously, to be
>> quite honest.) That said, I will look to see if there is a solution that
>> addresses both the issue report for which the solution broke your code
>> as well as your own use case.
>>
>> In the meantime, setting the 'useDefaultControllerAlways' front
>> controller parameter to true in your bootstrap:
>>
>> $front->setParam('useDefaultControllerAlways', true);
>>
>> is a quick fix for your situation.
>
> I've discussed this with several others, and we all feel that this
> particular case represents both an edge case *and* bad usage of static
> routes. Static routes should always minimally define the controller and
> action parameters as default values; without this information, the
> dispatcher simply does not have enough information to choose the correct
> dispatchable.
>
> I have created an issue, ZF-5140, to track the addition of a note to
> this effect in the manual.
>
>
>> > Also, every other route that is identical to the above route (with the
>> > exception of the route path) fails to be routed (i.e., is routed to
>> > the default controller/action). If you need entire list of routes, I'd
>> > prefer to take this correspondence off of the mailing list.
>> >
>> > On Mon, Dec 1, 2008 at 7:41 PM, Matthew Weier O'Phinney
>> > <[EMAIL PROTECTED]> wrote:
>> > > -- Jordan Moore <[EMAIL PROTECTED]> wrote
>> > > (on Monday, 01 December 2008, 07:02 PM -0800):
>> > >> Sorry for the delayed response.
>> > >>
>> > >> Apparently this was happening because I wasn't specifying the
>> > >> controller for that route (it previously defaulted to "index"). This
>> > >> seems like a significant change for a mini release.
>> > >
>> > > Yes, it is a significant jump for a mini-release, but I *need* a
>> > > reproduce case so I can understand exactly what has changed. Can you
>> > > please provide this?
>> > >
>> > > The issue you reference, ZF-3465, was a fix for when the *default*
>> > > routes are removed -- and you have not indicated if your situation falls
>> > > under that umbrella or otherwise. I need a reproduce case -- your set of
>> > > routes, and the specific route that fails -- so that I can determine the
>> > > scope of the change and whether a rollback is necessary, a patch to the
>> > > changeset, or if it's a documentation issue.
>> > >
>> > >
>> > >> On Mon, Dec 1, 2008 at 6:21 PM, Matthew Weier O'Phinney
>> > >> <[EMAIL PROTECTED]> wrote:
>> > >> > -- Jordan Moore <[EMAIL PROTECTED]> wrote
>> > >> > (on Monday, 01 December 2008, 02:52 PM -0800):
>> > >> >> Removing the 3 lines of code in Zend_Controller_Request_Abstract that
>> > >> >> reference ZF-3465 fixes it.
>> > >> >
>> > >> > Still need the static route that triggers the issue... I'd rather have
>> > >> > *both* issues resolved, not just one ;)
>> > >> >
>> > >> >> On Mon, Dec 1, 2008 at 2:10 PM, Jordan Moore <[EMAIL PROTECTED]> 
>> > >> >> wrote:
>> > >> >> > I've got a couple of apps with a static route that is an empty 
>> > >> >> > string.
>> > >> >> > This route is used for the base of the domain ("/"). After 
>> > >> >> > upgrading
>> > >> >> > to 1.7.1, the route no longer matches requests for the base of the
>> > >> >> > domain.
>> > >> >> >
>> > >> >> > On Mon, Dec 1, 2008 at 1:54 PM, Wil Sinclair <[EMAIL PROTECTED]> 
>> > >> >> > wrote:
>> > >> >> >> Hi all,
>> > >> >> >>
>> > >> >> >> It is my pleasure to announce the release of Zend Framework 
>> > >> >> >> 1.7.1! You
>> > >> >> >> can download this new mini release from the ZF download site:
>> > >> >> >>
>> > >> >> >> http://framework.zend.com/download/latest/
>> > >> >> >>
>> > >> >> >> A list of all issues resolved in this release can be found at:
>> > >> >> >>
>> > >> >> >> http://framework.zend.com/issues/secure/views/IssueNavigator.jspa?reques
>> > >> >> >> tId=10912
>> > >> >> >>
>> > >> >> >> We'd like to once again thank our generous Zend Framework 
>> > >> >> >> contributors
>> > >> >> >> for all the effort they have put in to this release 

Re: [fw-general] Zend_Dojo vs Prototype

2008-12-03 Thread Matthew Weier O'Phinney
-- Marc Grue <[EMAIL PROTECTED]> wrote
(on Tuesday, 02 December 2008, 03:19 PM -0800):
> Matthew Weier O'Phinney-3 wrote:
> > Look into dojo.xhr:
> > 
> >
> > http://dojotoolkit.org/book/dojo-book-0-9/part-3-programmatic-dijit-and-dojo/ajax-transports
> > 
> > There's not a direct equivalent to Ajax.Updater, but it's trivial to use
> > dojo.place to inject the content into your DOM via a load callback.
> > 
> 
> Thanks for the link and guidance, Matthew!
> 
> I messed around with the dojo.xhr parts and found a solution that worked
> (sending a form) but wasn't as elegant as my old prototype way (sending
> var/value pairs). I have included both below if somebody can use them.

You can pass a "form" key to the XHR call, and point it to the form's
DOM node. If you're using Zend_Dojo_Form (and thus dijit.form.Form),
you'll need to do this:

form: dijit.byId("").domNode,

This will send all form elements as key/value pairs in the request.

> When debugging in firefow, I also noticed that the dojo library loaded a
> long list of files taking up some time whereas the prototype library was
> only one file. I certainly don't want to say that "dojo is better than
> prototype" - I have way to little knowledge about both libraries, but I
> wonder if the "overhead" could be avoided when loading the dojo libraries
> (using 1 file?)?

Dojo is highly modular, which makes it easy to debug, maintain, and
understand. The downfall, of course, is lots of micro requests. The
upside is that Dojo provides a build tool that allows you to compile all
these files into a single file, complete with comment stripping,
whitespace removal, and more. I've blogged about it as well as presented
on the topic... and will have an article in an upcoming issue of
php|architect covering it as well.

> I have some follow-up questions:
> How can I get the response back from the action in my controller and
> 'cancel' all other aggregated content in the view? Do I have to use
> contextSwitch action helper somehow, or am I on the wrong track?
> Embarrasing: for now I do an *ugly* die($content) to just abort and echo the
> data back.

Disable the layout and the view renderer. If you use ContextSwitch or
AjaxContext helpers, this is done automatically.

> I'm also sending a format variable with the ajax call to determine in my
> action if I should send back the result to an ajax call or if it's a
> 'normal' request where all subsequent actions should carry out and build the
> whole page. But shouldn't I be able to detect an ajax call without the
> format variable?!

Use the AjaxContext helper, which detects the "X-REQUESTED-WITH:
XMLHttpRequest" header.


-- 
Matthew Weier O'Phinney
Software Architect   | [EMAIL PROTECTED]
Zend Framework   | http://framework.zend.com/


Re: [fw-general] Help with Zend_Soap_AutoDiscover and array of complex types

2008-12-03 Thread Benjamin Eberlei
Hello Krytie,

the ArrayOfTypeComplex strategy is not ignored. Its used for the first level 
and then replaced by the DefaultComplexType for the second level. I havent 
thought about deeper levels. This is a bug.

I have added an issue to Jira and will look into it for the next release. 
Maybe you should think about writing your own complex strategy that handles
this issue for you in the meantime.

best regards,
Benjamin

On Wednesday 03 December 2008 06:04:50 krytie wrote:
> Hi,
>
> How would I go about defining an array of complex types as a property of
> another complex type? The code below gives me the error.
>
> "Cannot add a complex type MyComplexTypeB[] that is not an object or where
> class could not be found in 'DefaultComplexType' strategy."
>
>
> function wsdlAction(){
>   $autodiscover = new
> Zend_Soap_AutoDiscover('Zend_Soap_Wsdl_Strategy_ArrayOfTypeComplex');
> $autodiscover->setClass('MyClass');
> $autodiscover->handle();
> }
>
>
>
> class MyComplexTypeB{
> /**
>  * @var string
>  */
> public $FirstName;
> /**
>  * @var string
>  */
> public $LastName;
> }
>
>
> class MyComplexTypeA{
> /**
>  * @var MyComplexTypeB[]
>  */
> public $Answers=array();
> }
>
>
> class MyClass{
> /**
> * @param MyComplexTypeA
> * @return MyComplexTypeB[]
> */
> function testRequest($request){}
> }
>
> It appears to be ignoring the Strategy that I set, when dealing with
> properties of complex types.
>
> Thanks

-- 
Benjamin Eberlei
http://www.beberlei.de


Re: [fw-general] Overriding Zend_Loader::loadClass()

2008-12-03 Thread Ralph Schindler
I know of this problem too, I actually started working on a proposal for an
autoloader that would "play nice" with other autoloaders.

http://framework.zend.com/wiki/display/ZFPROP/Zend_Loader_Autoloader+-+Ralph
+Schindler

In short, it would allow you to register a namepsace "prefix" that would
only trigger a set of autoloaders and it allows you to manage the order the
autoloaders are executed in.

Not complete, but I think in the proposal you can see which direction it was
going in.

-ralph


On 12/2/08 11:32 AM, "Jack Sleight" <[EMAIL PROTECTED]> wrote:

> Hi Till,
> Yeah, I should probably write some more details about the script, will
> do a blog post when I get a chance. Basically the script solves two
> problems.
> 
> Firstly, as you may have seen, there's been a lot of discussion about
> removing all the require_once statements from ZF, in order to improve
> performance. The script will remove all of these calls, which will of
> course mean you have to use an autoloader.
> 
> The second problem is that at present, it is not possible to use your
> own class loader with ZF (which is something I want to do). This is
> because there are many calls to Zend_Loader::loadClass() hard coded
> within various ZF components. To solve this the script will replace
> all such calls with spl_autoload_call, allowing you to use any class
> loader you like.
> 
> However, there is one last problem with using your own class loader.
> There are still some components of ZF that rely on the ZF library path
> to be in the PHP include_path, but if you're using your own class
> loader there's no reason to assume the ZF path will be in the
> include_path. These problem components are Zend_Cache,
> Zend_Loader_PluginLoader and Zend_Memory, and the script will "fix"
> these calls so that they also use spl_autoload_call.
> 
> When I said "fix" I didn't mean ZF was broken, only that it doesn't
> work when you want to use it in this way.
> 
> I posted details of my class loader earlier in this thread if you're
> interested.

-- 
Ralph Schindler
Software Engineer | [EMAIL PROTECTED]
Zend Framework| http://framework.zend.com/




Re: [fw-general] Problems with View Helpers with update 1.5.1 to 1.7.1

2008-12-03 Thread Matthew Weier O'Phinney
-- kabel2 <[EMAIL PROTECTED]> wrote
(on Tuesday, 02 December 2008, 11:06 PM -0800):
> 
> I had  a stable application put together using a layout and view setup in
> Zend Framework 1.5.1. I noticed some improvements to the a particular view
> helper in ZF 1.7.1, so I thought I would be a simple transition just to
> update the library directory with the new Zend. With the updated version of
> ZF I now get the following exception:
> 
> Fatal error:  Uncaught exception 'Zend_Loader_PluginLoader_Exception' with
> message 'Plugin by name 'Layout' was not found in the registry; used paths:
> Config_View_Helper_: C:/Program Files/Apache Software
> Foundation/Apache2.2/htdocs/mbm/app/modules/config/views\helpers/
> Zend_View_Helper_: Zend/View/Helper/' in C:\Program Files\Apache Software
> Foundation\Apache2.2\htdocs\mbm\lib\Zend\Loader\PluginLoader.php:386

Can you double-check and make sure that you don't (a) have two ZF
installs on your include_path, and (b) that Layout.php exists in
library/Zend/View/Helper ?

> Stack trace:
> #0 C:\Program Files\Apache Software
> Foundation\Apache2.2\htdocs\mbm\lib\Zend\View\Abstract.php(1067):
> Zend_Loader_PluginLoader->load('Layout')
> #1 C:\Program Files\Apache Software
> Foundation\Apache2.2\htdocs\mbm\lib\Zend\View\Abstract.php(545):
> Zend_View_Abstract->_getPlugin('helper', 'layout')
> #2 C:\Program Files\Apache Software
> Foundation\Apache2.2\htdocs\mbm\lib\Zend\View\Abstract.php(312):
> Zend_View_Abstract->getHelper('layout')
> #3 [internal function]: Zend_View_Abstract->__call('layout', Array)
> #4 C:\Program Files\Apache Software
> Foundation\Apache2.2\htdocs\mbm\skin\layouts\fixed.phtml(44): Zend_View in
> C:\Program Files\Apache Software
> Foundation\Apache2.2\htdocs\mbm\lib\Zend\Loader\PluginLoader.php on line
> 386
> 
> I have no idea why I'm getting this error, as the Layout helper does exist
> and, yes, it is in my include path.
> 
> The call that is causing this error starts in my default layout file:
> echo $this->layout()->content
> That was taken right from the documentation wiki, so I'm lost.
> 
> Please help!
> -- 
> View this message in context: 
> http://www.nabble.com/Problems-with-View-Helpers-with-update-1.5.1-to-1.7.1-tp20807841p20807841.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
> 

-- 
Matthew Weier O'Phinney
Software Architect   | [EMAIL PROTECTED]
Zend Framework   | http://framework.zend.com/


Re: [fw-general] Overriding Zend_Loader::loadClass()

2008-12-03 Thread till
Hey Jack,

On Tue, Dec 2, 2008 at 5:16 PM, Jack Sleight <[EMAIL PROTECTED]> wrote:
> Hi Everyone,
> Just wanted to post a quick update to my previous script, which is now
> compatible with 1.7.1 and Zend_Loader_PluginLoader, the code is here:
>
> http://pastebin.com/f19b4676
>
> Place it in a directory, create a subdirectory called "source" and put
> a copy of ZF in it. Create a new folder called "target". Run the
> script, the modified version will be in "target". You'll notice it
> only copies the "library" folder and the root text files, if you need
> any of the others you'll have to modify the script or copy them over
> manually.
>
> Things it does:
>
> - Comment out all require/include(_once)? "Zend..." lines
> - Replace all Zend_Loader::loadClass() calls with spl_autoload_call calls
> - Fix require_once calls in Zend_Cache
> - Fix require_once calls in Zend_Memory
> - Fix Zend_Loader_PluginLoader
>

Interesting approach and while I can follow the first two comments, I
suggest you write a blog post and go into detail what exactly it is
that you "fix" and also how.

(Really) Looking forward to it,
Till


Re: [fw-general] zend form adderror and isvalid

2008-12-03 Thread Matthew Weier O'Phinney
-- Borje <[EMAIL PROTECTED]> wrote
(on Wednesday, 03 December 2008, 06:26 AM -0800):
> Matthew Weier O'Phinney-3 wrote:
> > 
> > -- Samuel Verdier <[EMAIL PROTECTED]> wrote
> > (on Tuesday, 05 August 2008, 03:43 PM +0200):
> >> In use addError('test');
> >> 
> >> And : $form->isValid($formData); retour true.
> >> 
> >> Is this normal?
> > 
> > Yes. The use case for addError() is to add an error message to the
> > element or form. isValid() is for validating the various form elements.
> > Adding an error message is not indicative of the actual validations
> > performed.
> > 
> This I find rather confusing. Zend_Form_Element::addError() has the
> following description: "Add an error message and mark element as failed
> validation". This implies that Zend_Form_Element::addError() also sets the
> element to fail validation. The method Zend_Form_Element::addErrorMessage()
> on the other hand has the following description: "Add a custom error message
> to return in the event of failed validation" Which seems to be a more
> accurate description of what you explained.
> On another note, Zend_Form::addError() and Zend_Form::addErrorMessage() has
> the same descriptions with the word "element" in them, which makes the
> matter even more confusing.
> And to make matters even a bit worse, Zend_Form_Element::addError() calls
> Zend_Form_Element::markAsError() which has the following description: "Mark
> the element as being in a failed validation state".
> This leads me to believe that addError() was meant to actually make
> validation fail, but that doesn't seem to be the case.

Hmm...  you're right, it doesn't right now, but it likely should. Care
to file an issue report?

-- 
Matthew Weier O'Phinney
Software Architect   | [EMAIL PROTECTED]
Zend Framework   | http://framework.zend.com/


Re: [fw-general] Zend_Form + Zend_File_Transfer issue with Zend_Form::getValues()

2008-12-03 Thread Laurent Melmoux

Hi Thomas,

Well I said  $_FILES to simplified the internal of 
Zend_File_Transfer_Adapter_Abstract which is using 
Zend_File_Transfer_Adapter_Abstract ::_files :) sorry if it made it 
confusing.


To simplified it :

If I call Zend_Form::getValues() before any form submission an exception 
is thrown ("myFile" not found by file transfer adapter ) which occur in 
Zend_File_Transfer_Adapter_Abstract :: _getFiles() because it can not 
find the element in _files



Right now I’m using the patch below (which is making use of the 
$noexception arg to avoid the exception) and it is working ok:



Zend_Form_Element_File::getValue()
// @line 643
$content = 
current($this->getTransferAdapter()->getFileInfo($this->getName(), true));


And

Zend_File_Transfer_Adapter_Abstract
// @line 886
public function getFileInfo($file = null, $noexception = false)
{
   return $this->_getFiles($file, false, $noexception);
}


Thomas Weidner a écrit :

Laurent,

getValues does NOT access $_FILES.
This you have misunderstood. The $_FILES array is used as input for 
the transfer adapter. But again, it does not work with the $_FILES 
array. The internal representation of the data is different to $_FILES.


So you said that you are not displaying the form but do this yourself.
As long as you are following the syntax of the HTTP file element it 
should work.
But when you use subforms or multifiles and are not using the file 
decorator you must do the normalisation manually.


This exception you are referring to does simply say:
The file element you requested is not defined, nor is it a filename or 
a temporary name... I don't know which data you want to work with.


As you gave no details it's hard to say something specific to this 
problem.


Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com

- Original Message - From: "Laurent Melmoux" <[EMAIL PROTECTED]>
To: "Zend Framework General" 
Sent: Wednesday, December 03, 2008 3:01 PM
Subject: [fw-general] Zend_Form + Zend_File_Transfer issue with 
Zend_Form::getValues()




Hi guys, Matthew, Thomas,

I’m giving a try to Zend_Form + Zend_File_Transfer and I’m facing a 
issue with Zend_Form_Element_File::getValue()


I’m not using Zend_Form to renders my forms.
Before displaying the form (on create or update) I populate it with 
default values or values from the db and then I’m using 
Zend_Form::getValues() to pass form values to the view.


But here with files element Zend_Form_Element_File::getValue() try to 
access the global $_FILES and as no form has been submitted yet an 
exception thrown :


throw new Zend_File_Transfer_Exception(sprintf('"%s" not found by 
file transfer adapter', $find));


See :
Zend_File_Transfer_Adapter_Abstract ::getFileInfo($file = null)
Zend_File_Transfer_Adapter_Abstract ::_getFiles($files, $names = 
false, $noexception = false)


Is it a issue or am I using incorrectly Zend_Form + Zend_File_Transfer ?

Regards,

--
Laurent Melmoux
Conseil et Solutions Web | [EMAIL PROTECTED]
2mx - Annecy, France | http://laurent.2mx.fr/ 





--
Laurent Melmoux
Conseil et Solutions Web | [EMAIL PROTECTED]
2mx - Annecy, France | http://laurent.2mx.fr/
Tél. | +33 (0)9 74 53 10 40



[fw-general] Best Practices Question

2008-12-03 Thread netlynx

I have been reading through the documentation and many tutorials around the
web, and one tutorial got me asking the question ‘where does this really
belong’.

The tutorial in specific was on Akra’s DevNotes (Rob, if you are reading
this, your  tutorials are AWESOME!), titled : Getting Started with Zend_Auth
(http://akrabat.com/zend-auth-tutorial/)

The question that came to mind is Rob is checking for an identity in the
preDispatch() method of the action controller --
Zend_Auth::getInstance()->hasIdentity() --, and I am wondering if this
wouldn’t be better located in the init() method of the action controller?

I guess what it really comes down to is without poking through the Zend
Framework source code and api documentation too much, what ‘order’ does
things happen in, and what are the best practices of what should go into the
different methods.  Is there some kind of quick descriptions or maybe an
application flow diagram of some sort that has been put together showing
this?

Thanks
Aaron Murray

-- 
View this message in context: 
http://www.nabble.com/Best-Practices-Question-tp20805394p20805394.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Zend_Amf, class mapping ObjectProxy

2008-12-03 Thread Kerkness

I'm playing around with Zend_Amf and for the most part things work smoothly. 
I am having issues trying to fully map one Object model.  In the flex
application I use and ObjectProxy to track changes to an ObjectModel which
has binding to a collection of input components.

When passing this Object back to Zend_Amf, I get the following exception
error..

Uncaught exception 'Zend_Amf_Exception' with message 'Unable to parse null
body data flex.messaging.io.ObjectProxy mapped class  is not defined' in
/home/artmoi/library/Zend/Amf/Request.php:174

I find it odd that I am getting this error because I am passing back the
original object NOT the result of  ObjectProxy.copy( ) with which the form
has binding to.

I did get a previous exception which said that the mapped class
flex.messaging.io.ArrayCollection was not defined.  This error I fixed by
creating an ArrayCollection class in PHP and adding
$server->setClassMap('ArrayCollection','flex.messaging.io.ArrayCollection');  
to my bootstrap file. I have been unsuccessful trying to solve the mapping
to ObjectProxy the same way.

Anyone have suggestions of defining an ObjectProxy class in PHP ??
-- 
View this message in context: 
http://www.nabble.com/Zend_Amf%2C-class-mapping-ObjectProxy-tp20800232p20800232.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Zend Form: Dynamic/Chained select boxes

2008-12-03 Thread lmcosorio

Hi!

I've been looking up and down for some example regarding dynamic/linked
select boxes with Zend_Form. I have a form that when the user clicks on the
country select box, an other select box should display all cities belonging
to this country.
Can someone share some way to accomplish this?

Thanks,

Luis


gigantorTRON wrote:
> 
> I've searched through the forums here and was surprised that I couldn't
> find much information about creating dynamic select boxes within zend
> form. 
> 
> What I need is a basic country->populate states setup, where a text field
> is provided (or enabled) if any country other than US or Canada is
> selected.
> 
> What's the best approach to this?
> 
> Thanks.
> 

-- 
View this message in context: 
http://www.nabble.com/Zend-Form%3A-Dynamic-Chained-select-boxes-tp20099459p20803880.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Zend_Dojo vs Prototype

2008-12-03 Thread Marc Grue


Matthew Weier O'Phinney-3 wrote:
> 
> Look into dojo.xhr:
> 
>
> http://dojotoolkit.org/book/dojo-book-0-9/part-3-programmatic-dijit-and-dojo/ajax-transports
> 
> There's not a direct equivalent to Ajax.Updater, but it's trivial to use
> dojo.place to inject the content into your DOM via a load callback.
> 

Thanks for the link and guidance, Matthew!

I messed around with the dojo.xhr parts and found a solution that worked
(sending a form) but wasn't as elegant as my old prototype way (sending
var/value pairs). I have included both below if somebody can use them.

When debugging in firefow, I also noticed that the dojo library loaded a
long list of files taking up some time whereas the prototype library was
only one file. I certainly don't want to say that "dojo is better than
prototype" - I have way to little knowledge about both libraries, but I
wonder if the "overhead" could be avoided when loading the dojo libraries
(using 1 file?)?

I have some follow-up questions:
How can I get the response back from the action in my controller and
'cancel' all other aggregated content in the view? Do I have to use
contextSwitch action helper somehow, or am I on the wrong track?
Embarrasing: for now I do an *ugly* die($content) to just abort and echo the
data back.

I'm also sending a format variable with the ajax call to determine in my
action if I should send back the result to an ajax call or if it's a
'normal' request where all subsequent actions should carry out and build the
whole page. But shouldn't I be able to detect an ajax call without the
format variable?!


DOJO SOLUTION (in view script) ===
... load dojo libraries ...
Replace the content in myBox

Old content...


PROTOTYPE SOLUTION (in view script) ==
... load prototype libraries ...
Replace the content in
myBox

Old content...

-- 
View this message in context: 
http://www.nabble.com/Zend_Dojo-vs-Prototype-tp20757810p20803325.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] _redirect + _helper->url => baseUrl x2

2008-12-03 Thread ardx



Jason Webster wrote:
> 
> You can call setPrependBase(true) on the redirector action helper, and 
> it should fix your problem.
> 
> 

Thank you both for your responses.

It appears that setting prependBase to false fixes the problem if '$url' is
already fully constructed (e.g., taken from $this->_request->getRequestUri):

$this->_redirect($url, array('prependBase' => false));

But if constructing a redirect url from action/controller/module/params
components it does appear simpler to use $this->_helper->redirector rather
than use the url helper to construct the url and then feed it to _redirect.

-- 
View this message in context: 
http://www.nabble.com/_redirect-%2B-_helper-%3Eurl-%3D%3E-baseUrl-x2-tp20764995p20794408.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] logging offending queries

2008-12-03 Thread Ralikwen

Hi,
is there a generic way to log all database calls from ZF? Or log all db
errors?

I know that I can use the profiler - I use it with Firebug and it works
nicely with successful queries - but gives me no help when a db error
occurs.
When a db error occurs I would like to see the offending statement without
having to write spec code to every db call. Even the stack trace could help
if only it displayed the whole sql statement instead of just the beginning
of it. I searched quite a lot now but couldn't find an example of a generic
way to log sql statement or even sql errors.

How would you do this?

Thanks for the help.
SWK
-- 
View this message in context: 
http://www.nabble.com/logging-offending-queries-tp20800359p20800359.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Help with Zend_Soap_AutoDiscover and array of complex types

2008-12-03 Thread krytie

Hi,

How would I go about defining an array of complex types as a property of
another complex type? The code below gives me the error.

"Cannot add a complex type MyComplexTypeB[] that is not an object or where
class could not be found in 'DefaultComplexType' strategy."


function wsdlAction(){
$autodiscover = new
Zend_Soap_AutoDiscover('Zend_Soap_Wsdl_Strategy_ArrayOfTypeComplex');
$autodiscover->setClass('MyClass');
$autodiscover->handle();
}



class MyComplexTypeB{
/**
 * @var string
 */
public $FirstName;
/**
 * @var string
 */
public $LastName;
}


class MyComplexTypeA{
/**
 * @var MyComplexTypeB[]
 */
public $Answers=array();
}


class MyClass{
/**
* @param MyComplexTypeA 
* @return MyComplexTypeB[]   
*/
function testRequest($request){}
}

It appears to be ignoring the Strategy that I set, when dealing with
properties of complex types.

Thanks


-- 
View this message in context: 
http://www.nabble.com/Help-with-Zend_Soap_AutoDiscover-and-array-of-complex-types-tp20806905p20806905.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Problems with View Helpers with update 1.5.1 to 1.7.1

2008-12-03 Thread kabel2

I had  a stable application put together using a layout and view setup in
Zend Framework 1.5.1. I noticed some improvements to the a particular view
helper in ZF 1.7.1, so I thought I would be a simple transition just to
update the library directory with the new Zend. With the updated version of
ZF I now get the following exception:

Fatal error:  Uncaught exception 'Zend_Loader_PluginLoader_Exception' with
message 'Plugin by name 'Layout' was not found in the registry; used paths:
Config_View_Helper_: C:/Program Files/Apache Software
Foundation/Apache2.2/htdocs/mbm/app/modules/config/views\helpers/
Zend_View_Helper_: Zend/View/Helper/' in C:\Program Files\Apache Software
Foundation\Apache2.2\htdocs\mbm\lib\Zend\Loader\PluginLoader.php:386
Stack trace:
#0 C:\Program Files\Apache Software
Foundation\Apache2.2\htdocs\mbm\lib\Zend\View\Abstract.php(1067):
Zend_Loader_PluginLoader->load('Layout')
#1 C:\Program Files\Apache Software
Foundation\Apache2.2\htdocs\mbm\lib\Zend\View\Abstract.php(545):
Zend_View_Abstract->_getPlugin('helper', 'layout')
#2 C:\Program Files\Apache Software
Foundation\Apache2.2\htdocs\mbm\lib\Zend\View\Abstract.php(312):
Zend_View_Abstract->getHelper('layout')
#3 [internal function]: Zend_View_Abstract->__call('layout', Array)
#4 C:\Program Files\Apache Software
Foundation\Apache2.2\htdocs\mbm\skin\layouts\fixed.phtml(44): Zend_View in
C:\Program Files\Apache Software
Foundation\Apache2.2\htdocs\mbm\lib\Zend\Loader\PluginLoader.php on line
386

I have no idea why I'm getting this error, as the Layout helper does exist
and, yes, it is in my include path.

The call that is causing this error starts in my default layout file:
echo $this->layout()->content
That was taken right from the documentation wiki, so I'm lost.

Please help!
-- 
View this message in context: 
http://www.nabble.com/Problems-with-View-Helpers-with-update-1.5.1-to-1.7.1-tp20807841p20807841.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Best Practices Question

2008-12-03 Thread Simon Corless



netlynx wrote:
> 
> The question that came to mind is Rob is checking for an identity in the
> preDispatch() method of the action controller --
> Zend_Auth::getInstance()->hasIdentity() --, and I am wondering if this
> wouldn’t be better located in the init() method of the action controller?
> 
> I guess what it really comes down to is without poking through the Zend
> Framework source code and api documentation too much, what ‘order’ does
> things happen in, and what are the best practices of what should go into
> the different methods.  Is there some kind of quick descriptions or maybe
> an application flow diagram of some sort that has been put together
> showing this?
> 

I would personally put this in a plugin so that you didn't have to mess with
your actions, that way the site and feature should work whether you have
auth or not (i.e. as different situations may arise).

It's specified in the manual under plugins and controllers (I believe) as to
what order the calls are made, but also someone did a chart the other day
which is here: 

http://www.nabble.com/Graph-showing-Action-Helpers,-Plugins-and-Controllers-lifecycle-along-dispatch-td20304504.html#a20613357

Or directly:

http://surlandia.com/2008/11/03/zend-framework-plugins-action-helpers-and-controllers-life-cycle-during-dispatch/

Which I think you will find very useful.

Simon

-
Simon

http://www.ajb007.co.uk/
-- 
View this message in context: 
http://www.nabble.com/Best-Practices-Question-tp20805394p20808898.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] zend form adderror and isvalid

2008-12-03 Thread Borje


Matthew Weier O'Phinney-3 wrote:
> 
> -- Samuel Verdier <[EMAIL PROTECTED]> wrote
> (on Tuesday, 05 August 2008, 03:43 PM +0200):
>> In use addError('test');
>> 
>> And : $form->isValid($formData); retour true.
>> 
>> Is this normal?
> 
> Yes. The use case for addError() is to add an error message to the
> element or form. isValid() is for validating the various form elements.
> Adding an error message is not indicative of the actual validations
> performed.
> 
This I find rather confusing. Zend_Form_Element::addError() has the
following description: "Add an error message and mark element as failed
validation". This implies that Zend_Form_Element::addError() also sets the
element to fail validation. The method Zend_Form_Element::addErrorMessage()
on the other hand has the following description: "Add a custom error message
to return in the event of failed validation" Which seems to be a more
accurate description of what you explained.
On another note, Zend_Form::addError() and Zend_Form::addErrorMessage() has
the same descriptions with the word "element" in them, which makes the
matter even more confusing.
And to make matters even a bit worse, Zend_Form_Element::addError() calls
Zend_Form_Element::markAsError() which has the following description: "Mark
the element as being in a failed validation state".
This leads me to believe that addError() was meant to actually make
validation fail, but that doesn't seem to be the case.
-- 
View this message in context: 
http://www.nabble.com/zend-form-adderror-and-isvalid-tp18831361p20811967.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Friendly URLs

2008-12-03 Thread Michał Zieliński

Thanks Matt.

I create route like this:
routes.x.type = "Zend_Controller_Router_Route_Regex"
routes.x.route = "(.*)"
routes.x.defaults.module = "default"
routes.x.defaults.controller = "section"
routes.x.defaults.action = "load"
routes.x.map.1 = "path"

For uri like /about/history/1999/
I get output like:
array(4) {
  ["path"] => string(2) "about/history/1999"
  ["module"] => string(7) "default"
  ["controller"] => string(5) "section"
  ["action"] => string(5) "load"
}

So it is fine, I can easily load appropriate site section (section: about,
subsection: history, subsubsection: 1999).

But if I have a defined controller like subscription, or different module
like admin I can`t use them. I could redirect to it from within
SectionController::loadAction where every request goes but it isn`t the best
solution I believe.

I was thinking about plugin which could decide if additional routing is
needed or maybe custom route but (in both options) at the moment when routes
are loaded I guess front controller methods like getModuleName or
getControllerName don`t exist or return null. So I`m not sure how could I
make this decision (if controller exists load it, else use route regex like
"(.*)".

How it should be done?

@edit
looking at the errorHandler plugin I see that this approach could also be
used:


switch ($exceptionType) {
case 'Zend_Controller_Dispatcher_Exception':
$error->type = self::EXCEPTION_NO_CONTROLLER;
break;


So I could write similar plugin for this or basically use
ErrorController::errorAction to handle the logic for retriving section from
db. However, I don`t know if this plugin (errorAction method) was designed
to play such role.
I could also try to catch dispatch exception in my app index.php file like
this:


$fc = Zend_Controller_Front::getInstance();
try {
  $fc->dispatch();
} catch  (Zend_Controller_Dispatcher_Exception $e) {
  // create router with additional route "(.*)"
  $fc->setRouter($router);
  $fc->dispatch();
} catch (Exception $e) {
  // ...
}


However, I don`t know if this approach is recommended because according to
quickstart tutorial I guess front controller configuration (and other config
as well) should be in bootstrap file. Index.php should only launch dispatch.
Again, what`s your opinion?
-- 
View this message in context: 
http://www.nabble.com/Friendly-URLs-tp6055801p20808404.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Cannot redeclare class Zend_form without opcode caching

2008-12-03 Thread OldStyle

Hello Community,

I turning to you after many hours of head scratching and frustration. I have
a site developed using PHP, ZendFramework, MySQL and Apache. The site uses
Zend_Form extensively to process forms. The code all executes without issue
on my Local, development, and staging server. However when I deploy the code
to my production environment I am receiving the following error when calling
pages with forms.

Fatal error: Cannot redeclare class Zend_Form

I'm running PHP 5.2.6 installed via a FreeBSD port.

I'm not running any opcode caches to the best of my knowledge. However it
has all the appearance of being a caching issue. Any thoughts on what could
be causing this issue? Apache restarts doing nothing to correct the issue.
I'm at the point of rebuilding PHP without using the FreeBSD port to remove
he possibility of something in the port is causing opcode caching. I'm
hoping you all can help before going down that path.

Thanks in advance.
-- 
View this message in context: 
http://www.nabble.com/Cannot-redeclare-class-Zend_form-without-opcode-caching-tp20794504p20794504.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] QUestion about jQuery ajaxLink- can anyone take a look on this please?

2008-12-03 Thread vladimirn

Anyone pls?

-- 
View this message in context: 
http://www.nabble.com/QUestion-about-jQuery-ajaxLink--can-anyone-take-a-look-on-this-please--tp20732925p20795245.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] AjaxLink in Zend_Dojo

2008-12-03 Thread vladimirn

Is there any way to have same functionality which ajaxLink provide, but in
Zend Dojo?
Thanks,
V
-- 
View this message in context: 
http://www.nabble.com/AjaxLink-in-Zend_Dojo-tp20795432p20795432.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] zend dojo form in View script

2008-12-03 Thread Matthew Weier O'Phinney
-- Superbiji » <[EMAIL PROTECTED]> wrote
(on Wednesday, 03 December 2008, 06:31 PM +0700):
> i've tried to create zend dojo form in Action and it's work nicely
> (using ZF 1.7.1), for example:
> 
>   function dojoformAction() {
>   Zend_Dojo::enableView($this->view);
> 
>   $form = new Zend_Dojo_Form();
>   $form->setMethod("post");
>   $form->setAction("save")
>   ->setName("myform");
> 
>   $form->addElement('TextBox', "location", 
> array("label"=>"Location",
>   'propercase' => 1   
>   ));
>$form->addElement('SubmitButton',
> 'submit',array('label'=>'Submit'));
>   $this->view->form = $form;
>  }
> and echoing in view script;
> 
> But.. how to create zend dojo form in View script?  I want "free form"
> placement of elements.. and i can't see $view->form->captureStart()
> method

Use the ViewScript decorator with your form. With that decorator, you
specify a view script for your form -- and then in your action's view
script, you still just do:

form ?>

The difference is that this will render the view script associated with
the decorator -- and from there, you can do things like you have below.

> for example, in view:
> form()->start() ?>
> textbox("text1", "value", array()) ?>
> textbox("text2", "value", array()) ?>
> submitbutton("submit") ?>  $this->submitbutton("cancel") ?>
>  $this->form()->end();
> $this->form()->prefillDefaultValues( $this->rows );
> ?>
> 
> Is this possible..? thanks
> 
> 
> -- 
> Kamus Online - http://kamus.landak.com/
> 

-- 
Matthew Weier O'Phinney
Software Architect   | [EMAIL PROTECTED]
Zend Framework   | http://framework.zend.com/


Re: [fw-general] zend form adderror and isvalid

2008-12-03 Thread Borje



Matthew Weier O'Phinney-3 wrote:
> 
> -- Samuel Verdier <[EMAIL PROTECTED]> wrote
> (on Tuesday, 05 August 2008, 03:43 PM +0200):
>> In use addError('test');
>> 
>> And : $form->isValid($formData); retour true.
>> 
>> Is this normal?
> 
> Yes. The use case for addError() is to add an error message to the
> element or form. isValid() is for validating the various form elements.
> Adding an error message is not indicative of the actual validations
> performed.
> 
This I find rather confusing. Zend_Form_Element::addError() has the
following description: "Add an error message and mark element as failed
validation". This implies that Zend_Form_Element::addError() also sets the
element to fail validation. The method Zend_Form_Element::addErrorMessage()
on the other hand has the following description: "Add a custom error message
to return in the event of failed validation" Which seems to be a more
accurate description of what you explained.
On another note, Zend_Form::addError() and Zend_Form::addErrorMessage() has
the same descriptions with the word "element" in them, which makes the
matter even more confusing.
And to make matters even a bit worse, Zend_Form_Element::addError() calls
Zend_Form_Element::markAsError() which has the following description: "Mark
the element as being in a failed validation state".
This leads me to believe that addError() was meant to actually make
validation fail, but that doesn't seem to be the case.
-- 
View this message in context: 
http://www.nabble.com/zend-form-adderror-and-isvalid-tp18831361p20813921.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Overriding Zend_Loader::loadClass()

2008-12-03 Thread Matthew Weier O'Phinney
-- Jack Sleight <[EMAIL PROTECTED]> wrote
(on Tuesday, 02 December 2008, 05:32 PM +):
> The second problem is that at present, it is not possible to use your
> own class loader with ZF (which is something I want to do). This is
> because there are many calls to Zend_Loader::loadClass() hard coded
> within various ZF components. To solve this the script will replace
> all such calls with spl_autoload_call, allowing you to use any class
> loader you like.
> 
> However, there is one last problem with using your own class loader.
> There are still some components of ZF that rely on the ZF library path
> to be in the PHP include_path, but if you're using your own class
> loader there's no reason to assume the ZF path will be in the
> include_path. These problem components are Zend_Cache,
> Zend_Loader_PluginLoader and Zend_Memory, and the script will "fix"
> these calls so that they also use spl_autoload_call.

Jack, would you be interested in helping refactor these components to
make them play nicely with third party libraries?

-- 
Matthew Weier O'Phinney
Software Architect   | [EMAIL PROTECTED]
Zend Framework   | http://framework.zend.com/


Re: [fw-general] Zend_Form + Zend_File_Transfer issue with Zend_Form::getValues()

2008-12-03 Thread Thomas Weidner

Laurent,

getValues does NOT access $_FILES.
This you have misunderstood. The $_FILES array is used as input for the 
transfer adapter. But again, it does not work with the $_FILES array. The 
internal representation of the data is different to $_FILES.


So you said that you are not displaying the form but do this yourself.
As long as you are following the syntax of the HTTP file element it should 
work.
But when you use subforms or multifiles and are not using the file decorator 
you must do the normalisation manually.


This exception you are referring to does simply say:
The file element you requested is not defined, nor is it a filename or a 
temporary name... I don't know which data you want to work with.


As you gave no details it's hard to say something specific to this problem.

Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com

- Original Message - 
From: "Laurent Melmoux" <[EMAIL PROTECTED]>

To: "Zend Framework General" 
Sent: Wednesday, December 03, 2008 3:01 PM
Subject: [fw-general] Zend_Form + Zend_File_Transfer issue with 
Zend_Form::getValues()




Hi guys, Matthew, Thomas,

I’m giving a try to Zend_Form + Zend_File_Transfer and I’m facing a issue 
with Zend_Form_Element_File::getValue()


I’m not using Zend_Form to renders my forms.
Before displaying the form (on create or update) I populate it with 
default values or values from the db and then I’m using 
Zend_Form::getValues() to pass form values to the view.


But here with files element Zend_Form_Element_File::getValue() try to 
access the global $_FILES and as no form has been submitted yet an 
exception thrown :


throw new Zend_File_Transfer_Exception(sprintf('"%s" not found by file 
transfer adapter', $find));


See :
Zend_File_Transfer_Adapter_Abstract ::getFileInfo($file = null)
Zend_File_Transfer_Adapter_Abstract ::_getFiles($files, $names = false, 
$noexception = false)


Is it a issue or am I using incorrectly Zend_Form + Zend_File_Transfer ?

Regards,

--
Laurent Melmoux
Conseil et Solutions Web | [EMAIL PROTECTED]
2mx - Annecy, France | http://laurent.2mx.fr/ 




[fw-general] Zend_Form + Zend_File_Transfer issue with Zend_Form::getValues()

2008-12-03 Thread Laurent Melmoux

Hi guys, Matthew, Thomas,

I’m giving a try to Zend_Form + Zend_File_Transfer and I’m facing a 
issue with Zend_Form_Element_File::getValue()


I’m not using Zend_Form to renders my forms.
Before displaying the form (on create or update) I populate it with 
default values or values from the db and then I’m using 
Zend_Form::getValues() to pass form values to the view.


But here with files element Zend_Form_Element_File::getValue() try to 
access the global $_FILES and as no form has been submitted yet an 
exception thrown :


throw new Zend_File_Transfer_Exception(sprintf('"%s" not found by file 
transfer adapter', $find));


See :
Zend_File_Transfer_Adapter_Abstract ::getFileInfo($file = null)
Zend_File_Transfer_Adapter_Abstract ::_getFiles($files, $names = false, 
$noexception = false)


Is it a issue or am I using incorrectly Zend_Form + Zend_File_Transfer ?

Regards,

--
Laurent Melmoux
Conseil et Solutions Web | [EMAIL PROTECTED]
2mx - Annecy, France | http://laurent.2mx.fr/



[fw-general] zend dojo form in View script

2008-12-03 Thread Superbiji »
Hi..
i've tried to create zend dojo form in Action and it's work nicely
(using ZF 1.7.1), for example:

function dojoformAction() {
Zend_Dojo::enableView($this->view);

$form = new Zend_Dojo_Form();
$form->setMethod("post");
$form->setAction("save")
->setName("myform");

$form->addElement('TextBox', "location", 
array("label"=>"Location",
'propercase' => 1   
));
   $form->addElement('SubmitButton',
'submit',array('label'=>'Submit'));
  $this->view->form = $form;
 }
and echoing in view script;

But.. how to create zend dojo form in View script?  I want "free form"
placement of elements.. and i can't see $view->form->captureStart()
method
for example, in view:
form()->start() ?>
textbox("text1", "value", array()) ?>
textbox("text2", "value", array()) ?>
submitbutton("submit") ?> submitbutton("cancel") ?>
form()->end();
$this->form()->prefillDefaultValues( $this->rows );
?>

Is this possible..? thanks


-- 
Kamus Online - http://kamus.landak.com/


Re: [fw-general] Overriding Zend_Loader::loadClass()

2008-12-03 Thread Jack Sleight
Hi Till,
Yeah, I should probably write some more details about the script, will
do a blog post when I get a chance. Basically the script solves two
problems.

Firstly, as you may have seen, there's been a lot of discussion about
removing all the require_once statements from ZF, in order to improve
performance. The script will remove all of these calls, which will of
course mean you have to use an autoloader.

The second problem is that at present, it is not possible to use your
own class loader with ZF (which is something I want to do). This is
because there are many calls to Zend_Loader::loadClass() hard coded
within various ZF components. To solve this the script will replace
all such calls with spl_autoload_call, allowing you to use any class
loader you like.

However, there is one last problem with using your own class loader.
There are still some components of ZF that rely on the ZF library path
to be in the PHP include_path, but if you're using your own class
loader there's no reason to assume the ZF path will be in the
include_path. These problem components are Zend_Cache,
Zend_Loader_PluginLoader and Zend_Memory, and the script will "fix"
these calls so that they also use spl_autoload_call.

When I said "fix" I didn't mean ZF was broken, only that it doesn't
work when you want to use it in this way.

I posted details of my class loader earlier in this thread if you're interested.


Re: [fw-general] Zend Framework 1.7.1 is now available!

2008-12-03 Thread Matthew Weier O'Phinney
-- Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote
(on Monday, 01 December 2008, 11:50 PM -0500):
> -- Jordan Moore <[EMAIL PROTECTED]> wrote
> (on Monday, 01 December 2008, 08:24 PM -0800):
> > The route that fails is as follows:
> > 
> > 
> >   
> > Zend_Controller_Router_Route_Static
> > 
> > 
> >   homepage
> > 
> >   
> >   ...
> > 
> > 
> > The only configuration-type changes I make to the front controller is
> > setting the default module to "public" and turning on
> > "prefixDefaultModule". I'm not removing default routes.
> 
> Okay, I've verified this, and will look into it more closely first thing
> in the morning. However, I have one caveat: not providing a default for
> the controller parameter in your route -- paticularly in static routes
> -- is a bad practice, and one we have certainly never intended to
> support. (I would have expected the above to fail previously, to be
> quite honest.) That said, I will look to see if there is a solution that
> addresses both the issue report for which the solution broke your code
> as well as your own use case.
> 
> In the meantime, setting the 'useDefaultControllerAlways' front
> controller parameter to true in your bootstrap:
> 
> $front->setParam('useDefaultControllerAlways', true);
> 
> is a quick fix for your situation.

I've discussed this with several others, and we all feel that this
particular case represents both an edge case *and* bad usage of static
routes. Static routes should always minimally define the controller and
action parameters as default values; without this information, the
dispatcher simply does not have enough information to choose the correct
dispatchable. 

I have created an issue, ZF-5140, to track the addition of a note to
this effect in the manual.


> > Also, every other route that is identical to the above route (with the
> > exception of the route path) fails to be routed (i.e., is routed to
> > the default controller/action). If you need entire list of routes, I'd
> > prefer to take this correspondence off of the mailing list.
> > 
> > On Mon, Dec 1, 2008 at 7:41 PM, Matthew Weier O'Phinney
> > <[EMAIL PROTECTED]> wrote:
> > > -- Jordan Moore <[EMAIL PROTECTED]> wrote
> > > (on Monday, 01 December 2008, 07:02 PM -0800):
> > >> Sorry for the delayed response.
> > >>
> > >> Apparently this was happening because I wasn't specifying the
> > >> controller for that route (it previously defaulted to "index"). This
> > >> seems like a significant change for a mini release.
> > >
> > > Yes, it is a significant jump for a mini-release, but I *need* a
> > > reproduce case so I can understand exactly what has changed. Can you
> > > please provide this?
> > >
> > > The issue you reference, ZF-3465, was a fix for when the *default*
> > > routes are removed -- and you have not indicated if your situation falls
> > > under that umbrella or otherwise. I need a reproduce case -- your set of
> > > routes, and the specific route that fails -- so that I can determine the
> > > scope of the change and whether a rollback is necessary, a patch to the
> > > changeset, or if it's a documentation issue.
> > >
> > >
> > >> On Mon, Dec 1, 2008 at 6:21 PM, Matthew Weier O'Phinney
> > >> <[EMAIL PROTECTED]> wrote:
> > >> > -- Jordan Moore <[EMAIL PROTECTED]> wrote
> > >> > (on Monday, 01 December 2008, 02:52 PM -0800):
> > >> >> Removing the 3 lines of code in Zend_Controller_Request_Abstract that
> > >> >> reference ZF-3465 fixes it.
> > >> >
> > >> > Still need the static route that triggers the issue... I'd rather have
> > >> > *both* issues resolved, not just one ;)
> > >> >
> > >> >> On Mon, Dec 1, 2008 at 2:10 PM, Jordan Moore <[EMAIL PROTECTED]> 
> > >> >> wrote:
> > >> >> > I've got a couple of apps with a static route that is an empty 
> > >> >> > string.
> > >> >> > This route is used for the base of the domain ("/"). After upgrading
> > >> >> > to 1.7.1, the route no longer matches requests for the base of the
> > >> >> > domain.
> > >> >> >
> > >> >> > On Mon, Dec 1, 2008 at 1:54 PM, Wil Sinclair <[EMAIL PROTECTED]> 
> > >> >> > wrote:
> > >> >> >> Hi all,
> > >> >> >>
> > >> >> >> It is my pleasure to announce the release of Zend Framework 1.7.1! 
> > >> >> >> You
> > >> >> >> can download this new mini release from the ZF download site:
> > >> >> >>
> > >> >> >> http://framework.zend.com/download/latest/
> > >> >> >>
> > >> >> >> A list of all issues resolved in this release can be found at:
> > >> >> >>
> > >> >> >> http://framework.zend.com/issues/secure/views/IssueNavigator.jspa?reques
> > >> >> >> tId=10912
> > >> >> >>
> > >> >> >> We'd like to once again thank our generous Zend Framework 
> > >> >> >> contributors
> > >> >> >> for all the effort they have put in to this release and the 
> > >> >> >> project as a
> > >> >> >> whole. Enjoy!
> > >> >
> > >> > --
> > >> > Matthew Weier O'Phinney
> > >> > Software Architect   | [EMAIL PROTECTED]
> > >> > Zend Framework   | http://framework.zend.com

[fw-general] ZF Blogs/Tweets

2008-12-03 Thread Wil Sinclair
As some of you are probably already aware, Matthew and I invest quite a
lot of time in reading both blogs and tweets on Twitter about Zend
Framework. I can say personally that this has been a particularly
educational and rewarding activity for me. Unfortunately, the volume of
the blogs/tweets has increased to the point where I can't reply every
time I'd like to. That's where I hope people in the community can help.
If you're interested in catching Zend Framework content (and hopefully
commenting/replying), you might consider setting up the following:

* Go to http://search.twitter.com/ and search for either 'Zend
Framework' (many people are referring to ZF without the 'framework'
part- esp. with the 140 char limit- so you'll miss some) or 'Zend'
(you're likely to pick up all Zend products, Zend engine, and I think
there may be a word 'zend' in Dutch from some of the results I see. :))
There is a link for an RSS feed on the results page that you can add to
your feed reader.

* Do the same on http://www.technorati.com/. Developer blogs aren't
always widely read, so I pick 'with any authority' in the advanced
options. Again there is an RSS link on the results page.

Please let me know if you have any questions or additional suggestions
on how to get to the latest ZF content on the web. And, please, if you
could help us help any of these people, we'd *really* appreciate it.

,Wil