$route[':any'] issue |
[eluser]Randy Casburn[/eluser]
Hi EEssam, Just for fun, I thought I would put something together to demonstrate how to do this. I'm certain there are 10 ways, but this is one. The design concept is simply to have a somewhat static facing web that would be fantastic for SEO purposes. The true application that resides behind this static site, built with CI, of-course, would never be built this way but would be discovered because of the great SEO attributes the single-word-from-root web page name provides. Disclaimer: Put some error checking in here somewhere! Controller: Code: class Home extends Controller Model function from file Getmystuff.php Code: function getPageDataFromDB($page) For the views: Note I'm passing $this->pageData array. The pageData array is simply constructed from the DB rows returned by the model. Use the variable representations of those rows within your views to show the content in your view templates. I hope this more thoroughly answers your question. Most importantly, shows you how awsome CI can really be once you understand it's flexibility. So here is one 'realization' of use CI and construct your URLs with the page name right after the FQDN thus: http://mydomainname.com/mypage or http://mydomainname.com/mypage.html Regards, Randy |
Messages In This Thread |
$route[':any'] issue - by El Forum - 06-16-2008, 11:14 AM
$route[':any'] issue - by El Forum - 06-16-2008, 12:25 PM
$route[':any'] issue - by El Forum - 06-16-2008, 12:59 PM
$route[':any'] issue - by El Forum - 06-16-2008, 02:11 PM
$route[':any'] issue - by El Forum - 06-16-2008, 02:13 PM
$route[':any'] issue - by El Forum - 06-16-2008, 02:17 PM
$route[':any'] issue - by El Forum - 06-16-2008, 02:42 PM
$route[':any'] issue - by El Forum - 06-16-2008, 02:56 PM
$route[':any'] issue - by El Forum - 06-16-2008, 03:08 PM
$route[':any'] issue - by El Forum - 06-16-2008, 04:00 PM
$route[':any'] issue - by El Forum - 06-16-2008, 04:11 PM
$route[':any'] issue - by El Forum - 06-16-2008, 05:41 PM
$route[':any'] issue - by El Forum - 06-16-2008, 07:01 PM
$route[':any'] issue - by El Forum - 06-16-2008, 07:22 PM
$route[':any'] issue - by El Forum - 06-16-2008, 07:32 PM
$route[':any'] issue - by El Forum - 06-16-2008, 07:45 PM
$route[':any'] issue - by El Forum - 06-16-2008, 07:49 PM
$route[':any'] issue - by El Forum - 06-16-2008, 08:19 PM
$route[':any'] issue - by El Forum - 06-16-2008, 08:20 PM
$route[':any'] issue - by El Forum - 06-16-2008, 09:25 PM
$route[':any'] issue - by El Forum - 06-16-2008, 09:47 PM
$route[':any'] issue - by El Forum - 06-17-2008, 09:29 AM
$route[':any'] issue - by El Forum - 06-17-2008, 09:40 AM
$route[':any'] issue - by El Forum - 06-17-2008, 10:12 AM
$route[':any'] issue - by El Forum - 06-17-2008, 11:04 AM
$route[':any'] issue - by El Forum - 06-17-2008, 03:29 PM
$route[':any'] issue - by El Forum - 06-17-2008, 03:38 PM
$route[':any'] issue - by El Forum - 06-17-2008, 03:49 PM
$route[':any'] issue - by El Forum - 06-17-2008, 04:02 PM
$route[':any'] issue - by El Forum - 06-17-2008, 05:20 PM
$route[':any'] issue - by El Forum - 06-17-2008, 05:58 PM
$route[':any'] issue - by El Forum - 06-17-2008, 08:49 PM
|