OpenExpedio is the name for open eXtensions to PDO. It’s a light-weight Object-Relational Bridge).XPDO is to create schema for our own custom tables in MODX. Just we need create the table’s and download the createxpdoclass snippet, then create schema.
Its really easy. ref : http://bobsguides.com/custom-db-tables.html
I have been learning MODX Revolution for last One month. It’s easy to learn(PHP) and we can build a site in an hour (for beginners ). Installation is easy, just download the .zip and extract it.
Now I am working on MODX Revolution to create a revolution in LMS…. 🙂
When you are doing something with .htaccess , then you have verify the redirect mod is enabled. By
check name like “rewrite.mod“. If it is not there then type
$sudo a2enmod rewrite
Now you can see the rewrite mod is enabled in /ect/apache2/mods-enabled/.
*$sudo /etc/init.d/apache2 restart
Today tried redirecting and rewriting for URL . For this we need to create a .htaccess file in site root directory for web application folder.
This is my sample code(inside .htaccess file)
RewriteRule ^a/([^/]+)/([^/]+) /index.php?q=$1&t=$2 [L,QSA,NC]
If my URL is like this , http://sample.com/a/one/two
Then the rule will redirect as http://sample.com/index.php?q=one&t=two
In index.php file we access the values by $_REQUEST[‘one’] and $_REQUEST[‘two’].
We can do more then these rewrite rules.