473,386 Members | 1,815 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Need tutorial on code structure and flow

I'm doing hopefully my last revamp of a fairly sizable project, and need
pointers on the best way of organizing includes, header
templates/procedures, and that sort of thing. Here are some details

-The heart of the matter is fairly basic ecommerce, but the products have
Vast Quantities of options/configs, so I've created a custom admin
interface
-I use smarty templates
-I've successfully made objects/methods for just about everything

Specific questions:

1. I have a class "productFetcher" -- this retrieves dB info and contains a
method showUpdateForm(). That method assigns info to smarty and calls
smarty->display($tpl). Should this just return the data and let the
operative script call smarty->display()?

2. I have an adminHeader.php which is included by all pages in the interface.
It starts the session, includes a css, and draws a set of menus for the
admin functions. Authorization is currently checked by each page, after
this header has been included. Maybe it should be checked inside this
header?

Everything works, so I don't necessarily need answers to these questions.
Just looking for resources on architecture, so that I don't go too far
down this road if there's something ugly in the design.

Thanks.
Jul 17 '05 #1
1 1343
Found one just now, any other ideas?

http://www.zend.com/zend/tut/tutsweatpart1.php

Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Spartanicus | last post by:
I've started work on a css layout tutorial. I expect that it will take a minimum of several weeks to get to a complete draft stage. I hope to get better feedback by publishing individual pages....
4
by: David Goldsmith | last post by:
Is there software that will take C++ source and generate from it a flow chart? Thanks! DG
28
by: Alf P. Steinbach | last post by:
A few days ago I posted an "Hello, world!" tutorial, discussed in <url: http://groups.google.no/groups?threadm=41ba4c0a.76869078@news.individual.net>. As I wrote then: <quote> because there...
24
by: Alf P. Steinbach | last post by:
The eighth chapter (chapter 2.1) of my attempted Correct C++ tutorial is now available, although for now only in Word format -- comments welcome! Use the free & system-independent Open Office...
7
by: Susan Bricker | last post by:
Greetings. As a relative newcomer to Access, I am having trouble deciding on how to design the form flow for updating and creating related records. I'm looking for a variety of suggestions so...
4
by: John L | last post by:
Hello! I'm somewhat new to C, and the problem is I'm not sure how to structure my programs. I keep ending up with massively long main() functions that look like this: int main(void) {...
5
by: Rafael Pivato | last post by:
I need help declaring this structure in VB. Particularly the bit flags, like fOutxCtsFlow. typedef struct _DCB { DWORD DCBlength; DWORD BaudRate; DWORD fBinary:1; DWORD fParity:1; DWORD...
6
by: encoad | last post by:
Hi everyone, I'm new to C# and I am building website which allows users to fill out various forms. All is going well, however I'm having a bit of trouble with one particular issue. The main...
2
by: Omar Abid | last post by:
Reason of this project: Error handling is one of the most difficult thing that may afford a programmer. It isn't as easy as you think and handling errors in a program some time can make errors...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.