codeigniter - php framework for part of website -


i have little experience web development. have used codeigniter in past. realize using framework allows structured project, aimed @ entire site. have situation have been asked out on site not use framework. site entirely static. have been asked develop form registration, include sql interaction. love use codeigniter form application not know how add existing site.

create folder called 'contact' in public html folder. put main index.php of codeigniter in folder

if able - above server root public html folder - put codeigniter system folder , application folder. protip - rename folders version and/or , - if download version 3.07 of codeigniter label them: system307 appcontact

ok contact folder , index.php file - application , system folder paths - change these like

$system_path = '../../system307'; $application_folder = '../../appcontact'; 

in contact folder make htaccess file like

rewriteengine on rewriterule ^(application) - [f,l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ /contact/index.php?/$1 [l]    

remember configs etc in application folder. make contact form controller default controller. , thats it. if link 'contact' in nav bar pull form automagically.


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -