tag:blogger.com,1999:blog-1691872865366176972.post183004351027862120..comments2023-05-29T18:02:21.021+02:00Comments on Elvis is still in the building: Start your own MVC Framework with PHPElvis Hsuhttp://www.blogger.com/profile/00425608105614748484noreply@blogger.comBlogger19125tag:blogger.com,1999:blog-1691872865366176972.post-41733964211490394722015-07-12T13:51:07.247+02:002015-07-12T13:51:07.247+02:00Hi Elvis, really it is a great tutorial, thanks a ...Hi Elvis, really it is a great tutorial, thanks a lot for adding the sample. right now am stuck with a controller because the secuence is this: controller/method/params, I do require to have the url for only this controller like this: news/single-history which I think it become, controller/param. So I don't know how to make the in between method a wildcard or remove that space to acomplish root.local/news/one-news. Any help is very appreciatedGabouhLnoreply@blogger.comtag:blogger.com,1999:blog-1691872865366176972.post-84564995733696531632015-06-06T13:55:52.497+02:002015-06-06T13:55:52.497+02:00If you add read method in your model, it should be...If you add read method in your model, it should be fine :)Elvis Hsuhttp://www.elvishsu66.com/noreply@blogger.comtag:blogger.com,1999:blog-1691872865366176972.post-64116118806903316922015-06-06T13:50:22.879+02:002015-06-06T13:50:22.879+02:00it is used for templateit is used for templateElvis Hsuhttp://www.elvishsu66.com/noreply@blogger.comtag:blogger.com,1999:blog-1691872865366176972.post-29909229181248888342015-06-05T18:38:59.154+02:002015-06-05T18:38:59.154+02:00why we have to register the globals?why we have to register the globals?Azrnoreply@blogger.comtag:blogger.com,1999:blog-1691872865366176972.post-89987434004934740582015-05-19T13:55:14.847+02:002015-05-19T13:55:14.847+02:00hi, really a good things for biggner..this is easy...hi, really a good things for biggner..this is easy and really very easy top understand i created another controller, but i got some error.Call to undefined method Model::read() <br />what can i do?Hari Hara Sudhannoreply@blogger.comtag:blogger.com,1999:blog-1691872865366176972.post-50067126208212053512015-05-15T12:50:05.124+02:002015-05-15T12:50:05.124+02:00Hi, thanks for your tutorial, I am thinking of app...Hi, thanks for your tutorial, I am thinking of applying this structure in different project, what changes i may have to make.luzannoreply@blogger.comtag:blogger.com,1999:blog-1691872865366176972.post-78669140312309639352015-05-10T21:59:12.811+02:002015-05-10T21:59:12.811+02:00Um, it would be the same way to request each pageUm, it would be the same way to request each pageElvis Hsuhttp://www.elvishsu66.com/noreply@blogger.comtag:blogger.com,1999:blog-1691872865366176972.post-39261284049048658512015-05-07T07:54:11.007+02:002015-05-07T07:54:11.007+02:00Good article, thanks for sharing this amazing stuf...Good article, thanks for sharing this amazing stuff on PHP.<br /><a href="http://www.nettechindia.com/software/courses/web-programming/web-development/php.php" rel="nofollow">PHP training course</a>Archana Nairnoreply@blogger.comtag:blogger.com,1999:blog-1691872865366176972.post-74230204743267742822015-05-03T18:48:51.914+02:002015-05-03T18:48:51.914+02:00Hi, thanks for your tutorial..,i downloaded and it...Hi, thanks for your tutorial..,i downloaded and it run succesfull. but can you teach me how to use ajax request in this framework??Robby Rahmananoreply@blogger.comtag:blogger.com,1999:blog-1691872865366176972.post-79310511187775255082015-03-19T17:33:05.408+01:002015-03-19T17:33:05.408+01:00Hi,
thank for the tutorial.
I have downloaded your...Hi,<br />thank for the tutorial.<br />I have downloaded your framework and I saw that you use minify in order to speed up the internet page load, isn't it ?<br />I have a question, reading the minify documentation, if I have high traffic I shoul use APC/Memcache adapters and I saw that you include it in your framework, could explain me how use it ?<br />Look forward your reply.<br />Regards<br />Andreaandreanoreply@blogger.comtag:blogger.com,1999:blog-1691872865366176972.post-8396750528482324262014-10-05T15:22:39.820+02:002014-10-05T15:22:39.820+02:00Hi, Mike,
Have a look at the Router.class.php.
I...Hi, Mike,<br /><br />Have a look at the Router.class.php. <br />If you change the following from<br />$cai = '/^([\w]+)\/([\w]+)\/([\d]+).*$/';<br />to<br />$cai = '/^([\w]+)\/([\w]+)\/([\w]+).*$/';<br /><br />it should work. But I would recommend you to add another condition in case you need numeric id :)<br /><br /><br />ElvisElvis Hsuhttp://www.elvishsu66.com/noreply@blogger.comtag:blogger.com,1999:blog-1691872865366176972.post-27642869164785501032014-10-05T14:25:46.620+02:002014-10-05T14:25:46.620+02:00How would I go about adding/building a custom rout...How would I go about adding/building a custom route?<br /><br />For example, instead of having "www.mysite.com/controller/action/1" (1 being an ID from a database table), it would be "www.mysite"com/controller/action/name" (the name column from the database table).<br /><br />Please reply back when you can. Thanks! :)Mike de Gruchynoreply@blogger.comtag:blogger.com,1999:blog-1691872865366176972.post-29973109439589125312014-08-17T21:53:28.647+02:002014-08-17T21:53:28.647+02:00Hi, Donny,
The blog.sql is the sql script to cre...Hi, Donny,<br /><br /><br />The blog.sql is the sql script to create a table for mysql server. The mvc/blog connects to mysql database to perform the model operations. You may need to configure your mysql server when you run the sample.<br /><br /><br />Cheers,<br /><br /><br />ElvisElvis Hsuhttp://www.elvishsu66.com/noreply@blogger.comtag:blogger.com,1999:blog-1691872865366176972.post-2652412885823062222014-08-17T18:13:36.191+02:002014-08-17T18:13:36.191+02:00Hi, Elvis.
I was downloaded the sample project t...Hi, Elvis.<br /><br /><br />I was downloaded the sample project too. And place all folders (extract it) under www. Running index (localhost/mvc) was worked fine, but when I click blog hyperlink (localhost/mvc/blog), i am not able to get blog page.<br /><br />And I try to var_dump $_route in www/mvc/public/index.php and got this result -->> string(38) "redirect:/teras-sosis/public/blog.sql?"<br /><br /><br />Any suggestion?<br />Thanks before.<br /><br /><br />--DonyDony Maulananoreply@blogger.comtag:blogger.com,1999:blog-1691872865366176972.post-39764518333647317042014-08-12T19:13:07.213+02:002014-08-12T19:13:07.213+02:00Hello, Sandip,
Thanks for your comment. Do oth...Hello, Sandip, <br /><br />Thanks for your comment. Do other pages work or just blog? Do you place all folders under www/or www/mvc folder?<br /><br />Cheers,<br />ElvisElvis Hsuhttp://www.elvishsu66.com/noreply@blogger.comtag:blogger.com,1999:blog-1691872865366176972.post-20881117621721146602014-08-11T14:56:03.324+02:002014-08-11T14:56:03.324+02:00i am not able to run this sample. i extract the pr...i am not able to run this sample. i extract the project mvc, copy and paste on www folder and try to run . it goes to public folder and a page is displayed, but when click on blog link it displays The requested URL /mvc/blog was not found on this server. is there any settingsandip nagnoreply@blogger.comtag:blogger.com,1999:blog-1691872865366176972.post-36197464588096449992014-06-18T10:44:44.627+02:002014-06-18T10:44:44.627+02:00Hi,
Thank you for your valuable comment. I will ...Hi, <br /><br />Thank you for your valuable comment. I will be changing the MySqlDataAdapter class from mysql_* to PDO in order to support PHP 5.1+<br /><br />Cheers,<br /><br />ElvisElvis Hsuhttp://www.elvishsu66.com/noreply@blogger.comtag:blogger.com,1999:blog-1691872865366176972.post-15094202533392162542014-06-18T08:24:08.457+02:002014-06-18T08:24:08.457+02:00Nice code for the most part. I understand that you...Nice code for the most part. I understand that you followed a lot of what Anant<br /> Garg did in his article. Unfortunately that article is from 2009 and the mysql_ api that he and you both used to write your sql queries is deprecated and has been deprecated for some time now. It's going to be removed in future updates if it hasn't been already.TraxoutMedianoreply@blogger.comtag:blogger.com,1999:blog-1691872865366176972.post-89997255697363205462014-05-21T00:14:47.417+02:002014-05-21T00:14:47.417+02:00PHP is a great way to start with career, but what ...PHP is a great way to start with career, but what many service providers do they Ref - <a href="http://www.asselsolutions.com/it-staffing/hire-net-developer/hire-asp-net-developer/" rel="nofollow">hire asp.net developer</a> as the ASP field gives more secure web applications, but smart and simple is the PHP.Adnoar austinnoreply@blogger.com