Questions tagged as 'codeigniter'

2
answers

Scheduled email sending with PHP

Save personal, I'm new here and I have a very peculiar question. I'm developing a system (CodeIgniter + MySQL) that records some events and should send an email on a predefined date, something around eight or nine months ahead. How can I schedul...
asked by 26.05.2015 / 13:09
1
answer

How to do update via ajax + php

I want to update data through a modal, however it is not updating. Anyone have any idea why you're not updating? Modal: <script type="text/javascript"> $(document).ready(function() { $('#salvar').click(function() { var des...
asked by 27.01.2015 / 01:02
1
answer

Functions - Model, Controller

In my model I have this function that defines the format of the url: public function url_format_category($category, $lang_domin) { if (lang('abbr') == 'en_US') $lang_domin = 'en/'; else if (lang('abbr') == 'es_US') $la...
asked by 08.04.2015 / 20:18
2
answers

Run Cronjob Codeigniter

How to execute a method of a class in Codeigniter via CronJob? Ex: main.php accessed at link <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Principal extends CI_Controller { public function __const...
asked by 21.10.2014 / 22:07
1
answer

POST is empty depending on the site I use

I have a project in Codeigniter that is in a folder within the domain. The folder structure is as follows:    / domain / Web / project / I'll call domain and project because of the client / site name I can access the site in two way...
asked by 16.06.2014 / 21:12
1
answer

CodeIgniter shows strange errors

I'm developing a CodeIgniter application, but I've reinstalled the WampServer . In the place where a form existed now shows this code below. 'id', 'value' => $id, 'size' => '6', 'readonly' => 'true')); ?> 'login', 'value...
asked by 19.06.2014 / 03:30
1
answer

Join with Active Codeigniter Record

I made a query that is running ok and I'm passing to the Codeigniter Active Record but it is not working because of a join that is a bit off with conventional, does anyone have any idea what it can be? $query = $this->db->query("...
asked by 11.06.2014 / 15:42
1
answer

Improve file_get_contents performance in loops

Is there a way to make file_get_contents perform a quick function within a loop? Follow the code <?php foreach ($links->result() as $value) : ?> <?php $url = $value->lnkUrl; $domain = parse_url($u...
asked by 16.10.2014 / 00:33
1
answer

How to return a collection of data using Doctrine ResultSetMapping?

I have the following script that is functional: SELECT r.coluna_1 as Coluna_1, e.coluna_1 as Coluna_2, FROM produto r INNER JOIN empresa e ON r.id_empresa = e.id_empresa WHERE r.id_tipo = 'N' AND r.data_devolucao <= :dataDevolu...
asked by 12.09.2018 / 18:53
4
answers

Error displaying video html

I am putting a video using html5 and codeigniter on my page, but it is only displaying the player without displaying the video. script: <video width="420" height="340" autoplay controls> <source src="<?php echo base_url('asset...
asked by 26.03.2014 / 19:07