⚠ 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

Index page without grid with css



jenn9376

jenn9376
  • profile picture
  • Member

Posted 09 March 2018 - 15:32 PM

Hello,

 

I'm quite new to GroceryCrud and I have created a basic website that is working fine so far.

 

I want to alter the public function index() that exists in the Main controller and display some custom text (views/homepage.php) but I still want to use the same css that I use across the whole website. I tried something like this:

public function index()
{
$this->load->view('homepage.php');
}

but I get errors like Undefined variable: css_files

 

Can you please help?

 

Thank you,

Jenn


jenn9376

jenn9376
  • profile picture
  • Member

Posted 10 March 2018 - 11:46 AM

Hello again,

 

Nevermind, i made it work, I removed all php code from my homepage.php and added this instead:

<link type="text/css" rel="stylesheet" href="/assets/grocery_crud/themes/flexigrid/css/flexigrid.css" />

:D

 

Regards,

Jenn