Re: Static Pages not working for me

2010-10-25 Thread AD7six


On Oct 24, 11:13 pm, Tom tast...@gmail.com wrote:
 Day 3 on using CakePhp and I like it. But I am running into the
 problem with generating static pages.

 I have an about page represented by about.ctp

 The page will render and will execute this php code:

 ?php $this-set(title_for_layout, My Title); ?

 But If I add any other html in this file nothing shows up.

 What am I missing here?

set debug in config/core.php to  0 and correct the error you're
adding to the view file. if you still see a blank page check your
apache log for errors. the missing piece of the puzzle is simply the
parse/fundamental error you're adding to the view which is halting
php.

hth,

AD

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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: Static Pages not working for me

2010-10-25 Thread Toby G
Don't forget to use 'echo' if using the HtmlHelper to render your
tags.  I've been using CakePHP for ages  that one still gets me from
time to time.

Toby


On Oct 24, 10:13 pm, Tom tast...@gmail.com wrote:
 Day 3 on using CakePhp and I like it. But I am running into the
 problem with generating static pages.

 I have an about page represented by about.ctp

 The page will render and will execute this php code:

 ?php $this-set(title_for_layout, My Title); ?

 But If I add any other html in this file nothing shows up.

 What am I missing here?

 Thanks

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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: Static Pages not working for me

2010-10-25 Thread Tom
Thanks for the help everyone. The problem was of course really simple.

?php echo $content_for_layout ?

Totally forgot to add this to my layout...

I was thinking the issue was bigger than it actually was.

How embarrassing!


On Oct 24, 4:13 pm, Tom tast...@gmail.com wrote:
 Day 3 on using CakePhp and I like it. But I am running into the
 problem with generating static pages.

 I have an about page represented by about.ctp

 The page will render and will execute this php code:

 ?php $this-set(title_for_layout, My Title); ?

 But If I add any other html in this file nothing shows up.

 What am I missing here?

 Thanks

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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