codeigniter - Code Igniter : My Function is Pile Up -
can u me sir?, i'm sorry english bad,and i'm new ci. got problems project. when send id_user page, okay call "page 2". got id in link, fine, after try load page navbar, cant load page. , see function pile in link.
but before work great, can load page. happen when send id page 2..
i cant post image, i'll try give example.
first, link this
localhost/codeigniter-maxtune/index.php/home/table
and select 1 row in send id page.
localhost/codeigniter-maxtune/index.php/home/another_page/8
okay got id in page, , try again access table page.
localhost/codeigniter-maxtune/index.php/home/another_page/table
and cant load page 'cause function "table" pile function "another_page"
thats problem hope u understand , can me :)
i use anchor link pages,
here link of sending id
href="form_add_saldo/$row->id_anggota"
and here link calling table page
href="admin_daftar_anggota">
it's controller function.
thank :)
welcome stack on flow https://stackoverflow.com/tags/codeigniter/info
you may have in codeigniter uri routing after, can not understand post https://stackoverflow.com/help/how-to-ask
http://www.codeigniter.com/docs
codeigniter 3 uri routing http://www.codeigniter.com/user_guide/general/routing.html
codeigniter 2 uri routing http://www.codeigniter.com/userguide2/general/routing.html
also when have auto loaded url helper in link can
example
<a href="<?php echo base_url('index.php/page');?>">some link name</a>
with id
<a href="<?php echo base_url('index.php/page' .'/'. $row->id_anggota);?>">some link name</a>
and when using href in codeigniter should autoload url helper in application/config/autoload.php
but if need load view same page , can pass variables through it. http://www.codeigniter.com/user_guide/general/views.html?highlight=views
<?php echo $this->load->view('someview');?>
view on div
Comments
Post a Comment