wanhellen Posted May 13, 2011 Report Share Posted May 13, 2011 Sveiki! Lietoju CI 2.0.2 un sastapos ar šādu problēmu base_url ir www.project.lv/html/ Ir kkāds defaultais kontrolieris Default, kas ielādē skatu DefaultView Tālāk no šī skata ar formu submitojam datus atpakaļ uz Default/login, taču www.project.lv/html/default/login vietā es konsekventi saņemu www.project.lv/html/www.project.lv/html/default/login kur varētu būt problēma ? Quote Link to comment Share on other sites More sharing options...
briedis Posted May 13, 2011 Report Share Posted May 13, 2011 Norādi absolūtu ceļu kaut kādā formā? "/html/default/login" ? Quote Link to comment Share on other sites More sharing options...
vostro Posted May 13, 2011 Report Share Posted May 13, 2011 Pats lietoju CI!! Default norādi kontroliera klases nosaukumu un viss. Nevajaga norādīt nekādu pilnu ceļu.. Vārdu sakot ja tev contolieris Tests, tad arī norādi "tests", ja vajaga funkciju, tad klases nosaukums + funkcija. Piemērs: "tests/login"; klase + funkcija. "tests"; klase. Quote Link to comment Share on other sites More sharing options...
Kemito Posted May 13, 2011 Report Share Posted May 13, 2011 (edited) Absolūts ceļš? define("FILEPATH", dirname(__FILE__)); Edited May 13, 2011 by Kemito Quote Link to comment Share on other sites More sharing options...
daGrevis Posted May 13, 2011 Report Share Posted May 13, 2011 Kemito, tas it gatavs "framework's" - tur jau tas ir definēts. Quote Link to comment Share on other sites More sharing options...
101111 Posted May 13, 2011 Report Share Posted May 13, 2011 base url esi nepareizi norādījis, vajag ar visu "http://" priekšā. Quote Link to comment Share on other sites More sharing options...
Kemito Posted May 14, 2011 Report Share Posted May 14, 2011 daGrevis, par idiotu mani tur vai kā? ( Varbūt arī ) bet nu to es zinu. Quote Link to comment Share on other sites More sharing options...
daGrevis Posted May 14, 2011 Report Share Posted May 14, 2011 Bet kāpēc tad Tu piedāvā koda rindiņu, kas definē "FILEPATH", ja CI jau ir pieejama konstante - "BASEPATH"? Starp citu, doķi! P.S. Nedomāju, ka esi idiots. Quote Link to comment Share on other sites More sharing options...
mad182 Posted May 16, 2011 Report Share Posted May 16, 2011 Kāds vispār failu atrašanās vietai servera failsistēmā ir sakars ar jautājumu? Quote Link to comment Share on other sites More sharing options...
daGrevis Posted May 16, 2011 Report Share Posted May 16, 2011 Madar, nemaz neiedziļinājos jautājumā. Wanhellen, problēma noteikti ir ceļos. Domāju, ka "form" tagam nav pareizi norādīts "action" atribūts. Vai nu izmanto Form Helper, vai nu site_url() metodi no URL Helper. <form action="<?php echo site_url( 'controller/action' ); ?>"> .. </form> Quote Link to comment Share on other sites More sharing options...
Val Posted May 16, 2011 Report Share Posted May 16, 2011 http://www.boot.lv/forums/index.php?/topic/139209-codeigniter-problema/page__view__findpost__p__1429725 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.