Welcome Guest, Not a member yet? Register   Sign In
Newbie queston about CI
#1

[eluser]Dreety[/eluser]
Hi,i want to start using CI as framework of my own Cms,i finished reading user guide,and watched videos.
So my question,where to i start? Any documentation about cms structure,how to build frontend and backend?.
Like i understand, then best first step is add Matchbox if i want build cms and use modules?
When i followed user guide then i understand everything,but now i am little bit confused about first step to make,so little help would be nice ;-)
tnx
#2

[eluser]pistolPete[/eluser]
Besides Matchbox you could also have a look at Modular Extensions, both help you to separate functionality in modules.

If you search this forum for "cms", "backend", "auth" etc. you will get everything you need; there have been made numerous attempts to create a CI based cms.
#3

[eluser]Dreety[/eluser]
[quote author="pistolPete" date="1235898002"]Besides Matchbox you could also have a look at Modular Extensions, both help you to separate functionality in modules.

If you search this forum for "cms", "backend", "auth" etc. you will get everything you need; there have been made numerous attempts to create a CI based cms.[/quote]
thank you, i will do that ;-)
#4

[eluser]Dreety[/eluser]
Hi again,i wont start to make a new topic,so i just try to keep my questions here.

I installed Modular Extensions and my directory structure looks like:
[Image: http://img220.imageshack.us/img220/5041/...ure.th.png]

inside admin folder are controllers/homepage.php
and views/admin_homepage.php

inside homepage folder are controllers/homepage.php and
views/index.php

my routes.php looks like:
Code:
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
|     example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|    http://ellislab.com/codeigniter/user-guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There are two reserved routes:
|
|    $route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|    $route['scaffolding_trigger'] = 'scaffolding';
|
| This route lets you set a "secret" word that will trigger the
| scaffolding feature for added security. Note: Scaffolding must be
| enabled in the controller in which you intend to use it.   The reserved
| routes must come before any wildcard or regular expression routes.
|
*/

$route['default_controller'] = 'homepage';
$route['scaffolding_trigger'] = "";

/*route works only if i type sitename/index.php/admin*/

$route['admin'] = 'admin/homepage';


/* End of file routes.php */
/* Location: ./system/application/config/routes.php */


everything works ok,exept i cant acess to mysite.com/admin,
index.php/admin works ok and default homepage works also ok,
so my question is how i must route it to mysite.com/admin????

i know its discussed before alot of times and i already looked these topics,but still didnt figure it out myself yet,so would be nice if someone can help me with this,i just dont understand what i did wrong.

tnx Smile
#5

[eluser]pistolPete[/eluser]
Do you use a .htaccess file? If so, post it here.
#6

[eluser]Dreety[/eluser]
[quote author="pistolPete" date="1236038094"]Do you use a .htaccess file? If so, post it here.[/quote]

no i dont have it
#7

[eluser]pistolPete[/eluser]
Read this: Removing the index.php file
If the proposed .htaccess files does not work for your, search the forums for "htaccess" and you'll get many threads about that topic and you will definitely find one which is working for you.




Theme © iAndrew 2016 - Forum software by © MyBB