Posts by Jonathan Lamim Antunes • 151 points
7 posts
-
1
votes1
answer61
viewsA: Starting with . htaccess
Check if apache’s mod_rewrite is enabled. To do this, create an info.php file at the root of the application and put it in it: <?php phpinfo(); ?> then go to the browser and call the url for…
-
1
votes1
answer337
viewsA: Pagination - Codeigniter
Below I am putting your code with the implementation of last_query(), so you can debug. public function index() { if ( ! $this->ion_auth->logged_in() OR ! $this->ion_auth->is_admin()) {…
-
3
votes2
answers2055
viewsA: hide variable in htaccess url
Jonnys, if you do not pass the information in the URL there is no way to get it to do the treatment in the . htaccess file, as was done in the example you gave. If you want to have a custom URL…
-
0
votes2
answers284
viewsA: Dar Foreach label on Chartjs / Canvas - Codeigniter
At the portal Codeigniter University has an article showing the use of Chartjs with Codeigniter. http://www.universidadecodeigniter.com.br/criando-graficos-com-chartjs-e-codeigniter/…
-
1
votes1
answer73
viewsA: Code organization in codeigniter controller
Rafael, if the configuration values are not changed it is best to use a class variable or a configuration file in application/config, instead of having a method just to return these values.…
-
0
votes1
answer147
viewsA: Delay in massive processing of ajax Codeigniter
Vinicius, you are using AJAX to perform this import because it must be triggered/soldered by the user only? If possible, you can set up a cron task and run it automatically at a specific time. In…
-
3
votes1
answer147
viewsA: Error foreach codeigniter
Bruno, what is happening is that when giving the Join with the table 'fotosanuncios' the main record, which is the car, ends up being replicated by the amount of existing records in the table…