Jump to content


template include?


3 replies to this topic

#1 Dekkon

    Young Padawan

  • Members
  • Pip
  • 5 posts

Posted 10 September 2009 - 06:39 PM

Yes, the file exist.

Posted Image

Posted Image

Thanks for helping too, learning at this and can't find the error but maybe I haven't stared at it long enough. <_<

Edited by Dekkon, 10 September 2009 - 06:39 PM.


#2 Neil

    Past Staff Member

  • Members
  • Pip
  • 149 posts
  • Gender:Male
  • Location:Australia

Posted 10 September 2009 - 07:53 PM

Hi,

Because your register page is inside the include folder you're doing the include wrong.

If you're in /includes/register.php and you include "includes/templates/x.php" you're actually including "/includes/includes/templates/x.php".

Change the include to:
include('templates/template_register.php');

cheers

#3 Neil

    Past Staff Member

  • Members
  • Pip
  • 149 posts
  • Gender:Male
  • Location:Australia

Posted 10 September 2009 - 08:01 PM

Also a pro tip. Don't use dreamweaver unless you absolutely have to use it <_< If you can handcode your html I would recommend using Zend Studio or Zend for Eclipse. Zend would have actually told you that this file didn't exist as the code completion is far more superior.

I'm sure you'll know how to get your hands on it ;)

#4 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 10 September 2009 - 08:24 PM

Actually, Dreamweaver is an extremely nice HTML/PHP editor. It does lack the advanced features an IDE (such as Eclipse) could give, but that is one reason i would recommend it to beginners (it's not as complex, so the learning curve is a bit smoother).

Outside of that, i want to thank you Dekkon for providing the pic with the directory structure. If you hadn't, i would have suggested making sure you had your paths correct (as Neil noted).





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users