PHP: Create Your Own MVC (Part 3)

Loading...

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

Uploaded by on Jun 30, 2011

Join Forum @ http://jream.com/forum
In this tutorial we make some changes and create a login form with a database connection;

Source Code @ http://jream.com/lab/open-source

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (JREAMdesign)

  • Thank you very much for this video! It was very useful for me! Especially I liked PDO.. I didn't even know that this cool thing exist! Thank you for you professionalism! I'm your huge fan! :)

  • @yesnikita Glad to help! PDO is awesome :D

  • please sort out your keyboard, its the most annoying thing. Apart from that good tutorials!

  • @deamer44 Is the keyboard making that beep noise you mean?

  • Thank you for making and uploding such wounderful tutorials it help us a lot for learning,understanding and to writing good codes,Thank you

  • @sumeetjain10 You welcome :]

Top Comments

  • Nice video as always. Although I hope people watching this understand that the code isn't exactly the cleanest, since it's mainly for illustration purposes.

    Just a few terms that popped up in my mind as I watched this, that other people might want to read up on: "password salting" (greatly improve security), "dependency injection" (design pattern) and "test-driven development" (may be boring to some, but it allows for much more confidence in your code, no more "seems to be working..").

see all

All Comments (22)

Sign In or Sign Up now to post a comment!
  • Hi, tutorial is wonderful. but

    I have the same .htaccess file to force all files to go through a index.php file but my references to the css, javascript, images, not working. I think is the htaccess that is causing this, if so, how can I solve this?

    Please help me.

    thanks

  • @arzuerdem check the version of your php ....

  • I don't get why this part works in your controller.php file:

    $model_name = $name . '_Model';

    Since $name is all lowercase, shouldn't it be something like:

    $model_name = ucfirst($name) . '_Model';

    ?

    Because the class name is like Login_Model and the file login_model.php.

    I really don't know, just wondering how come it works :s

    Anyways, thx for the tuts :)

  • Really enjoying these tutorials, thanks for taking the time to upload them! If you are using php 5.3.0 would you just use get_called_class() in the Controller constructor? Something like.. $className = get_called_class().'_Model'; $classFile = MODELS_PATH.DS.strtolower(get_­called_class()).'_model.php'; if (file_exists($classFile)) { require $classFile; $this->model = new $className(); }

  • Dear Sir,

    First of all I will appreciate to you for your tutorial. I actually have a little problem. I have exactly your tutorial as you have done. It is ok in my localhost but when I publish in ftp I haven't got any view:(

    Could you please help me about the reason why it is not shown?

    Thanks and kind regards,

    Arzu

  • Hello brothers... I need just a litle help.. on this MVC I'm trying to change display on login/index if login failed.

    soo.. before feild to display : Login and after failed..

    let's see something like: Login failed please try again... and then form fields... is that possible??

    Thanking you Andrew

  • @JREAMdesign no a loud clicking noise, I'm guessing you're on a laptop?

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