⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Installation Path Issues - Real Newbie Question



christ2

christ2
  • profile picture
  • Member

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

 


Amit Shah

Amit Shah
  • profile picture
  • Member

Posted 30 September 2014 - 18: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