SitePoint Sponsor |
|
User Tag List
Results 1 to 13 of 13
Thread: Which framework
-
Feb 12, 2009, 19:01 #1
Which framework
I am creating a site with lots of content. I want to be able to update the content and have php automatically insert the new items into my webpages.
For example say I have a folder of articles as text files. I will add new files/articles to this folder -which also has sub-folders for different categories of articles.
I want php to scan the folders and automatically display the articles in my webpages, eg: in my webpage of articles about food -the php will find all the files/articles in the food subfolder of the articles directory and display a list of articles in a pre-defined css layout -with each article's title and description specified in the file. And do the same for each category of articles. Or maybe even perhaps if I specify category tags in the article files instead of using subfolders -the articles can appear in multiple categories.
I am quite happy -for now to create webpage/index controllers that grab the data from my articles directory, but having multiple categories that need to be updated takes a lot of time.
I only know how to create the simplest of php template systems for my outer html layout/shell. I presume I will need to create a more advanced sql database for the functionality I am looking for.
I am also interested in dynamically created webpages, but I understand search engines have trouble reading them. Is there is an application that runs dynamic php and webpage files and then compiles dozens or hundreds of webpages from them? I wonder if this kind of compilation is ever necessary, or if php/sql can do all the work on the fly and somehow make it perfect for search engines -I mean if the webpages do not exist(until requested to be generated by someone requesting a webpage via a link on my site), then they will only be crawled by search engines if you create an absolutley flawless sitemap and the search engine crawls the site map flawlessly -both of which I do believe impossible for a website with hundreds of webpages. Also there is the fact that dynamic php pages take a long time to load when requested by a user, so if I can spend a few hours compiling my own pages before I upload them to my live-server, then the pages will be ready online for people to view, as well as search engines for crawling purposes.
Also are there any frameworks anyone can reccommend?
-
Feb 19, 2009, 10:41 #2
- Join Date
- Nov 2008
- Posts
- 5
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I googled this myself, had a hard time picking a php framework also, everybody has his oppinion about wich is the best.
All that i can say is that at least this three where always in discussion and where somebody's best randomly: zend framework, cakephp, symfony.
I use akelos.
-
Feb 19, 2009, 11:15 #3I am also interested in dynamically created webpages, but I understand search engines have trouble reading them.
I wonder if this kind of compilation isever necessary, or if php/sql can do all the work on the fly andsomehow make it perfect for search engines -I mean if the webpages donot exist(until requested to be generated by someone requesting awebpage via a link on my site)...
Also thereis the fact that dynamic php pages take a long time to load whenrequested by a user...
-
Feb 19, 2009, 11:23 #4
- Join Date
- Jan 2005
- Location
- heaven
- Posts
- 953
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
There have been plenty of discussions on php frameworks, I'd encourage you to at least read through a couple of them. But when it comes to frameworks the main concern is usually whether to use a full stack framework like CakePHP, Symfony or Codeigniter or to use a glue framework like Zend Framework. Stack frameworks are
A glue framework provides you with a bunch of components that you can use together, but don’t necessarily have to. Zend Framework is a PHP glue framework, as it comes with all these cool components that you can pick and choose depending on what you need done.A full stack framework gives you everything you need to create your web app, and pretty much forces you to use it. CakePHP is a full-stack framework.Creativity knows no other restraint than the
confines of a small mind. - Me
Geekly Humor
Oh baby! Check out the design patterns on that framework!
-
Feb 19, 2009, 11:49 #5
- Join Date
- Mar 2008
- Posts
- 113
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Another full stack framework that's only PHP 5, but it is fully OO, is Kohana, it was based on CodeIgniter but more robust.
I'm not an expert in frameworks, used only two: CakePHP and Kohana, and I must say that I will never look back at CakePHP. Kohana is way more configurable and has a nice DB access library (ORM and pure DB).
-
Feb 19, 2009, 13:48 #6
- Join Date
- Apr 2008
- Location
- North Carolina
- Posts
- 438
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Be wary of Kohana if you plan on using it on a live site. It is still under heavy dev and future upgrades will probably require you to spend lots of time updatings your scripts.
This is why I stuck to CodeIgniter (also because of the better user guide and community)[read: PHP Sec. | CSRF | PCRE Mods | Encryption | Form Proc. | File Val.]
[tools: PHPEd | PHP Docs | jQuery | CI | SwiftMailer | CKEditor | reCAPTCHA]
-
Feb 19, 2009, 14:05 #7
- Join Date
- Feb 2007
- Location
- Brooklyn, NY
- Posts
- 22
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I have been happy using Fusebox for two years. Specifically, version 4.1 for PHP. I use it for ColdFusion as well.
-
Feb 19, 2009, 15:48 #8
I looked at cake and zend.
Just be looking at the source code I can tell that cake looks creepy
and zend looks good enough to use.
I also looked a drupal source and was not impressed.
Not that I am recommending zend, but just between zend and cake, go with zend.
I also wrote my own CMS that can do what you want. You can upload existing documents and it will convert them into html pages and add as new content. For example, you can upload a word document or a document created with OpenOffice and it will go into you page. It will even extract images and re-save them in your document has embedded images.
It does not have a good support for sub-folders, it does have category support now, but I will switch to 'tags' later.
anyway, take a look at http://opensourcecms.sharedlog.com/
-
Feb 21, 2009, 02:14 #9
- Join Date
- Mar 2008
- Posts
- 113
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
-
Feb 23, 2009, 19:50 #10
- Join Date
- Nov 2008
- Posts
- 5
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Very nice reply imaginethis, i didnt know that about zf.
-
Feb 24, 2009, 00:21 #11
- Join Date
- Apr 2006
- Posts
- 15
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
CakePHP or Codeigniter - are the two good choices.
Macronimous web solutions
Offshore web development services
www.macronimous.com
3000+ websites|400+ Customers|Services across the globe!|Since'99
-
Feb 24, 2009, 01:37 #12
-
Feb 24, 2009, 08:48 #13
- Join Date
- Apr 2008
- Location
- North Carolina
- Posts
- 438
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
CakePHP, I've never been fond of... it just looks messy.
CodeIgniter, well its most formidable positive is its user guide, seconded by its community. If you need help, there are lots of people in their forums to respond. I think its also the easiest framework to learn. If you have a basic understanding of OOP then all it takes is a quick read of the Getting Started section in the docs.[read: PHP Sec. | CSRF | PCRE Mods | Encryption | Form Proc. | File Val.]
[tools: PHPEd | PHP Docs | jQuery | CI | SwiftMailer | CKEditor | reCAPTCHA]
Bookmarks