Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter on exisiting site
#1

(This post was last modified: 04-02-2015, 11:27 AM by ciadmin.)

[eluser]emperius[/eluser]
Hello!

I have already made site and I want to use CodeIgniter only for new pages.
How can I do this?
#2

(This post was last modified: 04-02-2015, 11:27 AM by ciadmin.)

[eluser]ztinger[/eluser]
Is perfectly doable Wink

Just start by reading the User Guide.
#3

(This post was last modified: 04-02-2015, 11:27 AM by ciadmin.)

[eluser]emperius[/eluser]
I\'ve read the user guide

but i didn\'t find out ho to do this

I was trying to remove default controller and etc.

If you know where can i read about this please give me a link
#4

(This post was last modified: 04-02-2015, 11:28 AM by ciadmin.)

[eluser]esra[/eluser]
If your existing site does not use authentication (user accounts) and sessions, the simple answer is to provide links in the navigation system of the existing site to the CodeIgniter application and links on the navigation system of the CodeIgniter application to the existing site. This is usually done via a menu system. If the existing site uses authentication and sessions, you either need to adapt the existing site to use CodeIgniter code for handling authentication and sessions or vice versa.

However, you would be better off converting the existing site to CodeIgniter\'s MVC architecture if nothing else as a learning experience.
#5

(This post was last modified: 04-02-2015, 11:28 AM by ciadmin.)

[eluser]emperius[/eluser]
[quote author=\"esra\" date=\"1182508413\"]If your existing site does not use authentication (user accounts) and sessions, the simple answer is to provide links in the navigation system of the existing site to the CodeIgniter application and links on the navigation system of the CodeIgniter application to the existing site. This is usually done via a menu system. If the existing site uses authentication and sessions, you either need to adapt the existing site to use CodeIgniter code for handling authentication and sessions or vice versa.

However, you would be better off converting the existing site to CodeIgniter\'s MVC architecture if nothing else as a learning experience.[/quote]

When I trying to use codeigniter the index page moves to default controller. I cant use as index existing index.php file.

I don\'t know how to include codeigniter files and use codeigniter for new pages only with the current index.php file.

unfortunately I can\'t convert existing files into codeigniter MVC because almost all the pages have already google page rank and if I change links to pages it will be bad for
#6

(This post was last modified: 04-02-2015, 11:28 AM by ciadmin.)

[eluser]frenzal[/eluser]
just make a 301 redirect for existing pages to the new CI pages and google will keep the pagerank
#7

(This post was last modified: 04-02-2015, 11:29 AM by ciadmin.)

[eluser]emperius[/eluser]
But still maybe someone knows how I can leave index.php file as is and add new controllers and etc?
Smile




Theme © iAndrew 2016 - Forum software by © MyBB