473,382 Members | 1,733 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,382 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 1357
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.