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
my .htaccess is good. i download your source - it work. but my code doesnt. it very annoying, i dont know where the problem are and how to solve it... arrgrh!!!
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.
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?
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.
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 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!
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.
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.
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
andypooz77 1 week ago
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!! :)
obeliks94 1 month ago
This has been flagged as spam show
my .htaccess is good. i download your source - it work. but my code doesnt. it very annoying, i dont know where the problem are and how to solve it... arrgrh!!!
obeliks94 1 month ago
Comment removed
obeliks94 1 month ago
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?
obeliks94 1 month ago
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.
misha477829 3 months ago
you can actually just write @$_GET['url'] (as u can see with an @ sign) to shorten the isset part ... it will work
carreonOfficial 4 months ago
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.
Lalli1987 4 months ago
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
carlosprimorac 4 months ago
@wiiiTo haha thanskjs
JREAMdesign 5 months ago
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 5 months ago
@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 5 months ago
@JREAMdesign alright! anyhow, good work this thought me alot!
Tarrelit 5 months ago
thanks for sharing
urnotcool22 2 months ago
@Tarrelit Its an array =)
williamxsp 3 weeks ago
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.
jonathanmarvens 5 months ago
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 6 months ago
"Refresh -Its not working, edit code, Refresh -NOPE"
Made my day :D
Cezarijus 6 months ago
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 6 months ago
@xeqlool insert this code afret ($file = 'controllers/'.$url[0].'.php';) block.
I hope you understand me
xeqlool 6 months ago
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.
Fabien27 6 months ago
Its so dirty :)
flakerimi 7 months ago
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
mostafavolcano2003 7 months ago
Maybe you can throw the source code that you make? Fiamma06@yandex.ru
kistenalex 7 months ago
Спасибо. Очень понравилось... Может можно где исходники скачать? Чтобы окончательно разобраться?
kistenalex 7 months ago
@kistenalex Sorry i dont understand LOL
JREAMdesign 7 months ago 10
This has been flagged as spam show
@JREAMdesign He said, "Thank you very much, but do you have a download for me to better understand?" -- translate.google.com is your friend. :-)
adamjonesboston 7 months ago
@JREAMdesign He sais: "Thank you. I liked very much ... Maybe you can give the source code for download? To finally understand?"
Kmil0000 6 months ago
@kistenalex в описание исходного кода
Kmil0000 6 months ago
@kistenalex Исходники можно скачать на сайте JREAM в разделе Lab. Там вы найдете раздел Oren-Source. В этом разделе есть исходники на все уроки. :)
@JREAMdesign, kistenalex asked: where i can download source of this project :)
I apologize for my bad english :)
xeqlool 6 months ago
Comment removed
xeqlool 6 months ago
Comment removed
xeqlool 6 months ago
Comment removed
frosty1433 4 months ago
@kistenalex проверим описании
frosty1433 4 months ago
@kistenalex можно на его сайте jream com/lab/open-source точку сам поставишь в ссылку
PsychoChechener 2 weeks ago
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 8 months ago 8
@rockYhre Wow thanks man!
JREAMdesign 8 months ago
Are you going to do a Part 3? Maybe put the layout in a class and such? Such us auto loaders? Thanks!
coolcarlrox 8 months ago
I didn't see the chicks...lol. Thanks for part 2 - really like these tutorials.
BopjoWebDesign 9 months ago
@BopjoWebDesign Bwahaha, sure no prob!
JREAMdesign 9 months ago
"and now we have a CMS that looks .... neat"
I laughed my ass off the chair :D
noherczeg 9 months ago
@noherczeg hahaha
JREAMdesign 9 months ago
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.
goon245 9 months ago
this guy is good and its pretty obvious...
"SALUTE"....
KEEP UP THE GOOD WORK...
nargetey 9 months ago
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 9 months ago
@eracoon Glad to help sir!
JREAMdesign 9 months ago
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 9 months ago
@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.
JREAMdesign 9 months ago