• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
controller to main home pages as a module


I have a login module. perfectly working...
It doesn't have any look and feel.
Main home page is in php, having cool looks, i want to embed this like this CodeIgniter web site has.

i am not able to call that controller to the home page, currently the home page is in root folder, whether i should call <?php include('index.php/login');?>

or i should copy my controller in application/library and extend that class, call it's function's.

sample code would help me to greatest extent.

NOTE: .htaccess can't help, i would have to use index.php in my URL string.

[eluser]Phil Sturgeon[/eluser]
Sadly you cannot do it like this. index.php/login does not exist in the way include expects it to.

If you want to share your "look and feel" with your main homepage then you will need to either integrate your existing PHP with codeignitor, or re-use the CSS.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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