Welcome Guest, Not a member yet? Register   Sign In
controller to main home pages as a module
#1

[eluser]nirbhab[/eluser]
Hi,

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.
#2

[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.




Theme © iAndrew 2016 - Forum software by © MyBB