YACMS question

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

YACMS question

Post by alex.barylski »

:P

I know you all hate me already...

In designing or beginning building of version 2.0 my primary intentions have changed...

1) Use a database (adodb) to store article content
2) Use LDAP for authentication/group details
3) Allow CMS to be used on many domains using single centralized installation
4) Use mod_rewrite to redirect web page requests, etc...
5) Use Smarty to generate views

Code: Select all

$res = _select_article($_GET['idx']); // Pull article title, content, etc...

$smarty->assign('title', $res['title']);
$smarty->assign('body', $res['body']);

echo $smarty->fetch('tmpl/default.tpl');
Considering that every page would be generated from something like the above and I want to use static Smarty templates (in the sense their hardcoded by programmer) all within a single index.php?idx=233

How would you propose integrating advanced functionality into the CMS such as a realty listing module???

Hacking the realty module into the index.php is an option, albeit not a very good one...

What do you think?

What are some features, suggestions, etc you would have for a CMS???
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Use your page as a controller and pipe modules through it using _GET. Hide the get with mod_rewrite. That is what I am doing for my daughters swim league site right now. One page, many modules and pages, all piped through the one page.
User avatar
MrPotatoes
Forum Regular
Posts: 617
Joined: Wed May 24, 2006 6:42 am

Post by MrPotatoes »

Everah wrote:Use your page as a controller and pipe modules through it using _GET. Hide the get with mod_rewrite. That is what I am doing for my daughters swim league site right now. One page, many modules and pages, all piped through the one page.
that's exactly what i'm doing with myfront controller minus the mod re-write.

i'm looking to be able to redo the full URL in a certain way but it's a little beyond my abilities currently (not for long MUHAHAHAHAHAHAHAHA!) so i gotta wait and get other things finished first

anyways, what they said
Post Reply