Re: Blog example not working - need edit in View

2011-02-24 Thread Huy Nguyen
I think what dalvarez spotted out is exactly why I got into this problem!

Thank you!

On Mon, Feb 14, 2011 at 5:25 AM, dalvarez dannyalvarez...@gmail.com wrote:


 I actually ran across the same exact problem. After looking at CakePHP's
 downloads page on Github, I noticed that 1.3-dev.zip was listed higher than
 1.3.7.zip. I think that the confusion lies in the fact that I (and maybe
 others) mistook this to be a newer version than 1.3.7 and downloaded that
 version instead. I'm downloading the 1.3.7 version now to try it out.
 --
 View this message in context:
 http://cakephp.1045679.n5.nabble.com/Blog-example-not-working-need-edit-in-View-tp3367716p3383722.html
 Sent from the CakePHP mailing list archive at Nabble.com.

 --
 Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help
 others with their CakePHP related questions.


 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


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Blog example not working - need edit in View

2011-02-13 Thread dalvarez

I actually ran across the same exact problem. After looking at CakePHP's
downloads page on Github, I noticed that 1.3-dev.zip was listed higher than
1.3.7.zip. I think that the confusion lies in the fact that I (and maybe
others) mistook this to be a newer version than 1.3.7 and downloaded that
version instead. I'm downloading the 1.3.7 version now to try it out.
-- 
View this message in context: 
http://cakephp.1045679.n5.nabble.com/Blog-example-not-working-need-edit-in-View-tp3367716p3383722.html
Sent from the CakePHP mailing list archive at Nabble.com.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Blog example not working - need edit in View

2011-02-03 Thread david tan
Thank you folks.

You are right, the problem is exactly because of phpcake 1.3.

When I download the 1.2 and replace the cake folder, everything works...

I don't know how, but I hope maybe someone could fix this, it's a great
framework though.

Thanks again.

-David

On Wed, Feb 2, 2011 at 8:04 PM, euromark dereurom...@googlemail.com wrote:

 i am guessing its the cake1.3 bug
 do you use ANY variable in the view called $html?
 it destroys both $html and $this-Html helper objects

 @Jeremy
 If so, they override the defaults, which means that the Html helper
 is not loaded

 what version are you referring to? cake usually joins both app and
 custom controller helpers together
 at least for the custom controllers. you probably meant the app
 controller

 anyway, use
 var $helpers = array('Html', ...);
 in you own app_controller.php
 and don't use $html as variable and it should work


 On 2 Feb., 17:50, ibejohn818 john.c.ha...@gmail.com wrote:
  What version of PHP/Server/Operating system are you running on?
 
  This very well could be the issue.
 
  On Feb 2, 4:38 am, Huy Nguyen nvquang...@gmail.com wrote:
 
 
 
 
 
 
 
   I'm totally new to CakePHP so I followed the Blog example up to this
 point
   and get error because $this-Html not found in View.
 http://book.cakephp.org/view/1536/Creating-Post-Views
 
   I believe the right way is $html instead of $this-Html (as pointed out
 by
   another person on Stackoverflow)
 
  http://stackoverflow.com/questions/4873781/htmlhelper-not-loaded-in-t.
 ..
 
   So I think someone with authority should edit the example in the Book?
 
   Huy

 --
 Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help
 others with their CakePHP related questions.


 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Blog example not working - need edit in View

2011-02-02 Thread andy_the ultimate baker
clarify ur error clearly


On Feb 2, 5:38 pm, Huy Nguyen nvquang...@gmail.com wrote:
 I'm totally new to CakePHP so I followed the Blog example up to this point
 and get error because $this-Html not found in 
 View.http://book.cakephp.org/view/1536/Creating-Post-Views

 I believe the right way is $html instead of $this-Html (as pointed out by
 another person on Stackoverflow)

 http://stackoverflow.com/questions/4873781/htmlhelper-not-loaded-in-t...

 So I think someone with authority should edit the example in the Book?

 Huy

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Blog example not working - need edit in View

2011-02-02 Thread Huy Nguyen
Sorry for being brief. The error is described in the stackoverflow link.

Notice (8): Undefined property: View::$Html [APP\views\posts\index.ctp, line 27]

Here is the line:

echo $this-Html-link($post['Post']['title'], array('controller' =
'posts', 'action' = 'view', $post['Post']['id']));


I guess it doesnt load the HtmlHelper to View::$Html but instead to global
variable $html?

On Wed, Feb 2, 2011 at 7:40 PM, andy_the ultimate baker 
anandghaywankar...@gmail.com wrote:

 clarify ur error clearly


 On Feb 2, 5:38 pm, Huy Nguyen nvquang...@gmail.com wrote:
  I'm totally new to CakePHP so I followed the Blog example up to this
 point
  and get error because $this-Html not found in View.
 http://book.cakephp.org/view/1536/Creating-Post-Views
 
  I believe the right way is $html instead of $this-Html (as pointed out
 by
  another person on Stackoverflow)
 
  http://stackoverflow.com/questions/4873781/htmlhelper-not-loaded-in-t...
 
  So I think someone with authority should edit the example in the Book?
 
  Huy

 --
 Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help
 others with their CakePHP related questions.


 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Blog example not working - need edit in View

2011-02-02 Thread Jeremy Burns | Class Outfit
What version of Cake are you using?

Jeremy Burns
Class Outfit

jeremybu...@classoutfit.com
http://www.classoutfit.com

On 2 Feb 2011, at 12:43, Huy Nguyen wrote:

 Sorry for being brief. The error is described in the stackoverflow link.
 Notice (8): Undefined property: View::$Html [APP\views\posts\index.ctp, line 
 27]
 
 Here is the line:
 echo $this-Html-link($post['Post']['title'], array('controller' = 'posts', 
 'action' = 'view', $post['Post']['id'])); 
 
 I guess it doesnt load the HtmlHelper to View::$Html but instead to global 
 variable $html?
 
 On Wed, Feb 2, 2011 at 7:40 PM, andy_the ultimate baker 
 anandghaywankar...@gmail.com wrote:
 clarify ur error clearly
 
 
 On Feb 2, 5:38 pm, Huy Nguyen nvquang...@gmail.com wrote:
  I'm totally new to CakePHP so I followed the Blog example up to this point
  and get error because $this-Html not found in 
  View.http://book.cakephp.org/view/1536/Creating-Post-Views
 
  I believe the right way is $html instead of $this-Html (as pointed out by
  another person on Stackoverflow)
 
  http://stackoverflow.com/questions/4873781/htmlhelper-not-loaded-in-t...
 
  So I think someone with authority should edit the example in the Book?
 
  Huy
 
 --
 Our newest site for the community: CakePHP Video Tutorials 
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help 
 others with their CakePHP related questions.
 
 
 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
 
 
 -- 
 Our newest site for the community: CakePHP Video Tutorials 
 http://tv.cakephp.org 
 Check out the new CakePHP Questions site http://ask.cakephp.org and help 
 others with their CakePHP related questions.
  
  
 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

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Blog example not working - need edit in View

2011-02-02 Thread Huy Nguyen
The latest one on cakephp.net, 1.3.7.


On Wed, Feb 2, 2011 at 7:44 PM, Jeremy Burns | Class Outfit 
jeremybu...@classoutfit.com wrote:

 What version of Cake are you using?

 Jeremy Burns
 *Class Outfit*
 *
 *
 jeremybu...@classoutfit.com jeremybu...@mac.com
 http://www.classoutfit.com

 On 2 Feb 2011, at 12:43, Huy Nguyen wrote:

 Sorry for being brief. The error is described in the stackoverflow link.

 Notice (8): Undefined property: View::$Html [APP\views\posts\index.ctp, line 
 27]

 Here is the line:

 echo $this-Html-link($post['Post']['title'], array('controller' = 'posts', 
 'action' = 'view', $post['Post']['id']));


 I guess it doesnt load the HtmlHelper to View::$Html but instead to global
 variable $html?

 On Wed, Feb 2, 2011 at 7:40 PM, andy_the ultimate baker 
 anandghaywankar...@gmail.com wrote:

 clarify ur error clearly


 On Feb 2, 5:38 pm, Huy Nguyen nvquang...@gmail.com wrote:
  I'm totally new to CakePHP so I followed the Blog example up to this
 point
  and get error because $this-Html not found in View.
 http://book.cakephp.org/view/1536/Creating-Post-Views
 
  I believe the right way is $html instead of $this-Html (as pointed out
 by
  another person on Stackoverflow)
 
  http://stackoverflow.com/questions/4873781/htmlhelper-not-loaded-in-t.
 ..
 
  So I think someone with authority should edit the example in the Book?
 
  Huy

 --
 Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help
 others with their CakePHP related questions.


 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php



 --
 Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help
 others with their CakePHP related questions.


 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


  --
 Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help
 others with their CakePHP related questions.


 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Blog example not working - need edit in View

2011-02-02 Thread andy_the ultimate baker
r u sure u r using latest version?
ok let it be
now try
$html-link($post['Post']['title'], array('controller' =
'posts', 'action' = 'view', $post['Post']['id']));

On Feb 2, 5:50 pm, Huy Nguyen nvquang...@gmail.com wrote:
 The latest one on cakephp.net, 1.3.7.

 On Wed, Feb 2, 2011 at 7:44 PM, Jeremy Burns | Class Outfit 

 jeremybu...@classoutfit.com wrote:
  What version of Cake are you using?

  Jeremy Burns
  *Class Outfit*
  *
  *
  jeremybu...@classoutfit.com jeremybu...@mac.com
 http://www.classoutfit.com

  On 2 Feb 2011, at 12:43, Huy Nguyen wrote:

  Sorry for being brief. The error is described in the stackoverflow link.

  Notice (8): Undefined property: View::$Html [APP\views\posts\index.ctp, 
  line 27]

  Here is the line:

  echo $this-Html-link($post['Post']['title'], array('controller' = 
  'posts', 'action' = 'view', $post['Post']['id']));

  I guess it doesnt load the HtmlHelper to View::$Html but instead to global
  variable $html?

  On Wed, Feb 2, 2011 at 7:40 PM, andy_the ultimate baker 
  anandghaywankar...@gmail.com wrote:

  clarify ur error clearly

  On Feb 2, 5:38 pm, Huy Nguyen nvquang...@gmail.com wrote:
   I'm totally new to CakePHP so I followed the Blog example up to this
  point
   and get error because $this-Html not found in View.
 http://book.cakephp.org/view/1536/Creating-Post-Views

   I believe the right way is $html instead of $this-Html (as pointed out
  by
   another person on Stackoverflow)

  http://stackoverflow.com/questions/4873781/htmlhelper-not-loaded-in-t.
  ..

   So I think someone with authority should edit the example in the Book?

   Huy

  --
  Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
  Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
  others with their CakePHP related questions.

  To unsubscribe from this group, send email to
  cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor
   more options, visit this group at
 http://groups.google.com/group/cake-php

  --
  Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
  Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
  others with their CakePHP related questions.

  To unsubscribe from this group, send email to
  cake-php+unsubscr...@googlegroups.com For more options, visit this group
  athttp://groups.google.com/group/cake-php

   --
  Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
  Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
  others with their CakePHP related questions.

  To unsubscribe from this group, send email to
  cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor
   more options, visit this group at
 http://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Blog example not working - need edit in View

2011-02-02 Thread Jeremy Burns | Class Outfit
Have you included any other helpers anywhere? If so, they override the 
defaults, which means that the Html helper is not loaded. Try adding 'Html' to 
your list of helpers (and 'Form' for good measure, as that will be missing too).

Jeremy Burns
Class Outfit

jeremybu...@classoutfit.com
http://www.classoutfit.com

On 2 Feb 2011, at 12:50, Huy Nguyen wrote:

 The latest one on cakephp.net, 1.3.7.
 
 
 On Wed, Feb 2, 2011 at 7:44 PM, Jeremy Burns | Class Outfit 
 jeremybu...@classoutfit.com wrote:
 What version of Cake are you using?
 
 Jeremy Burns
 Class Outfit
 
 jeremybu...@classoutfit.com
 http://www.classoutfit.com
 
 On 2 Feb 2011, at 12:43, Huy Nguyen wrote:
 
 Sorry for being brief. The error is described in the stackoverflow link.
 Notice (8): Undefined property: View::$Html [APP\views\posts\index.ctp, line 
 27]
 
 
 Here is the line:
 echo $this-Html-link($post['Post']['title'], array('controller' = 
 'posts', 'action' = 'view', $post['Post']['id'])); 
 
 I guess it doesnt load the HtmlHelper to View::$Html but instead to global 
 variable $html?
 
 On Wed, Feb 2, 2011 at 7:40 PM, andy_the ultimate baker 
 anandghaywankar...@gmail.com wrote:
 clarify ur error clearly
 
 
 On Feb 2, 5:38 pm, Huy Nguyen nvquang...@gmail.com wrote:
  I'm totally new to CakePHP so I followed the Blog example up to this point
  and get error because $this-Html not found in 
  View.http://book.cakephp.org/view/1536/Creating-Post-Views
 
  I believe the right way is $html instead of $this-Html (as pointed out by
  another person on Stackoverflow)
 
  http://stackoverflow.com/questions/4873781/htmlhelper-not-loaded-in-t...
 
  So I think someone with authority should edit the example in the Book?
 
  Huy
 
 --
 Our newest site for the community: CakePHP Video Tutorials 
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help 
 others with their CakePHP related questions.
 
 
 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
 
 
 -- 
 Our newest site for the community: CakePHP Video Tutorials 
 http://tv.cakephp.org 
 Check out the new CakePHP Questions site http://ask.cakephp.org and help 
 others with their CakePHP related questions.
  
  
 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
 
 
 -- 
 Our newest site for the community: CakePHP Video Tutorials 
 http://tv.cakephp.org 
 Check out the new CakePHP Questions site http://ask.cakephp.org and help 
 others with their CakePHP related questions.
  
  
 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
 
 
 -- 
 Our newest site for the community: CakePHP Video Tutorials 
 http://tv.cakephp.org 
 Check out the new CakePHP Questions site http://ask.cakephp.org and help 
 others with their CakePHP related questions.
  
  
 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

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Blog example not working - need edit in View

2011-02-02 Thread Huy Nguyen
I just downloaded and installed from http://cakephp.org/ within a few hours
ago. 1.3.7

Yeah I tried $html-link instead of $this-Html. It works now. I just
thought someone might clarify and amend the example for those who attempt at
it later on?

:)

Huy

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Blog example not working - need edit in View

2011-02-02 Thread Huy Nguyen
No, I tried both adding more helpers and removed the `var $helpers= array()`
line.

On Wed, Feb 2, 2011 at 7:57 PM, Jeremy Burns | Class Outfit 
jeremybu...@classoutfit.com wrote:

 Have you included any other helpers anywhere? If so, they override the
 defaults, which means that the Html helper is not loaded. Try adding 'Html'
 to your list of helpers (and 'Form' for good measure, as that will be
 missing too).


 Jeremy Burns
 *Class Outfit*
 *
 *
 jeremybu...@classoutfit.com jeremybu...@mac.com
 http://www.classoutfit.com

 On 2 Feb 2011, at 12:50, Huy Nguyen wrote:

 The latest one on cakephp.net, 1.3.7.


 On Wed, Feb 2, 2011 at 7:44 PM, Jeremy Burns | Class Outfit 
 jeremybu...@classoutfit.com wrote:

 What version of Cake are you using?

 Jeremy Burns
 *Class Outfit*
 *
 *
 jeremybu...@classoutfit.com jeremybu...@mac.com
 http://www.classoutfit.com

 On 2 Feb 2011, at 12:43, Huy Nguyen wrote:

 Sorry for being brief. The error is described in the stackoverflow link.

 Notice (8): Undefined property: View::$Html [APP\views\posts\index.ctp, line 
 27]

 Here is the line:

 echo $this-Html-link($post['Post']['title'], array('controller' = 
 'posts', 'action' = 'view', $post['Post']['id']));


 I guess it doesnt load the HtmlHelper to View::$Html but instead to global
 variable $html?

 On Wed, Feb 2, 2011 at 7:40 PM, andy_the ultimate baker 
 anandghaywankar...@gmail.com wrote:

 clarify ur error clearly


 On Feb 2, 5:38 pm, Huy Nguyen nvquang...@gmail.com wrote:
  I'm totally new to CakePHP so I followed the Blog example up to this
 point
  and get error because $this-Html not found in View.
 http://book.cakephp.org/view/1536/Creating-Post-Views
 
  I believe the right way is $html instead of $this-Html (as pointed out
 by
  another person on Stackoverflow)
 
  http://stackoverflow.com/questions/4873781/htmlhelper-not-loaded-in-t.
 ..
 
  So I think someone with authority should edit the example in the Book?
 
  Huy

 --
 Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help
 others with their CakePHP related questions.


 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php



 --
 Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help
 others with their CakePHP related questions.


 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



 --
 Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help
 others with their CakePHP related questions.


 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php



 --
 Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help
 others with their CakePHP related questions.


 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


  --
 Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help
 others with their CakePHP related questions.


 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Blog example not working - need edit in View

2011-02-02 Thread andy_the ultimate baker
good for u


On Feb 2, 5:58 pm, Huy Nguyen nvquang...@gmail.com wrote:
 I just downloaded and installed fromhttp://cakephp.org/within a few hours
 ago. 1.3.7

 Yeah I tried $html-link instead of $this-Html. It works now. I just
 thought someone might clarify and amend the example for those who attempt at
 it later on?

 :)

 Huy

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Blog example not working - need edit in View

2011-02-02 Thread Jeremy Burns | Class Outfit
That doesn't sound right to me - the convention is $this-Html and it works 
like a peach. If it didn't, there'd be a revolution.

Jeremy Burns
Class Outfit

jeremybu...@classoutfit.com
http://www.classoutfit.com

On 2 Feb 2011, at 12:58, Huy Nguyen wrote:

 I just downloaded and installed from http://cakephp.org/ within a few hours 
 ago. 1.3.7
 
 Yeah I tried $html-link instead of $this-Html. It works now. I just thought 
 someone might clarify and amend the example for those who attempt at it later 
 on?
 
 :)
 
 Huy
 
 -- 
 Our newest site for the community: CakePHP Video Tutorials 
 http://tv.cakephp.org 
 Check out the new CakePHP Questions site http://ask.cakephp.org and help 
 others with their CakePHP related questions.
  
  
 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

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Blog example not working - need edit in View

2011-02-02 Thread Ryan Schmidt

On Feb 2, 2011, at 06:38, Huy Nguyen wrote:

 I'm totally new to CakePHP so I followed the Blog example up to this point 
 and get error because $this-Html not found in View.
 http://book.cakephp.org/view/1536/Creating-Post-Views
 
 I believe the right way is $html instead of $this-Html (as pointed out by 
 another person on Stackoverflow)
 
 http://stackoverflow.com/questions/4873781/htmlhelper-not-loaded-in-tutorial-example
 
 So I think someone with authority should edit the example in the Book?

$html was the way for CakePHP 1.2.x.

$this-Html is the way for CakePHP 1.3.x. $html is deprecated and will be 
removed, possibly in CakePHP 2.0.x.


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Blog example not working - need edit in View

2011-02-02 Thread ibejohn818
What version of PHP/Server/Operating system are you running on?

This very well could be the issue.

On Feb 2, 4:38 am, Huy Nguyen nvquang...@gmail.com wrote:
 I'm totally new to CakePHP so I followed the Blog example up to this point
 and get error because $this-Html not found in 
 View.http://book.cakephp.org/view/1536/Creating-Post-Views

 I believe the right way is $html instead of $this-Html (as pointed out by
 another person on Stackoverflow)

 http://stackoverflow.com/questions/4873781/htmlhelper-not-loaded-in-t...

 So I think someone with authority should edit the example in the Book?

 Huy

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Blog example not working - need edit in View

2011-02-02 Thread euromark
i am guessing its the cake1.3 bug
do you use ANY variable in the view called $html?
it destroys both $html and $this-Html helper objects

@Jeremy
If so, they override the defaults, which means that the Html helper
is not loaded

what version are you referring to? cake usually joins both app and
custom controller helpers together
at least for the custom controllers. you probably meant the app
controller

anyway, use
var $helpers = array('Html', ...);
in you own app_controller.php
and don't use $html as variable and it should work


On 2 Feb., 17:50, ibejohn818 john.c.ha...@gmail.com wrote:
 What version of PHP/Server/Operating system are you running on?

 This very well could be the issue.

 On Feb 2, 4:38 am, Huy Nguyen nvquang...@gmail.com wrote:







  I'm totally new to CakePHP so I followed the Blog example up to this point
  and get error because $this-Html not found in 
  View.http://book.cakephp.org/view/1536/Creating-Post-Views

  I believe the right way is $html instead of $this-Html (as pointed out by
  another person on Stackoverflow)

 http://stackoverflow.com/questions/4873781/htmlhelper-not-loaded-in-t...

  So I think someone with authority should edit the example in the Book?

  Huy

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Blog example not working - need edit in View

2011-02-02 Thread Jeremy Burns | Class Outfit
You are right - I stand corrected.

Jeremy Burns
Class Outfit

jeremybu...@classoutfit.com
http://www.classoutfit.com

On 3 Feb 2011, at 01:04, euromark wrote:

 i am guessing its the cake1.3 bug
 do you use ANY variable in the view called $html?
 it destroys both $html and $this-Html helper objects
 
 @Jeremy
 If so, they override the defaults, which means that the Html helper
 is not loaded
 
 what version are you referring to? cake usually joins both app and
 custom controller helpers together
 at least for the custom controllers. you probably meant the app
 controller
 
 anyway, use
 var $helpers = array('Html', ...);
 in you own app_controller.php
 and don't use $html as variable and it should work
 
 
 On 2 Feb., 17:50, ibejohn818 john.c.ha...@gmail.com wrote:
 What version of PHP/Server/Operating system are you running on?
 
 This very well could be the issue.
 
 On Feb 2, 4:38 am, Huy Nguyen nvquang...@gmail.com wrote:
 
 
 
 
 
 
 
 I'm totally new to CakePHP so I followed the Blog example up to this point
 and get error because $this-Html not found in 
 View.http://book.cakephp.org/view/1536/Creating-Post-Views
 
 I believe the right way is $html instead of $this-Html (as pointed out by
 another person on Stackoverflow)
 
 http://stackoverflow.com/questions/4873781/htmlhelper-not-loaded-in-t...
 
 So I think someone with authority should edit the example in the Book?
 
 Huy
 
 -- 
 Our newest site for the community: CakePHP Video Tutorials 
 http://tv.cakephp.org 
 Check out the new CakePHP Questions site http://ask.cakephp.org and help 
 others with their CakePHP related questions.
 
 
 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

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Blog example not working - need edit in View

2011-02-02 Thread Huy Nguyen
I am using
PHP 5.3.5 and Apache 2.2.17 bundled in wampserver, running on Windows 7.
CakePHP 1.3.7

And no I don't declare any $html variable in the view. I was just following
suit the Blog tutorial on CakePHP Book.


On Thu, Feb 3, 2011 at 11:10 AM, Jeremy Burns | Class Outfit 
jeremybu...@classoutfit.com wrote:

 You are right - I stand corrected.

 Jeremy Burns
 Class Outfit

 jeremybu...@classoutfit.com
 http://www.classoutfit.com

 On 3 Feb 2011, at 01:04, euromark wrote:

  i am guessing its the cake1.3 bug
  do you use ANY variable in the view called $html?
  it destroys both $html and $this-Html helper objects
 
  @Jeremy
  If so, they override the defaults, which means that the Html helper
  is not loaded
 
  what version are you referring to? cake usually joins both app and
  custom controller helpers together
  at least for the custom controllers. you probably meant the app
  controller
 
  anyway, use
  var $helpers = array('Html', ...);
  in you own app_controller.php
  and don't use $html as variable and it should work
 
 
  On 2 Feb., 17:50, ibejohn818 john.c.ha...@gmail.com wrote:
  What version of PHP/Server/Operating system are you running on?
 
  This very well could be the issue.
 
  On Feb 2, 4:38 am, Huy Nguyen nvquang...@gmail.com wrote:
 
 
 
 
 
 
 
  I'm totally new to CakePHP so I followed the Blog example up to this
 point
  and get error because $this-Html not found in View.
 http://book.cakephp.org/view/1536/Creating-Post-Views
 
  I believe the right way is $html instead of $this-Html (as pointed out
 by
  another person on Stackoverflow)
 
  http://stackoverflow.com/questions/4873781/htmlhelper-not-loaded-in-t.
 ..
 
  So I think someone with authority should edit the example in the Book?
 
  Huy
 
  --
  Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
  Check out the new CakePHP Questions site http://ask.cakephp.org and help
 others with their CakePHP related questions.
 
 
  To unsubscribe from this group, send email to
  cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor
   more options, visit this group at
 http://groups.google.com/group/cake-php

 --
 Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help
 others with their CakePHP related questions.


 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Blog example not working - need edit in View

2011-02-02 Thread AD7six


On Feb 2, 1:58 pm, Huy Nguyen nvquang...@gmail.com wrote:
 I just downloaded and installed fromhttp://cakephp.org/within a few hours
 ago. 1.3.7

 Yeah I tried $html-link instead of $this-Html. It works now. I just
 thought someone might clarify and amend the example for those who attempt at
 it later on?

 :)l


if you  the text changed - change it (click edit)

AD

 Huy

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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