Jump to content


Installation Path Issues - Real Newbie Question

Installation Paths index.php local host

  • Please log in to reply
1 reply to this topic

#1 christ2

christ2

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 30 September 2014 - 09:17 AM

My apologies at the outset, this is my 1st post, and I'm new to php/html/css..etc development. I really need help with paths(I think). On my local development PC, I did implement Grocery CRUD successfully into my existing project(not new), & it works beautifully. However, when I migrate to my Hosts server it doesn't. I suspect I have an issue with the fact that GroceryCRUD uses a file named index.php in the folder above my public_html folder & off course public_html also has a file named index.php(my existing project)? 

 

My folder structureon both my local PC & Host Server

home/domain/
–––– application/
–––––––– config/
–––––––––––– autoload.php
–––––––––––– ...
–––––––––––– doctypes.php
–––––––––––– foreign_chars.php
–––––––––––– grocery_crud.php
–––––––––––– ...
–––––––– controllers/
–––––––––––– examples.php
–––––––––––– index.html
–––––––––––– welcome.php
–––––––– libraries/
–––––––––––– grocery_crud.php
–––––––––––– index.html
–––––––– models/
–––––––––––– grocery_crud_model.php
–––––––––––– index.html
–––––––– views/
–––––––––––– example.php
–––––––––––– index.html
–––––––––––– welcome_message.php

–––––––––––– my_template.php
–––– assets/
–––––––– grocery_crud/
–––––––––––– css/
–––––––––––– js/
–––––––––––– texteditor/
–––––––––––– themes/
–––––––– uploads/
–––––––– index.html
–––– system/
–––– user_guide/
–––– change_log.txt
–––– example_database.sql
–––– index.php
–––– licence-grocery-crud.txt
–––– license.txt

–––– public_html/

––––––––css/

––––––––includes/

––––––––images/

––––––––about.php

––––––––index.php

––––––––

etc...

 

 

 
Basically

l1j89m.gifhome/domain/index.php  
l1j89m.gifhome/domain/public_html/index.php  
l1j89m.gif  
when I click a link on my webpage to go to the CRUD http://domain.net/index.php/main/users  
l1j89m.gif  
the browser displays the HTML (no CSS) of the home page URL of my "domain.net"
l1j89m.gif  
What am I missing? Any advice would be appreciated.

 

Thanks Chris

 



#2 Amit Shah

Amit Shah

    grocery CRUD Master

  • Advanced Member
  • PipPipPip
  • 1,192 posts
  • LocationMumbai, India

Posted 30 September 2014 - 06:08 PM

wel.. dont try to give the path to style / css  /images .. directly.. like "css/style.css" as we used to do in basic / raw php coding - it would have worked earlier when all was in same folder - rather here i will recommend u autoloading url as helper and add up base_url() . "css/style.css" and stuff like taht







Also tagged with one or more of these keywords: Installation, Paths, index.php, local, host

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users