Welcome Guest, Not a member yet? Register   Sign In
can't get link to work
#8

(03-24-2016, 07:01 PM)pdthinh Wrote: Normally you access loaded models with lower-case name. Let's give it a try.
PHP Code:
//Get All Products
 
 $data['products'] = $this->product_model->get_products();

//Get Product Details
 
 $data['product'] = $this->product_model->get_product_details($id); 

Hi just tried the above and with: $autoload['model'] = array('product_model'); set in autoload.php. Changed the file name to product_model.php in the MODELS folder. Changed it to your above PHP code in the products.php file in the CONTROLLERS folder. Tried in the products.php file in the VIEW folder with the link set like shown in the video:
<a href="<?php echo base_url(); ?>products/details/<?php echo product->id; ?>"> and the way show in the other reply above. And still not loading the details page. It is supposed to load the details page but there is something about the link that is wrong or something is stopping it from loading the details page.
Reply


Messages In This Thread
can't get link to work - by richie41 - 03-24-2016, 08:54 AM
RE: can't get link to work - by Paradinight - 03-24-2016, 12:26 PM
RE: can't get link to work - by richie41 - 03-24-2016, 02:59 PM
RE: can't get link to work - by twpmarketing - 03-24-2016, 02:30 PM
RE: can't get link to work - by richie41 - 03-24-2016, 02:48 PM
RE: can't get link to work - by pdthinh - 03-24-2016, 07:01 PM
RE: can't get link to work - by richie41 - 03-25-2016, 02:43 AM
RE: can't get link to work - by richie41 - 03-24-2016, 02:51 PM
RE: can't get link to work - by Wouter60 - 03-25-2016, 02:54 AM
RE: can't get link to work - by richie41 - 03-25-2016, 03:05 AM
RE: can't get link to work - by Avenirer - 03-25-2016, 03:21 AM
RE: can't get link to work - by richie41 - 03-25-2016, 03:22 AM
RE: can't get link to work - by Wouter60 - 03-25-2016, 03:23 AM
RE: can't get link to work - by richie41 - 03-25-2016, 03:41 AM
RE: can't get link to work - by pdthinh - 03-25-2016, 05:46 AM
RE: can't get link to work - by richie41 - 03-25-2016, 11:24 AM
RE: can't get link to work - by InsiteFX - 03-25-2016, 03:54 AM
RE: can't get link to work - by richie41 - 03-25-2016, 04:03 AM
RE: can't get link to work - by InsiteFX - 03-25-2016, 12:59 PM
RE: can't get link to work - by richie41 - 03-25-2016, 01:41 PM
RE: can't get link to work - by Wouter60 - 03-26-2016, 01:20 AM
RE: can't get link to work - by richie41 - 03-26-2016, 03:17 AM
RE: can't get link to work - by Wouter60 - 03-26-2016, 03:43 AM
RE: can't get link to work - by richie41 - 03-26-2016, 03:55 AM
RE: can't get link to work - by InsiteFX - 03-26-2016, 03:33 AM
RE: can't get link to work - by richie41 - 03-26-2016, 03:37 AM
RE: can't get link to work - by Wouter60 - 03-26-2016, 04:51 AM
RE: can't get link to work - by richie41 - 03-26-2016, 04:55 AM
RE: can't get link to work - by Wouter60 - 03-26-2016, 06:02 AM
RE: can't get link to work - by richie41 - 03-26-2016, 06:21 AM
RE: can't get link to work - by Wouter60 - 03-26-2016, 08:01 AM
RE: can't get link to work - by richie41 - 03-26-2016, 08:09 AM
RE: can't get link to work - by veronvynguyen - 03-12-2017, 01:57 PM
RE: can't get link to work - by kieranfitz - 04-21-2018, 04:40 PM
RE: can't get link to work - by InsiteFX - 04-22-2018, 04:27 AM
RE: can't get link to work - by InsiteFX - 04-22-2018, 04:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB