codeignitor after Form post page not found

18 views
Skip to first unread message

Fatima

unread,
Oct 16, 2015, 11:28:25 AM10/16/15
to ZZEE PHPExe
Hi

I did these settings in codeignitor version 2

 index.php page

$system_path = 'zzee://system';

$application_folder = 'zzee://application';

 config.php page

$config['base_url'] = 'http://127.0.0.1/';
$config['index_page'] = '';

 htaccess file
DirectoryIndex index.php
RewriteEngine on
 
RewriteCond $1 !^(index\.php|(.*)\.swf|forums|images|css|downloads|jquery|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php?$1 [L,QSA]

Action of the form is
Form action="<?php echo base_url(); ?>home/do_login"
where home is the controller and do-login is the function
when submit the form
its giving
http error 404

and the path in the zzee phpexe title bar is showing http://127.0.0.1/home/login]]

help in this please

Mike:Hewitt

unread,
Oct 16, 2015, 12:30:58 PM10/16/15
to php...@googlegroups.com

You do not need to use SEO URLs in an app :). Htaccess is for an apache web server. I don't believe that it works, although someone else might know more.

--
--
You received this message because you are subscribed to the Google
Groups "ZZEE PHPExe" group.
To post to this group, send email to php...@googlegroups.com
To unsubscribe from this group, send email to
phpexe+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phpexe?hl=en
---
You received this message because you are subscribed to the Google Groups "ZZEE PHPExe" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phpexe+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

ZZEE Groups

unread,
Oct 16, 2015, 1:05:46 PM10/16/15
to php...@googlegroups.com
Rewrite rules are not supported at all, user htaccess files generally
are not supported.
--
Regards,
Paul.

Fatima

unread,
Oct 16, 2015, 3:47:34 PM10/16/15
to ZZEE PHPExe
Thanks for reply.

I removed the htaccess file and allowed the index.php file in config.php page The for submit is working .

other issue is not loading any css or js file from the assets folder which was placed in root of folder
path I used

<link href="<?php echo base_url();?>assets/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
  
 <!-- jQuery -->
    <script src="<?php echo base_url();?>assets/js/jquery-1.10.2.js"></script>

Mike:Hewitt

unread,
Oct 17, 2015, 6:25:21 AM10/17/15
to php...@googlegroups.com

The issue is the path. If you compile allowing right click then view source you should see where its trying to load. All compiled files have their own relative namespace and do not use the computer filesystem paths, until you explicitly want to load external/non-compiled files.

Reply all
Reply to author
Forward
0 new messages