Re: 1.2.2.8120 and "Undefined variable: html"

2009-03-20 Thread Aivaras
Exactly

On Fri, Mar 20, 2009 at 11:58, Henrik Gemal  wrote:

>
> class BookingsController extends AppController {
>
> rite?
>
> On Mar 20, 10:48 am, "jitka (poLK)"  wrote:
> > > class TestController extends Controller {
> >
> > Guess what is wrong in this line.
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: 1.2.2.8120 and "Undefined variable: html"

2009-03-20 Thread Henrik Gemal

class BookingsController extends AppController {

rite?

On Mar 20, 10:48 am, "jitka (poLK)"  wrote:
> > class TestController extends Controller {
>
> Guess what is wrong in this line.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: 1.2.2.8120 and "Undefined variable: html"

2009-03-20 Thread jitka (poLK)

> class TestController extends Controller {

Guess what is wrong in this line.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: 1.2.2.8120 and "Undefined variable: html"

2009-03-20 Thread Henrik Gemal

Any idea why this worked in "1.2.1.8004" and not "1.2.2.8120" ?

What has changed?

On Mar 20, 9:46 am, Sergei  wrote:
> I think you need to merge your $helpers variable, because you variable
> in testcontroller overwrites one in appcontroller.
>
> On 20 мар, 16:35, Henrik Gemal  wrote:
>
> > I just tried to upgrade to CakePHP 1.2.2.8120 and now I'm getting
> > "Undefined variable: html"
>
> > My app_controller.php:
> > class AppController extends Controller {
> >         var $components = array("P28n");
> >         var $helpers = array("Html", "Form", "Javascript", "Session");
>
> > }
>
> > My test_controller.php:
>
> > class TestController extends Controller {
> >         var $components = array("RequestHandler", "Cookie", "Email");
> >         var $helpers = array("Mailto", "Validanguage");
>
> > -
>
> > If I move all of the helpers to TestController it works. But I dont
> > have that
>
> > What have changed? Do I need to change my code or is it a bug?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: 1.2.2.8120 and "Undefined variable: html"

2009-03-20 Thread Sergei

I think you need to merge your $helpers variable, because you variable
in testcontroller overwrites one in appcontroller.

On 20 мар, 16:35, Henrik Gemal  wrote:
> I just tried to upgrade to CakePHP 1.2.2.8120 and now I'm getting
> "Undefined variable: html"
>
> My app_controller.php:
> class AppController extends Controller {
>         var $components = array("P28n");
>         var $helpers = array("Html", "Form", "Javascript", "Session");
>
> }
>
> My test_controller.php:
>
> class TestController extends Controller {
>         var $components = array("RequestHandler", "Cookie", "Email");
>         var $helpers = array("Mailto", "Validanguage");
>
> -
>
> If I move all of the helpers to TestController it works. But I dont
> have that
>
> What have changed? Do I need to change my code or is it a bug?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



1.2.2.8120 and "Undefined variable: html"

2009-03-20 Thread Henrik Gemal

I just tried to upgrade to CakePHP 1.2.2.8120 and now I'm getting
"Undefined variable: html"

My app_controller.php:
class AppController extends Controller {
var $components = array("P28n");
var $helpers = array("Html", "Form", "Javascript", "Session");
}

My test_controller.php:

class TestController extends Controller {
var $components = array("RequestHandler", "Cookie", "Email");
var $helpers = array("Mailto", "Validanguage");

-


If I move all of the helpers to TestController it works. But I dont
have that

What have changed? Do I need to change my code or is it a bug?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Undefined variable: html

2008-04-24 Thread williamn

> Strange, generally this error appear when the HtmlHelper is not defined in
> the helpers array of the controller.
>
> Is it defined? var helpers = array("html",...);
>

I add

var $helpers = array('Cache', 'Html');

in app_controller.php and those error message are disapear..but still
I don't understand why?

I already add

var $helpers = array('Html', 'Form', 'Time', 'Number' );

in my controller that show those error message so I guess it'll
unecessarily to add it again in app_controller.php

Thank you.

--william


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Undefined variable: html

2008-04-24 Thread Davide

williamn wrote:
> Notice: Undefined variable: html in D:\xampp\htdocs\sirusananda\app
> \views\layouts\default.thtml on line 17
>
> Fatal error: Call to a member function css() on a non-object in D:
> \xampp\htdocs\sirusananda\app\views\layouts\default.thtml on line 17
>
> But when I switch back, those error messages just disappear.

Strange, generally this error appear when the HtmlHelper is not defined in
the helpers array of the controller.

Is it defined? var helpers = array("html",...);

-- 
Live life like you're gonna die. Because you're gonna.
William Shatner


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Undefined variable: html

2008-04-24 Thread williamn

My application running fine so far, but when I change the database
connection (development database to production database) I got this
error :

Notice: Undefined variable: html in D:\xampp\htdocs\sirusananda\app
\views\layouts\default.thtml on line 17

Fatal error: Call to a member function css() on a non-object in D:
\xampp\htdocs\sirusananda\app\views\layouts\default.thtml on line 17

But when I switch back, those error messages just disappear.

What should I do?

Thank you.

-- William
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---