• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
admin section CMS section

#1
[eluser]XPHARSH[/eluser]
hi,

i am new to codeigniter.

i want to make a cms -> admin section for my website eg. www.site.com , www.site.com/admin

any one can guide me how to do that.

where i can create my admin_home.php controller and also view -> admin_view.php file

waiting for Solution

Thanks

#2
[eluser]darkhouse[/eluser]
What is going in the admin section, and who will be using it?

#3
[eluser]XPHARSH[/eluser]
this is the root :
www.site.com
for users........


cms section:
www.site.com/admin
for Admin .........

admin section will use only for update website like update content, add categories, upload images etc.

#4
[eluser]pistolPete[/eluser]
Why don't you just search this forum?
There are plenty of threads about this topic!

- http://ellislab.com/forums/viewthread/104870/
- http://ellislab.com/forums/viewthread/102960/
- http://ellislab.com/forums/viewthread/84369/
- http://ellislab.com/forums/viewthread/99699/

#5
[eluser]XPHARSH[/eluser]
please i am newbie in CI please can any one can guide me ?

#6
[eluser]pistolPete[/eluser]
Did you read all the links I just posted?

If you have basic CI problems, have a look at the video tutorials.

#7
[eluser]darkhouse[/eluser]
I agree with pistolPete, there are plenty of threads on this already that it doesn't need another (I actually didn't realize there were so many). However, there are 2 methods that seem to be prevalent.

1. Setup an admin folder in your controllers folder which will contain all of your controllers to administer your site. And for organizational purposes, setup an admin folder in your views to store your admin pages.

OR

2. If your site site has products, you would have a products controller, and you can build the add, edit, delete methods on that main controller that are only accessible if the user is logged in as an administrator. This removes the need for an admin folder.

Personally I still like the admin folder idea, but I can see how the latter method makes sense and I will likely adopt it in future projects.

#8
[eluser]XPHARSH[/eluser]
Thanks for reply ya i have gone through some example like :

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

============================================

controllers //directory
|
+--admin // subdirectory
|
+--admin.php


===============================================

when i hit the URL :
http://localhost/web/codeigniter/admin/

it says me :


404 Page Not Found

The page you requested was not found.



But it's not working [Sad]

any help ?

#9
[eluser]darkhouse[/eluser]
I think a bigger issue you have is just CI basics. Try the video tutorials pistolPete suggested.

#10
[eluser]XPHARSH[/eluser]
[quote author="darkhouse" date="1235955551"]I agree with pistolPete, there are plenty of threads on this already that it doesn't need another (I actually didn't realize there were so many). However, there are 2 methods that seem to be prevalent.

1. Setup an admin folder in your controllers folder which will contain all of your controllers to administer your site. And for organizational purposes, setup an admin folder in your views to store your admin pages.

OR

2. If your site site has products, you would have a products controller, and you can build the add, edit, delete methods on that main controller that are only accessible if the user is logged in as an administrator. This removes the need for an admin folder.

Personally I still like the admin folder idea, but I can see how the latter method makes sense and I will likely adopt it in future projects.[/quote]

Thanks for reply pleas can you explain me how to do that:

1. Setup an admin folder in your controllers folder which will contain all of your controllers to administer your site. And for organizational purposes, setup an admin folder in your views to store your admin pages.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.