Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

PHP and AJAX demo

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
3,552
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Mar 21, 2010

This video shows the simplicity and quality of my PHP code. By using Doctrine as ORM and my own MVC pattern, i can do pagination in just one line. Adding new object (class Software in video) or editing existing one, takes just 2 lines. parent::add() will show the form, validate inserted data and finally, save object to database.
Admin part is 100% ajax, including image upload. Frontpage generates SEO links and writes all metatags needed for better search engine indexing.
Entire point of this video is that any programmer could easily jump in and upgrade this program. I do not leave 'artistic' approach like mixing view and logic, creating JS in PHP or similar.
If you are interested, contact me and i will give you username and password for live demo. You can also subscribe and get notified when i post new video; this one is made in-a-hurry, so it shows just a small part.

Also, this program saves images in google-friendly names. For example; you add new object with name 'Team Viewer'. When you save it, all images belonging to that object will be renamed to 'team-viewer.jpg', 'team-viewer-2.jpg', 'team-viewer-3.jpg' and no image will be overwritten.

PS:
Annotations would explain things. You can turn them off but due to low quality of this video, you might not see what i want you to show.

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (srbin013)

  • Jel si Dokrora koristio? Nisam lepo zagledao ali cini mi se da je Doctrine?

  • @MrShipy

    Naravno! Ja sam totalni fan Doctrine-a, ne bih mogao sad da zamislim rad bez njega.

  • @srbin013

    Ja se trudim da predjem na njega ali mi je jos uvek zeznut.... Jos uvek sam zend FW neznam kako da startujem doktora... Jel bi mogao da u 2 reci kazes kako sam start ide sa doktorom pa da ja malo se navikavam.. Hvala

  • @MrShipy

    Use english.

    Doctrine will take you about a week to learn, 6 months to master it. Advanced features like Behaviours and Listeners are a must for any serious programs. Best way to start is to write Unit tests for DQL's first, to get a feeling. I know that ZF has an easy way for implementation, you need to google for solution.

  • Nice.....I'm interested in the way you structure you code.

  • @dmwilson86

    In a few weeks, I will create new video that will show directory structure and creation of controllers in a few mins. Stay tuned....

see all

All Comments (10)

Sign In or Sign Up now to post a comment!
  • You got a very nice and informative tutorial but unfortunately your video quality is damn. Thumbs Up for your Tutorial.

  • i didn't understand what u wanted to express with deep validation , waiting ur video , good work otherwise ;) , we need more structured applications out there, it's a nightmare to maintain some of them,

  • @bluesy666

    Actually, NO. I am using my own MVC because I have found a way to make things even more simple than in Symfony. The biggest problem is DEEP validation; Doctrine (and thus Symfony) doesn't give me errors in $errorStack for child objects so I would not be able to mark them in form. I have it fixed now; deep validation is not really visible here, i will create new video to demonstrate it.

    PS:

    new version is even more simple :)

  • ur obviously using symfony framework , help a lot to do things quickly

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more