Added: 9 months ago
From: JREAMdesign
Views: 12,281
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (49)

Sign In or Sign Up now to post a comment!
  • I'm a big fan! Thanks for this tutorial. I'll come back and watch this a few more times and maybe eventually it'll sink into my thick procedural brain

  • wow, i just find solution of my problem!!! its fucki*** opera browser!!! i dont know how, but i firefox and other browser styles are ok!! :)

  • Comment removed

  • i have a little problem

    when i was create default.css an when i type it into browser i see url array:

    Array ( [0] => public [1] => css [2] => default.css )

    what i do wrong?

  • I have a question, is there any chance to do this without htaccess mod rewrite? if is how?

    PS. thanks for tutorial, really nice one.

  • you can actually just write @$_GET['url'] (as u can see with an @ sign) to shorten the isset part ... it will work

  • 9:15 - No, not an error in JavaScript, but you cannot have your own JS code between the script tags if the script tag already has a source( src param ). Put your inline js code( the alert(1) thing ) between another pair of script tags.

  • Many thanks! I'm using this tutorial and it's wonderfull. Thanks to you, I finally can understand the MVC pattern design and how using it.

    Today I'm working on integrating your model with the Doctrine ORM in my own way, but I never had achieved it without this tutorial =)

    The best tutorial I have ever seen!!! Greetings

  • @wiiiTo haha thanskjs

  • One question, in the bootstrap when you are setting the index to defualt page why not just $url = isset($_GET['url']) ? $_GET['url'] : 'index' ; ?

  • @Tarrelit You can do this, this series is to help you understand the foundation of MVC and integrate things your own way as you see fit :)

  • @JREAMdesign alright! anyhow, good work this thought me alot!

  • thanks for sharing

  • @Tarrelit Its an array =)

  • Thank you very much for your tuts, man! I enjoy watching them, especially knowing that you are a Christian like me...it makes me happy. Thanks again.

  • 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

  • "Refresh -Its not working, edit code, Refresh -NOPE"

    Made my day :D

  • if you try to go to a non-existent here (form ehample: localhost /ddasdasasd, you will get an error: Fatal error: Class: localhost /ddasdasasd not found.

    This problem has a simple solution:

    if(class_exists($url[0])){ $controller = new $url[0]; $controller->loadModel($url[0]­); } else {  self->error(); }

  • @xeqlool insert this code afret ($file = 'controllers/'.$url[0].'.php';­) block.

    I hope you understand me

  • Thank you for the tutorial. It's nice and clean. :)

    Quick note: Include your JS in the footer. JavaScript at the header means it loads it before the HTML.

  • Its so dirty :)

  • I would like to see the part related to passing the "blah" function to the view

    anyway I have tried to do so, and what I came up with that I couldn't pass any variable to the view class like "$this->view->msg" except in the constructor of the help controller class same for the "blah" function

    $this->view->blah = $model->blah;

    doesn't work if put in the "other" method

  • Maybe you can throw the source code that you make? Fiamma06@yandex.ru

  • Спасибо. Очень понравилось... Может можно где исходники скачать? Чтобы окончательно разобраться?

  • @kistenalex Sorry i dont understand LOL

  • @JREAMdesign He sais: "Thank you. I liked very much ... Maybe you can give the source code for download? To finally understand?"

  • @kistenalex в описание исходного кода

  • @kistenalex Исходники можно скачать на сайте JREAM в разделе Lab. Там вы найдете раздел Oren-Source. В этом разделе есть исходники на все уроки. :)

    @JREAMdesign, kistenalex asked: where i can download source of this project :)

    I apologize for my bad english :)

  • Comment removed

  • Comment removed

  • Comment removed

  • @kistenalex проверим описании

  • @kistenalex можно на его сайте jream com/lab/open-source точку сам поставишь в ссылку

  • This is by my honest opinion the best tutorial I have ever seen. The speed is good, all the details are explained, you go in depth and don't just do things half way.

    Need to watch your other tutorials to see if they are even better!

  • @rockYhre Wow thanks man!

  • Are you going to do a Part 3? Maybe put the layout in a class and such? Such us auto loaders? Thanks!

  • I didn't see the chicks...lol. Thanks for part 2 - really like these tutorials.

  • @BopjoWebDesign Bwahaha, sure no prob!

  • "and now we have a CMS that looks .... neat"

    I laughed my ass off the chair :D

  • @noherczeg hahaha

    

  • phenomenal. thanks for spending the time to do this series. with all these php frameworks leaving something to be desired, maybe its time to take a shot at laying my own foundation. like MelvinSF, when i get to view time its very hard for me to not just break out and do it inline. i often have trouble separating logic in my head like "this should be controller, this should be view" etc. thanks again - love it.

  • this guy is good and its pretty obvious...

    "SALUTE"....

    KEEP UP THE GOOD WORK...

  • YES... part 2 of a great tutorial.

    thank you for a down to earth explanation. this surely clarifies a lot.

    Keep them coming :P

  • @eracoon Glad to help sir!

  • Thanks! I've been building my own little framework (with stuff like routes, authentication and validation) for a while now, but never actually got to the View part, so I was wondering what would be a good way to go about that.

    I've pretty much finished it, will probably do some rewriting now. You learn so much while doing these things, by the time I'm halfway done I see all kinds of things I did early-on that could've been done better.

  • @MelvinSF Thats how it goes! The "Bootstrap" is often called "Dispatcher" or "Front Controller", I don't know for sure I just like to call it Bootstrap. I think building your own MVC is the best practice with OOP apart from writing an OOP game.

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