Re: $this->cakeError("error401") won't render my error401.ctp

2010-08-27 Thread Tilen Majerle
ok no problem :D :D -- LP, Tilen Majerle http://majerle.eu 2010/8/27 Joshua Muheim > Thanks a lot for your very helpful answer. :-) > > On Fri, Aug 27, 2010 at 3:18 PM, Tilen Majerle > wrote: > > > > second parameter should be array...so: > > $this->cakeError("error401", array("message" => "

Re: $this->cakeError("error401") won't render my error401.ctp

2010-08-27 Thread Joshua Muheim
Thanks a lot for your very helpful answer. :-) On Fri, Aug 27, 2010 at 3:18 PM, Tilen Majerle wrote: > > second parameter should be array...so: > $this->cakeError("error401", array("message" => "activate a Termolino > word")); //message is variable name > second parameter is list of variables to

Re: $this->cakeError("error401") won't render my error401.ctp

2010-08-27 Thread Tilen Majerle
second parameter should be array...so: $this->cakeError("error401", array("message" => "activate a Termolino word")); //message is variable name second parameter is list of variables to be set for set() function for variables in view :D -- LP, Tilen Majerle http://majerle.eu 2010/8/27 Joshua M

Re: $this->cakeError("error401") won't render my error401.ctp

2010-08-27 Thread Joshua Muheim
Wow, much better now! But I still having problems to get the message (2nd parameter) from $this->cakeError("error401", "activate a Termolino word"); into my view. Any idea? Thanks! On Fri, Aug 27, 2010 at 2:54 PM, Tilen Majerle wrote: > this u will need... > > function error401($params) > { >

Re: $this->cakeError("error401") won't render my error401.ctp

2010-08-27 Thread Tilen Majerle
this u will need... function error401($params) { //$this->controller->layout = "error_layout"; //if u want to change layout $this->controller->set($params); //set variables $this->_outputMessage("error401"); //output error element } -- LP, Tilen Majerle http://majerle.eu

Re: $this->cakeError("error401") won't render my error401.ctp

2010-08-27 Thread Tilen Majerle
i'm not sure...but u need to do this class AppError extends ErrorHandler { function error401() { $this->_outputMessage("error401"); //where error401 is your template name } } -- LP, Tilen Majerle http://majerle.eu 2010/8/27 psybear83 > Hi all > > I want to display a 4

$this->cakeError("error401") won't render my error401.ctp

2010-08-27 Thread psybear83
Hi all I want to display a 401 error, so I created an app/app_error.php file with the following content: And I created a view app/views/errors/error401.ctp with the following content: : '{$message}'")?> Then I call the error using: $this->cakeError("error401"); But I'm s