Jump to content

Do you use PageClasses/Components?


FeelinMyself

Recommended Posts

Hi Guys,

 

I'm new to this forum, so I don't know how much this has been discussed in the past.

 

With my own pages, I've been making a "pageclass" in each PHP file, like this:

 

NewsList.php:

class NewsList extends Page {

}

 

Also I'm experimenting with sub-pages, or "controls", and integrating them using templates.

 

For example:

 

require_once("Login.control.php")

$login = new Login();

$template->set("login", $login->get_HTML());

 

So I just wanted to share that and see if anyone else is doing the same and if you've come across any difficulties with this?

 

(One difficulty I'm having right now is with Ajaxing. I'm trying to decide how to dynamically update *only* controls whos data has CHANGED during an AJAX request, so that I don't send too much HTML back to the client.)

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.