hi all,
I m designing my first 'real' site and want to do things proper this time.
Using dreamwaever and php I was wondering what u guys think of templates in
conjunction with php? Do you think it is the best way to apply my site
design to the entire site or are there better ways?
kind regards
Stijn 5 2883
"Stijn Goris" <me*****@hotmai l.com> wrote in message
news:3f******** *************** @news.skynet.be ... hi all,
I m designing my first 'real' site and want to do things proper this time. Using dreamwaever and php I was wondering what u guys think of templates
in conjunction with php? Do you think it is the best way to apply my site design to the entire site or are there better ways?
kind regards Stijn
forgot to say that I tried dreamweavers templates but they don't seem be
designed for a coder. Someone knows some good php template classes?
thanks
Stijn Goris wrote: forgot to say that I tried dreamweavers templates but they don't seem be designed for a coder. Someone knows some good php template classes?
The best I know is "AwesomeTemplat eEngine"
( http://www.pinkgoblin.com/index.php?view=scripts)
Jochen
"Stijn Goris" <me*****@hotmai l.com> wrote in message news:<3f******* *************** *@news.skynet.b e>... hi all,
I m designing my first 'real' site and want to do things proper this time. Using dreamwaever and php I was wondering what u guys think of templates in conjunction with php? Do you think it is the best way to apply my site design to the entire site or are there better ways?
kind regards Stijn
Well for me (and this is for me only, everyone is differnt)
I useualy design a web page first in Dreamweaver, dual window, I code
gui and code inspector at same time. gui to move large stuff around,
and code window to fix dreamweavers idea of what I want.
After page is designed, I open it up in a text editor and pull it
apart,
I tend to make a few files from it
_begin.php - all the code that makes up the main part of the page
_menu.php - any menu area I may have (usealy the _begin file will
include thisone)
_end.php - code that wraps it up
then all my pages, like index.php look like this
<?php
$title = "My page title"
include_once("_ _begin__.php");
?>
my poage body here or table section
<?php include_once("_ _end__.php"); ?>
This way any changes I make are automaticaly site wide.
Well, just my 2 bits worth of scripting tape
Mike Bradley http://gzen.myhq.info -- free online php tools
"Stijn Goris" <me*****@hotmai l.com> wrote in message
news:3f******** *************** @news.skynet.be ... hi all,
I m designing my first 'real' site and want to do things proper this time. Using dreamwaever and php I was wondering what u guys think of templates
in conjunction with php? Do you think it is the best way to apply my site design to the entire site or are there better ways?
Well, there are at least several opinons on that, but let's say that there
is quite large group of people who find the combination of php and templates
very usefull. If you would like to try them with TemplateTamer and need some
help, just drop me an e-mail.
rush
-- http://www.templatetamer.com/
If you create an object in your php script and call a function on it,
you can have the function include a skin:
<?php
$myPage = new MyPage();
$myPage->handleRequest( );
?>
<?php
class MyPage extends AbstractPage {
// you do not raally need the AbstractPage right now,
// but i bet it will prove handy in future,
// so just create it as an empty class
function handleRequest()
{
include('skinMy Page.inc');
}
} ?
The skin really is simply a php script, but it can be much like a
template, whilst having the object do the dirty work. A skin can look
like this:
<!-- skinBody -->
<table><tr>
<td height=100%>
<table>
<tr>
<td class=hoofdmenu >
<?php $this->printMenuPart( ) ?>
</td>
</tr>
<tr>
<td class=<?php print $this->getInfoStyle () ?>>
Information<BR> <BR><BR>
<?php $this->printInformati onPart() ?>
</td>
</tr>
</table> <BR>
</td>
<td height=100%>
<?php $this->printMainPart( ) ?> </td>
</tr></table>
<!-- /skinBody -->
As you see a skin is just a thin layer of layout on top of an object. If
you restrict the skin to only call methods on the object that included
it, you get a very consistent MVC pattern. If the work of the object
becomes too dirty you have the method create some object of its own that
may include another skin. This way you can separate layout from code
without needing a template engine AND reuse code and layout however you
see fit. If you build generic reusable object classes (TablePart,
TabsPart, MenuPart, SelectWidget you get a simple yet powerfull user
interfacing framework.
Henk Verhoeven, www.phppeanuts.org.
Stijn Goris wrote:
hi all,
I m designing my first 'real' site and want to do things proper this time. Using dreamwaever and php I was wondering what u guys think of templates in conjunction with php? Do you think it is the best way to apply my site design to the entire site or are there better ways?
kind regards Stijn
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Vince C. |
last post by:
Hi all,
I've created XML documents that are described with a schema. I'm using those
documents to create web pages.
All my web pages contain a fixed header and a variable document part. The
header is the same in each page and is described in an XML document,
"Head.xml". The document part, which is variable in content, is described in
other XML files (e.g. "Document.xml", "Product.xml", "Register.xml").
|
by: Tom Alsberg |
last post by:
Hi there...
I'm recently trying to get a bit acquainted with XML Schemas and XSL.
Now, I have a few questions about XSL stylesheets and templates:
* Is there a way to "enter" a child element of the currently matched
element in the template, so that XPath expressions inside would be
relative to that node? Specifically, I want to do this, in order to
be able to issue xsl:call-template to apply some templates to some
|
by: E. Robert Tisdale |
last post by:
According to the C++ FAQ Lite:
http://www.parashift.com/
What is "genericity"?
Yet another way to say, "class templates."
Not to be confused with "generality"
(which just means avoiding solutions which are overly specific),
|
by: Fabio De Francesco |
last post by:
Hello.
I can't understand why I can't compile the following simple code, where
I think I have applied all the needed rules for templates that are
declared and defined in different files (*.h and *.cpp).
What amazes me is that I have already some code like this in another
project where I don't get errors, so I am pretty sure I am missing some
stupid thing.
|
by: WittyGuy |
last post by:
Hi,
What is the major difference between function overloading and function
templates?
Thanks!
http://www.gotw.ca/resources/clcm.htm for info about ]
| |
by: jimbo_vr5 |
last post by:
Hey
I think i've figured out the idea behind apply-templates. But going
through the tutorial on
<http://www.w3schools.com/xsl/xsl_apply_templates.asp> theres simply
just something that i dont get! In the following i've copy pasted the
example from <http://www.w3schools.com/xsl/xsl_apply_templates.asp>
into this post. I divide into sections and my real question will come
after the code snippet:
|
by: Ted |
last post by:
I'm putting the posts that follow here (hopefully they will follow here!) because
they were rejected in comp.lang.c++.moderated. It behooves anyone reading
them to first read the the thread of the same subject in clc++m to get the more
of the context.
Ted
|
by: NewToCPP |
last post by:
Hi,
I am just trying to find out if there is any strong reason for not
using Templates. When we use Templates it is going to replicate the
code for different data types, thus increasing the executable size.
This should not cause any performance issue.
So, is it safe to say that if I can offered to have bigger image size I
can go ahead and use Templates with out worrying about any other
issues?
|
by: JohnQ |
last post by:
Well apparently not since one can step thru template code with a debugger.
But if I was willing to make the concession on debugging, templates would be
strictly a precompiler thing? I have a feeling the answer I'm going to get
back will be "no, because templates have taken on a life of their own since
their original conception and now also affect compiler implementation"
(read: not good, IMO.
John
|
by: Chris |
last post by:
Hi All,
This is a weird one but I am hoping someone can help or has some
pointers, a recipe how to do the following:
I have to move some code from c++ to objective-c and to do this I must
remove all defined templates. I am not really a c++ guy so I have not
worked with templates all that much (not really at all) and as such I
don't have a good idea where to start.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |