Generating SEF pages in a php/mysql/apache environment - php

I'm planning to create a blog using php/mysql on apache (probably on a linux machine, if this info is at all important). I would like to test out YII framework for that purpose, and would also like to have fun while developing.
Since I used to develop in Joomla in my past, I know the importance of Search Engine Friendly URLs, and I would like to implement it somehow.
Any ideas on what to use with some general (or specific) instructions would be appreciated.
Thx

Yii seems to have a full-fledged guide on how to set up nice URLs.

Related

Can I have a Wordpress site with a CakePHP subsite?

I'm hoping to build a website which needs to be done quickly. The website itself should be fairly basic, so I was going to just do that in Wordpress. However, it also needs functionality to allow people to register and then interact (none of this appears on the website, just a link to the user login bit). I think it's going to be easier to build that bit in CakePHP as it has some very specific functionality that I don't think I'd find a WP plugin for.
Is there a way that I can build my website.com in Wordpress and then have something like my website.com/userarea where user area is built in CakePHP?
Yes it's possible, but requires a rather esoteric configuration of your webserver, and that's assuming you are proposing to implement the cakephp part with a front controller architecture. Even if you are a nginx/apache guru I'd recommend running the two components under different vhosts.

Using PHP, how can I determine which CMS or framework is used?

Using PHP, can I find out which CMS or framework is used on a particular website. Eg Wordpress, Magento or Codigniter, Laravel.
I've tried this approach: http://dailyblogging.org/internet/detect-cms-and-scripts-of-websites/
This is what I actually want, but in code form, not as an online service: http://onlinewebtool.com/cmsdetector.php This should be a PHP script that does not run as an online service.
What will it take to do this, or at least give me a hint?
Update 2018
Github repo moved:
https://github.com/AliasIO/Wappalyzer/blob/master/src/apps.json
There is a Chrome extension called Wappalyzer.
You can see some regexp which are included in the wappalyzer project for detecting servers, cms and frameworks.
Maybe you can include this and write a php script that uses this:
https://github.com/ElbertF/Wappalyzer/blob/master/share/apps.json
For Drupal, view source
And if you find
/sites/all
/sites/
For including image/javascript/css, its Drupal based site.
Same way, if you find wp_content, its wordpress.
For MVC ftameworks, its difficult to determine as url routing is same for all.

How would I use the Joomla Framework vs. creating Joomla extensions?

I have experience with Joomla and have modified and wrote some simple Joomla extensions. I don't have experience using one of the popular PHP frameworks (such as CakePHP), but I was thinking about using the Joomla framework because I'm familiar with Joomla. How would I use the Joomla framework for a software project instead of using regular Joomla and writing the extensions needed for it to extend it's capabilities? Thanks!
The basic idea is that you:
Get a copy of either the whole framework or just the packages you need+dependencies (from github or composer) or use the older copy that is shipped with the CMS,
Bootstrap your application (JApplicationWeb or JApplicationCli).
Write your code using the MVC structure provided.
The big difference with writing a totally independent application is that you are doing just that, you need to build everything in the application whereas in the CMS there are already a lot of things in place. (The good part of that is that you can make new code with no legacy concerns.) For example, if you look at the JIssues project you'll see that they had to think about things like authentication. So as you would expect writing a simple application is simple, writing a complex one is complex.
You can see many examples of framework applications around, ranging from the ones found in the CLI folder of your CMS installation to JIssues, and of course the three web applications in the CMS are all examples of applications on the framework.
The Joomla Framework is intended (among other things) to be the platform upon which you can build a web-application. The framework is like the frame of one of those motorcycles they build on "American Choppers." It provides the backdrop so that you can hit the ground thinking about your app without worrying about User Authentication, database connection, and a thousand other things like those that get in the way of bringing your app to its potential audience.
If you're trying to extend Joomla, the current edition is what you should be using.

php framework with sqlite, orm, i18n, l10n search addon

I'm trying to find a PHPframework to build small, multilingual sites.
Do you know a PHP framework with support for:
Sqlite (it will be little sites so no performance problem and good for copy-paste from development to production)
ORM
i18n & l10n
easy search add-on
ability to just copy-paste no need to change config for going from devel machine to production (staging)
and if you know cms with those features put it too.
Symfony 1.4.x comes with all this built it, except for searching which can be implemented using Lucen.
It has great documentation that walks you through the entire process of making a real and useful website using all the features you've mentioned. See it here.
I am also searching for such a Framework. I found one called YII. It makes use of SQLITE by default. Very easy to setup. But I am not sure if it has all the features that you are looking for.
Link to Site: http://www.yiiframework.com/download/
Detailed Documentation is also available fro reference.

Simple CMS (PHP/Python)

I am looking for an easy-to-use CMS that can be used to host a multilingual website with photo galleries and a few forms.
I am open to PHP/Python, excluding WordPress/Joomla/Drupal.
Django CMS 2.0 is a great multilingual CMS.
Views are cached and being a pluggable Django app makes it very extensible.
You would like the plugin approach of the design, is very helpful to integrate existing apps to a project.
http://github.com/digi604/django-cms-2.0/tree/master
Try CMS From Scratch. It's hard to get any simpler or easier.
Also, don't forget http://www.opensourcecms.com/. They host demo versions of most CMSs out there that you can try.
If you're open to Ruby, see Radiant CMS: "Radiant is a no-fluff, open source content management system designed for small teams." Also Mephisto.
For something in Python that isn't Django, you can also try Pylons.
Checkout django-blocks. Has multi-language Menu, Flatpages and even has a simple Shopping Cart!!
Since you tag django, I can suggest you a reusable Django application called django-photologue. IMHO it's worth it to use a CMS capable framework like Django rather than using a ready made CMS because in the future there would be a chance for you to customize your application. Using a ready made CMS I reckon is not as flexible as using a framework like Django.
One of your tags is 'django'.
I don't know if I would call Django simple, but it is easy
to use - once you know how... It has a very steep learning
curve.
Perhaps you are really looking for which framework to learn
and use for web-development for the next many years? I that
case I would recommend Django. Others systems I considered
were (all PHP based):
Joomla
CMSMS (CMS Made Simple)
Drupal
CodeIgniter,
CakePHP
Symfony
Smarty
Concrete5.
I have completed a Django project.
The problem is that the lighter CMS systems out there don't usually offer a lot - which is why WordPress/Joomla/Drupal have made it so big. WordPress actually takes 9 MB to load the index page on a vanilla install.
Have you looked at http://chryp.net?
If you know how to program in Python or PHP then there are MANY CMSes built by the users of frameworks that offer a lot if you don't mind messing with code.

Categories