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" => "
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
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
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)
> {
>
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
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
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