Tagged Questions
0
votes
3answers
42 views
Codeigniter - 404 in send data to controller
Form
<?php echo validation_errors(); ?>
<?php $attributes = array('class' => 'navbar-form pull-right');
echo form_open('login/checkLogin', $attributes); ?>
<input ...
0
votes
1answer
36 views
codeigniter too many model queries within controller
I didn't find a similar topic, so I'm asking:
How to get over the problem of repeating the same model queries for all my CodeIgniter controller functions? For my site, I have to build my header and ...
0
votes
1answer
80 views
CodeIgniter - Two Forms, One Page
I'm having a fundamental problem in understanding the concept of MVC and displaying more than one form at a time. I've tried a variety of methods but I'm still stuck - and that's because I don't think ...
0
votes
1answer
59 views
Codeigniter 2 - Callback function in My_Controller
I have all my callback functions in My_Controller so that they are not repeated throughout the website. This works fine but for some reason one of my functions is not working when I am posting ...
0
votes
3answers
32 views
Codeigniter 2 difference between index and __construct and what to put in __construct
When is __construct called and when is index called? And are there any other differences?
And what to put in __construct? Whats the best practice, should I put $this->load calls... ? what else?
...
0
votes
1answer
35 views
Code Igniter doesn't recognize my function in controller under a folder
I have a folder under my main controller-folder called admin, in that controller i have a file name admin.php which has a function xyz.
I want to access that function using this url
...
0
votes
2answers
71 views
Codeigniter says “Unable to load the requested file” to my controller's method
After I have uploaded last version of application to the server, I have found the following problem:
After my admin controller redirects unauthorized user to admin/login page(
...
0
votes
0answers
41 views
codeigniter loads only default controller
i read the previous answers to that question but had no luck.
For the website i build, i use 3 controllers: home, login and edit_page.
The problem is that when i type in the address bar or press a ...
1
vote
1answer
37 views
Codeigniter custom route works but controller outputs wrong route on running code after page load
I have this route setup,
$route['admin/company'] = "company";
This works nicely if you go to it, on this page I have 2 forms for adding and removing companies from a database, when this code is run ...
0
votes
1answer
44 views
Codeigniter controllers for subpages? (New to Codeigniter please help)
I am new to codeigniter so please excuse my stupidity.
I am building a client portal and I have my admin / client login setup I am currently working on the admin area first so I have my controller ...
1
vote
2answers
64 views
I want to hide the controller names form the url
I want to hide the controller names from ther url. I tried using the routes.php file in config folder.
the code in the file is like this
$route['default_controller'] = "controller_home_body";
...
0
votes
1answer
37 views
add post data to an array in controller and output from view with Codeigniter
I have the following syntax:
Contoller
function new_auto_spread_details()
{
$postinfo = array();
$postinfo[] = $this->input->post('customer')
$postinfo[] = ...
0
votes
2answers
49 views
codeigniter post value not available to form. use post value in controller logic
I have some syntax in my controller:
$data = array(
'submit' =>$this->input->post('submit'),
'period' =>$this->input->post('period'),
'buom' ...
0
votes
0answers
59 views
Undefined property error in my Controller in CodeIgniter 2 [closed]
I am currently in the process of upgrading my custom news system to CodeIgniter 2.1.3.
Can someone explain why I am getting the following error when trying to visit the news section:
A PHP Error was ...
0
votes
1answer
29 views
Codeigniter: using libraries in controller?
I want use my library function in controller file. Is it possible ? Thanks..