This is working too
$rent = fuel_model('anunturi_rent', array('find' => 'all','module'=>'anunturi')); $vars=array('rent'=>$rent); $this->load->module_view('anunturi', '_blocks/rent_categories2',$vars);
So, I should use it somehow like this? Am I right?
$CI->load->model('anunturi/rent_model','rent'); $rent=$CI->rent->find_all(); $vars=array('rent'=>$rent); $this->load->module_view('anunturi', '_blocks/rent_categories2',$vars)…
yeeeeee It`s working. Thank you for that. Probably I`ll have some more questions, but for now...I can go on with understanding fuel and testing what I`ve learned.
If I go to.. front end and type anunturi/rent i see the "test" . The error I got when I try to go to fuel/anunturi/rent in backend.
P.S. I removed the word 'categories' from all the names of my files from the printscreen
and this is my controller
<?php require_once(FUEL_PATH.'/libraries/Fuel_base_controller.php'); class Rent extends Fuel_base_controller { public $nav_selected = 'anunturi/rent'; public $view_location = 'rent'; function __construct() { …
this is my model :
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); require_once(FUEL_PATH.'models/base_module_model.php'); class Rent_model extends Base_module_model { public $record_class = 'Rent_category'; fu…
It still doesnt work.. now I got this
A PHP Error was encountered Severity: Notice Message: Undefined property: Module::$model_name Filename: controllers/module.php Line Number: 79 A PHP Error was encountered Severity: Warning Message: Cann…
I guess it should be like this:
$route[FUEL_ROUTE.'anunturi/rent_categories'] = FUEL_FOLDER.'/module';
$route[FUEL_ROUTE.'anunturi/anunturi/rent_categories/(.*)'] = FUEL_FOLDER.'/module/$1';