CodeIgniter Forums
Simple CMS - .htacces file - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: Simple CMS - .htacces file (/showthread.php?tid=48409)



Simple CMS - .htacces file - El Forum - 01-15-2012

[eluser]skiter[/eluser]
Hi.

It was while ago when i was use CI ... and while ago i was use PHP at all!

Anyway, after readings how to create simple cms i found directory solution fit to my idea:

http://stackoverflow.com/questions/7847120/codeigniter-advice-for-creating-backend?answertab=active#tab-top

But what i don't know is, how to write .htaccess file?, or use routing to get to this folders and use them as in example.

After that, if i will use HMVC, will be another problem.

What i like to create is:
Code:
[system]
index.php

[controllers]
   [admin](backend)
   [frontend]

[models]
   [admin](backend)
   [frontend]

[views]
   [admin](backend)
   [frontend]

[modules]
   [news]
      [controllers]
      [models]
      [views]
      info.php
   [blog]
      [controllers]
      [models]
      [views]
      info.php

[skin]
   [admin]
   [frontend]
   [css]
   [js]
That view will be perfect for me, where in 'backend' i can read all folders, contain info.php, read from that file all infos (or just use XML), about views an other, and list them in admin panel.

What i like to do i write 'mini version' of bonfire cms Smile

I didn't found any tutorials about this subject.

Many thanks for any advice.