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

PHP: Create Your Own MVC (Part 4)

Loading...

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

Uploaded by on Aug 4, 2011

We do some XHR (AJAX) Calls within our MVC. If you need help here are other tutorials:

JSON: http://www.youtube.com/watch?v=MfKdn9VrBJ8
JQuery Post: http://www.youtube.com/watch?v=P2PgQwYUTQM


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

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (JREAMdesign)

  • 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

  • @arzuerdem You have to fix your Paths, you should probably have PHP error reporting on in your server (make an .htaccess file to do this) and youll see where your paths are going wrong

  • @JREAMdesign Dear Sir,

    Thank you very much for your answer.

    I have already fixed the paths, it is ok. As you can said I have made an .htaccess file to get error and I have got it now but the character coding is very bad and iti is not readable:(

  • @arzuerdem What do you mean? I do not understand. If its an Encoding error you may want to do this: Get notepad++, open your files with it, and go to Edit > Encoding > Encode in UTF8 without BOM .  That can fix whacky characters that PHP doesn't understand (It might show a [?] symbol where they need fixes)

  • If you don't know what to write, why not create a simple note taking application that writes to a database or an xml file or whatever you like. That's what I usually try do when I learn a new language.

    The very basic "insert only" approach can then be extended to allow deletions, updates, priorities, formatting, comments, reminders, login system with permissions, file upload, auto expiration and much more.

  • @TheSleepaholic Thats a real good idea!

Top Comments

  • Don't stop these vids these are awesome :)

see all

All Comments (30)

Sign In or Sign Up now to post a comment!
  • These videos are pretty nice but you could probably cut down on a lot of errors if you developed better habits regarding code cleanliness. Clean code is self-documenting and often speeds up debugging. It also makes it easier to follow along. The basic content is very good though, thanks for the info.

  • Hi! If i go to mydomain.com/views/header.php the browser shows me the file. Is there any way to disable this but allow the controller to include in the pages? I'm worried that users call pages without use of mvc.

    Tnx

  • first, thank your for the tutorial.

    my question: how can i integrate and use the smarty library into this framework?

    thank you

  • Thank you for awesome tutorials. 

  • @JREAMdesign Due to this problem I try to fix bootstrap.php, I rearrange the files which are shown with full extension..It is still ok in my localhost but the problem in ftp is not gone..Now I realize that if write URL?url=index or URL?url=login the pages are shown exactly. But I can't modify login/run with ?url=login/run..

    Thank you for everything..

    Regards,

    arzu

  • @JREAMdesign Dear Sir,

    I am really sorry that I couldn't explain clearly but I can say that I am just beginner..

    My problem is to show url pageI ..Url needs exact path with extension of the files..

    i.e. I can see the main page (URL)/index.php or only URL but not URL/index. Whenever I write URL/index I have got the error "404-Not Found". The same problem is for login. But this path (UTL/login) is worked in my localhost. The problem is after publishing ftp.

  • @JREAMdesign Dear Sir,

    I have found that my url is worked as this path: URL?url=login instead of URL/login...

    could you please help me what the problem is? Thanks and Regards,arzu

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