I want to build a new social networking website called Speedy Net. I want to use PHP, Javascript and MySQL (LAMP), but I need to decide if I want to use a PHP framework. someone recommended to me Yii framework. I would like to know what are the advantages and disadvantages of using a PHP framework such as Yii? I want to develop the website as quickly as possible, but I also want to design it specifically, for example all URLs should be short and never contain the .php extension (for example www.speedy.net/info and not www.speedy.net/info.php ). Each user will be able to create pages with usernames, under the main website (for example www.speedy.net/urievenchen ). I wrote more details about the website in the open discussion forum on sourceforge
[ https://sourceforge…s/forum/1321736 ], if you want you can read it there and participate. Also, I need more programmers. If you want to participate, please contact me by email or write on the forum.
I have another question - how do I implement the URL in PHP using the Yii framework? I want to create some pages, for example www.speedy.net/about , but users will also be able to create pages such as www.speedy.net/username . A user will be able to create up to 10 pages with usernames, and unlimited pages under his username. Also, I don’t want to use the “?=” notation at all, only URLs with slashes. for example www.speedy.net/urievenchen/photos will lead to my photos. www.speedy.net/photos/urievenchen will be the same. How do I implement the URL? I know it works in my blog [wordpress], but not on the main website.
yes you can do such urls via url manager and between .htaccess rewrite methods are also in apache
you can use Yii to build powerful social networks
and
only difference in php and php frameworks, frameworks such as yii has predefined classes in it, so it helps to reduce your coding work and no doubt yii is v.speedy and fastest php framework.
Yii yiic and Gii tool helps you to create your basic structure of your code v.easily
It happen that I wrote an article about exactly this - advantages and disadvantages of framework programming, with a special reference to Yii framework. If you are interested in reading it, please contact my via PM (personal message) and I’ll send it a copy of that article.
Like were? A cookbook article? I’m not sure, if it is enough Yii-oriented to be published there.
I’ve sent it to Qiang with proposition of publishing somewhere and got reply that article is OK (with few minor corrections) but no reference to publishing it among community! :] Therefore I assumed that it is it much theoretical bla bla bla to be shared among specific Yii community! :}
As a part of preparation for above mentioned article I’ve read two or three Ph.D. theses about theoretical background and all the work done upon creating own framework. All I can say after that reading is that Qiang has done something that only a really small group of people on this planet is able to do! I don’t know like others, but I personally would have to be hit by a low flying airplane, directly to my head, to get at least thinking of creating own framework! :]
Yeah… and after all those years you wake up one day or another and see what a person like Qiang done within only three years, which is far, far better than this bunch of reusable code and you think to yourself: Damn, I was stupid! ;} :} ;}
For permanent pages you could consider using urlManager with including index.php in address turned off and by creating new controller (for example aboutController) with default action showing contents of that page. But this is as ugly solution as we can imagine. Therefore, your idea with using that extension sounds much more reasonable.
For non-permanent user creatable pages, I would rather consider using .htaccess file or permanently configuring Apache server so it would threat (redirect) pages like yourpage.com/username to for example yourpage.com/users/showuser?user=username. Then you could create simple usersController with showuser action to show whatever you want for passed username.
Since htaccess is already being used to redirect all requests via index.php, how would that work? Also how will it determine that mysite.com/username refers to a user page, rather than another page on the site?