Questions tagged as 'codeigniter'

1
answer

Watermark upload image in codeigniter

Hello! I'm trying to insert a watermark when registering the image, but the image is up, but it does not insert the watermark or return errors, does anyone have any suggestions? Follow the code below: foreach ($_FILES as $field => $file)...
asked by 25.02.2016 / 20:55
1
answer

Sort by value of ENUM MySql

I have a question and since I did not find anything on the internet I decided to ask you, well, I have a MySql table and this table contains an ENUM field that can be 'yes' or 'no', I wonder if it is possible to sort the results for those values...
asked by 25.02.2016 / 19:38
2
answers

Put a Bootstrap class inside a form generated with CodeIgniter

Does anyone know how to tell me how I call the Bootstrap classes inside a form I generated using CodeIgniter? I've searched for an associative array, but I can not. For example, in the label I want to put class = 'sr-only' and in the input class...
asked by 21.08.2015 / 14:30
1
answer

Block indexing by robots in controller

I'm making use of CodeIgniter 2 to set up a website. The admin area is in the url http://meudominio.com/mod , to access you need to go through login. To avoid indexing the search engines, I configured the routes file $route['mod/(:any)'...
asked by 05.06.2015 / 04:09
1
answer

Limit jQuery checkbox

I'm creating a system where the bank's ready images and below each image has a checkbox, all this inside a for to get the images of the bank, wanted a function to be able to limit the amount of checkbox ie photos that the user can select, I'm us...
asked by 30.04.2015 / 15:45
1
answer

Get data from a db in a class in codeigniter

Good morning, I'm doing a shopping cart and it has a function to list the products, and I return an array for later I list in my view but I do not know if it would be correct for me to do this in my class or inside a model and a controller, but...
asked by 14.07.2015 / 15:16
1
answer

Check if URL in correct format

I need to check if the url is in the right format, and if it is not, redirect to the right url. In other Controller already has a code that does what I need, I just need to adapt it to another Controller , because the format of t...
asked by 30.03.2015 / 22:14
2
answers

Use data saved in a session

I modified my question because I was able to solve the session problem. But now I have another doubt. I have this code in the Controller to capture the data passed by parameter and save them in Session: public function SetImageAndColor($client...
asked by 25.03.2015 / 14:17
1
answer

Insertion of data in DB with codeigniter in different tables in the same controller

I have two tables in the database, one form with the fields of table1 and table2! the insertion of the fields of table1 are occurring normally, however, the insertion of table2 is not happening! It simply does not register! My controller: p...
asked by 16.10.2014 / 06:19
1
answer

Create routes - Codeigniter

Well, I have this route defined in my Routes file: $route['novidades-e-estrategias-de-marketing-digital-em-nosso-blog/(.*)/(.*)'] = "blog/post_list/$1"; This is the url: novidades-e-estrategias-de-marketing-digital-em-nos...
asked by 13.04.2015 / 19:26