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

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

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

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

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

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

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

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,

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

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:

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

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

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

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

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

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

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

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

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