473,216 Members | 1,296 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,216 software developers and data experts.

Tut needed on PHP + OOP

Hello All:

Is there a good tutorial/article on the web for Object oriented
programming with PHP in the context of HTML (or XHTML)?

I have looked around on Google, but perhaps with wrong keywords.

Best regards,
Animesh
Sep 3 '08 #1
5 1352
NC
On Sep 3, 1:22 pm, Animesh K <animesh1...@gmail.comwrote:
>
Is there a good tutorial/article on the web for Object oriented
programming with PHP in the context of HTML (or XHTML)?
Have you tried the obvious:

http://php.net/OOP (OOP in PHP 4)
http://php.net/OOP5 (OOP in PHP 5)

As to the "OOP in the context of HTML", you probably need to read up
on DOM (Document Object Model) and its implementations in PHP:

http://php.net/DOMXML (PHP 4)
http://php.net/DOM (PHP 5)

Cheers,
NC
Sep 4 '08 #2
NC wrote:
On Sep 3, 1:22 pm, Animesh K <animesh1...@gmail.comwrote:
>Is there a good tutorial/article on the web for Object oriented
programming with PHP in the context of HTML (or XHTML)?

Have you tried the obvious:

http://php.net/OOP (OOP in PHP 4)
http://php.net/OOP5 (OOP in PHP 5)

As to the "OOP in the context of HTML", you probably need to read up
on DOM (Document Object Model) and its implementations in PHP:

http://php.net/DOMXML (PHP 4)
http://php.net/DOM (PHP 5)

Actually I did look at php.net; I was looking at some constructive
example rather than principles and isolated examples of OOP. For
example, an explanation of creating a blog with PHP + OOP.

I can try to decipher some frameworks like Wordpress or Cake, but that
will be cumbersome to understand.

Thanks,
Animesh
Sep 4 '08 #3
NC
On Sep 4, 11:36 am, Animesh K <animesh1...@gmail.comwrote:
>
Actually I did look at php.net; I was looking at some constructive
example rather than principles and isolated examples of OOP. For
example, an explanation of creating a blog with PHP + OOP.

I can try to decipher some frameworks like Wordpress or Cake,
If memory serves, Cake actually has a tutorial that describes creating
a simple blog... WordPress, meanwhile, gets by with very little OOP;
it does use some OOP internally, but its extension mechanism (hooks
and filters) is purely procedural. Incidentally, so is Drupal's...

Cheers,
NC
Sep 4 '08 #4
NC wrote:
On Sep 4, 11:36 am, Animesh K <animesh1...@gmail.comwrote:
>Actually I did look at php.net; I was looking at some constructive
example rather than principles and isolated examples of OOP. For
example, an explanation of creating a blog with PHP + OOP.

I can try to decipher some frameworks like Wordpress or Cake,

If memory serves, Cake actually has a tutorial that describes creating
a simple blog... WordPress, meanwhile, gets by with very little OOP;
it does use some OOP internally, but its extension mechanism (hooks
and filters) is purely procedural. Incidentally, so is Drupal's...

You are right that CakePHP has a tutorial to get a working blog. But it
does not serves as an example to understand "how to construct an OOP
framework in PHP for html output."

That's the goal I have in mind.

Thanks,
Animesh

Cheers,
NC
Sep 8 '08 #5
Jensen Somers wrote:
Animesh K wrote:
>NC wrote:
>>On Sep 4, 11:36 am, Animesh K <animesh1...@gmail.comwrote:
Actually I did look at php.net; I was looking at some constructive
example rather than principles and isolated examples of OOP. For
example, an explanation of creating a blog with PHP + OOP.

I can try to decipher some frameworks like Wordpress or Cake,
If memory serves, Cake actually has a tutorial that describes creating
a simple blog... WordPress, meanwhile, gets by with very little OOP;
it does use some OOP internally, but its extension mechanism (hooks
and filters) is purely procedural. Incidentally, so is Drupal's...

You are right that CakePHP has a tutorial to get a working blog. But it
does not serves as an example to understand "how to construct an OOP
framework in PHP for html output."

That's the goal I have in mind.

Thanks,
Animesh

>>Cheers,
NC

Chances of finding such a tutorial or book are highly unlikely. You will
need to learn the individual parts and combine them into one solid piece.

A few books I can recommend are "Advanced PHP Programming (Sams
Publishing)" and "Professional PHP5 (Wrox)"

On a side note: Why do you want to construct an OOP framework from the
ground up? It's a lot of work on your own, it's hard to maintain and
write new features at the same time. Like so many others I made an
attempt to write one a few years ago but I realized in time that it was
just too big and I should redirect myself towards using and contributing
to an existing framework. CakePHP, Symphoni, even Drupal and Joomla
(allthough not fully PHP5 OOP) have a very large community behind them
which take care of 1001 tasks ranging from security issues, new features
and support.
Thanks Jensen. May be my approach is wrong, but I want to build a _small
one_ to understand the issues in making such a framework. I would love
to contribute to cakePhp or symphony (provided I reach any level of
expertise).

Right now, even naming conditions are a mystery. Thanks for the names of
pertinent books.

Best,
Animesh

Sep 8 '08 #6

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

Similar topics

0
by: System | last post by:
Hello All, Redhat 9.0 Mysql 3.23.56 ==> Running I want to upgarde to 4.0.13 but this is the error it says: # rpm -Uvh MySQL-server-4.0.13-0.i386.rpm warning: MySQL-server-4.0.13-0.i386.rpm: V3...
8
by: Stephen | last post by:
I am trying to add some code to below to include a datatable and fill the datatable. The reason for doing this is so as I can check to see whether there are any rows returned by the stored...
13
by: Joe Feldman | last post by:
This position is located in the South Bay Area in Northern California. If you are interested please send me your resume in a word .doc so that I can review it. If this does not look like a match,...
0
by: Cindy B | last post by:
Please send your resume and position to Cindy@AtlanticResource.com! I CAN NOT accept candidates that ARE OUTSIDE OF THE US! NO PHONE CALLS PLEASE! Email your resume to me! Position:SQL...
3
by: Wade | last post by:
I would like to install the .Net 1.1 framework on a Web Server running W2K to be able to run ASP.NET files, but I'm not sure where to find the files I need for the .Net framework. I have ".NET...
17
by: dingoatemydonut | last post by:
The C99 standard states: "In the abstract machine, all expressions are evaluated as specified by the semantics. An actual implementation need not evaluate part of an expression if it can deduce...
5
by: Steve | last post by:
Hi, I am sitting down to design our next set of internal apps. I would like to approach this in a way that would allow me to break logical parts of the application that handle specific tasks...
0
by: ultradiv | last post by:
I have a VB.NET application partly built that produces an xml output (just a file at present) I have a .NET webserver and SQLserver 2000 I need to be able to send the xml to the webserver/database...
28
by: Ian Davies | last post by:
Hello I would appreciate some help from someone who has knowledge of working with css, php javascript and how they interact. Ive been working on a task for the last few days and have started to...
37
by: C_guy | last post by:
Does anyone know of a (hopefully free) tool that can traverse a project and determine which "#include"s are not needed or needed in every .C file? This would be helpful in removing header...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...

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.