Welcome Guest, Not a member yet? Register   Sign In
Problem with ISS and url
#1

Hi , i have a route 

Code:
$routes->group('admin_Conta_materiale', ['filter' => 'adminFiltersAuth'], function($routes) {

        $routes->get('lista_conteggio_per_materiale/(:any)', 'Admin_Conta_materiale::lista_conteggio_per_materiale/$1');


});
if the value have slash i have problem with route  so i change the link changing "/" with "£"
and in my function :
Code:
public function lista_conteggio_per_materiale($codice_materiale){

        $conta_materiale_model = new Conta_materialeModel();
        $inventario_model = new InventarioModel();

        $codice_materiale = str_replace('£','/',$codice_materiale);
     
        $id_inventario_attivo = $inventario_model->get_inventario_attivo();


        $data['lista']=$conta_materiale_model  ->where('codice_materiale',$codice_materiale)
                                                ->where('id_inventario',$id_inventario_attivo)
                                                ->findAll();

        echo view('empty_view',$data );
        echo view('admin/conta_materiale/lista_conteggio_per_materiale',$data);

}//fine lista attivi
In localhost with apache it work fine but on server with ISS and FASTCGI  i have a 404
This is an example :
http://my_website/admin_Conta_materiale/...ale/L183£1
Reply


Messages In This Thread
Problem with ISS and url - by pippuccio76 - 12-29-2022, 02:58 AM
RE: Problem with ISS and url - by pippuccio76 - 12-31-2022, 11:09 AM
RE: Problem with ISS and url - by luckmoshy - 12-31-2022, 11:54 PM
RE: Problem with ISS and url - by pippuccio76 - 01-01-2023, 12:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB