[fw-general] Re: Internal Server Error after redirect

2012-12-27 Thread Yves
Ok, I followed this article [ 
http://www.egometry.com/gruedorf/request-exceeded-the-limit-of-10-internal-redirects-due-to-probable-configuration-error/

  
] and changed my .htaccess in my public directory according to this source [ 
http://stackoverflow.com/questions/1611506/request-exceeded-the-limit-of-10-internal-redirects-due-to-probable-configuratio

  
].

No go :)



--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Internal-Server-Error-after-redirect-tp4658605p4658608.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com




[fw-general] Re: Internal Server Error after redirect

2012-12-27 Thread Yves
This is what I have for Zend\Apache2\logs\access.log:
http://bin.cakephp.org/view/1851577096

This is what I have for Zend\Apache2\logs\error.log:
http://bin.cakephp.org/view/192134298

What should I be looking for?

On Thu, Dec 27, 2012 at 11:04 AM, jsundquist [via Zend Framework Community]
 wrote:

> What does it say within your error log?
>
>
> On Thu, Dec 27, 2012 at 9:51 AM, Yves S. Garret
> <[hidden email] >wrote:
>
>
> > Happy holidays!
> >
> > Here is a particularly annoying problem.  This is my view, controller
> and
> > form (which display just fine):
> >
> > index.phtml
> > http://bin.cakephp.org/view/1236898095
> >
> > IndexController.php
> > http://bin.cakephp.org/view/495146004
> >
> > Input.php
> > http://bin.cakephp.org/view/78459877
> >
> > Now, when you click on "Submit", I'm expecting -- at the very least --
> some
> > sort of result on the next page in units.phtml.  Instead, I'm getting an
> > "internal server error":
> >
> > This is my view (the form and controller are the same as above):
> >
> > units.phtml
> > http://bin.cakephp.org/view/2100618727
> >
> > If someone could give me a clue as to why I'm getting this, I'd really
> > appreciate it.
> >
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://zend-framework-community.634137.n4.nabble.com/Internal-Server-Error-after-redirect-tp4658605p4658606.html
>  To start a new topic under Zend Framework, email
> ml-node+s634137n634138...@n4.nabble.com
> To unsubscribe from Zend Framework Community, click 
> here
> .
> NAML
>




--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Internal-Server-Error-after-redirect-tp4658605p4658607.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Re: [fw-general] Internal Server Error after redirect

2012-12-27 Thread Jonathan Sundquist
What does it say within your error log?


On Thu, Dec 27, 2012 at 9:51 AM, Yves S. Garret
wrote:

> Happy holidays!
>
> Here is a particularly annoying problem.  This is my view, controller and
> form (which display just fine):
>
> index.phtml
> http://bin.cakephp.org/view/1236898095
>
> IndexController.php
> http://bin.cakephp.org/view/495146004
>
> Input.php
> http://bin.cakephp.org/view/78459877
>
> Now, when you click on "Submit", I'm expecting -- at the very least -- some
> sort of result on the next page in units.phtml.  Instead, I'm getting an
> "internal server error":
>
> This is my view (the form and controller are the same as above):
>
> units.phtml
> http://bin.cakephp.org/view/2100618727
>
> If someone could give me a clue as to why I'm getting this, I'd really
> appreciate it.
>


[fw-general] Internal Server Error after redirect

2012-12-27 Thread Yves S. Garret
Happy holidays!

Here is a particularly annoying problem.  This is my view, controller and
form (which display just fine):

index.phtml
http://bin.cakephp.org/view/1236898095

IndexController.php
http://bin.cakephp.org/view/495146004

Input.php
http://bin.cakephp.org/view/78459877

Now, when you click on "Submit", I'm expecting -- at the very least -- some
sort of result on the next page in units.phtml.  Instead, I'm getting an
"internal server error":

This is my view (the form and controller are the same as above):

units.phtml
http://bin.cakephp.org/view/2100618727

If someone could give me a clue as to why I'm getting this, I'd really
appreciate it.


Re: [fw-general] Adding full stops at the end of validation messages - trouble?

2012-12-27 Thread Ralf Eggert
Hi Andreas,

currently I use this code in a ListenerAggregate class to add the
translations for validators:

$baseDir = APPLICATION_ROOT . '/module/Application/language';

$translator = Translator::factory(array(
'locale'=> 'de',
'translation_file_patterns' => array(
array(
'type'=> 'phpArray',
'base_dir'=> $baseDir,
'pattern' => 'Zend_Validate.php',
'text_domain' => 'default',
),
)
));

AbstractValidator::setDefaultTranslator($translator);


The Zend_Validate.php file is the one from the /resources path within
the ZF2 installation under /vendor. It is quite handy just to copy the
needed translation files for all validators.

The problem I see with your gist is that I need to set the messages for
every validator I usw. With AbstractValidator::setDefaultTranslator() I
can set it a central point and I only need to overwrite such messages
which are to technical and hard to understand for end users.

Regards,

Ralf

-- 
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com




[fw-general] A pdf in the view

2012-12-27 Thread Javier Garcia

HI,

I have just created a code to create a pdf and download it, but.. how 
can i see in the browser instead of downloading?


Javi

--
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com




Re: [fw-general] Adding full stops at the end of validation messages - trouble?

2012-12-27 Thread Andreas Möller
Hello Ralf,


> What do you say?

So, after having had a look at Zend\Validator\AbstractValidator, translation 
obviously occurs in the validator, why setting form error messages in the form 
*after* validation has occurred will leave form error messages untranslated.


Best regards,

Andreas
--
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com




Re: [fw-general] Adding full stops at the end of validation messages - trouble?

2012-12-27 Thread Andreas Möller
Hello Ralf,


> I know its xmas but do you have any news on this. Just again I have the
> problem with untranslated validator messages and I am starting again to
> mess around with setting messages for each validator I use.

I haven't had much of a chance to work on this over the last two to three 
weeks, but from what I have observed while working on form validation, I'm not 
so sure whether validation error messages are translated at all - unless I've 
missed some magic that should be going on behind the scenes because I've wired 
services together in an unexpected way.

Have a look at this gist, which is an excerpt of how I set up an input filter 
within a model that implements Zend\InputFilter\InputFilterAwareInterface:

* https://gist.github.com/4359801

When rendering form errors using the Zend\Form\View\Helper\FormElementErrors 
after not having entered a firstname , the message rendered will be 
FORM_USER_FIRSTNAME_EMPTY_ERROR. The render() method of the view helper doesn't 
translate any validation error messages. The point is, I'm not sure whether it 
should, or whether translation should occur in the validator. Personally, I 
think it should be done in the former, rather than the latter.

What do you say?


Best regards,

Andreas
--
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com