Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: YEAR in active record
Post: RE: YEAR in active record

PHP Code: -- function getweek($numsettimana, $data, $tabella){    $this->db->from($tabella);    $this->db->where('numero_settimana', $numsettimana);    $this->db->where('giorno_settimanale', ...
4,624 Views
3 Replies
09-25-2018, 09:37 AM
davicotico
    Thread: site_url & base_url performance
Post: RE: site_url & base_url performance

That is why I prefer to use a constant. constants.php PHP Code: -- define('BASE_URL', 'http://yourdomain.com/codeigniter/'); -- and config.php PHP Code: -- $config['base_url'] = BASE_UR...
6,169 Views
5 Replies
06-12-2018, 06:19 AM
davicotico
    Thread: Erro listar dados
Post: RE: Erro listar dados

Olá, você está chamando a view 'view_ramais' duas vezes: PHP Code: -- public function index() { $this->load->view('includes/header'); $this->load->view('includes/menu'); $this->loa...
3,909 Views
2 Replies
06-20-2017, 01:21 PM
davicotico
    Thread: Base de datos con nombre variable en archivo database.php
Post: RE: Base de datos con nombre variable en archivo d...

Si, puedes hacer eso. Pero, donde asignarías el valor a esa variable?... Creo que lo más adecuado sería mediante una hook "pre_system" asignar el valor a una constante y usar esa constante en la confi...
5,310 Views
1 Replies
11-08-2016, 10:14 AM
davicotico
    Thread: I can't solve my bug (2 days on) pleade help
Post: RE: I can't solve my bug (2 days on) pleade help

nunenthal Wrote: (09-14-2016, 09:00 AM) -- I have this controller, all work fine. But the problem is in the public function add_equipe_do() in this line if ($this->form_validation->run() == FALS...
4,490 Views
3 Replies
09-14-2016, 10:47 AM
davicotico
    Thread: set_message() from form_validation
Post: RE: set_message() from form_validation

Psygnosis Wrote: (02-25-2016, 09:47 AM) -- PHP Code: -- /*Invio dati al modello per l'inserimento dei dati nel db*/     public function misure_validation() {       $this->load->library('form_valid...
18,914 Views
6 Replies
02-25-2016, 10:04 AM
davicotico
    Thread: Calculate position based on a value
Post: RE: Calculate position based on a value

Violette Wrote: (12-17-2015, 12:22 AM) -- Thank you but I had already made the correction. I have trouble writing my fuction. Someone an idea to move me please -- With this fields: from_user_id, to...
7,872 Views
5 Replies
12-17-2015, 06:29 AM
davicotico
    Thread: What DB drivers have you used?
Post: RE: What DB drivers have you used?

MySql, PostreSQL, SQLite
7,148 Views
9 Replies
11-24-2015, 04:20 AM
davicotico
    Thread: HMVC - set default route
Post: RE: HMVC - set default route

Lykos22 Wrote: (10-26-2015, 05:10 AM) -- davicotico Wrote: (10-26-2015, 04:43 AM) -- In that source structure, you have a folder "posts" (plural), and a controller "Post.php" (singular) -- You mea...
6,345 Views
3 Replies
10-26-2015, 05:33 AM
davicotico
    Thread: HMVC - set default route
Post: RE: HMVC - set default route

Lykos22 Wrote: (10-26-2015, 04:37 AM) -- Hi, I'd like some help please. I'm using CI v.3.0.2 and I have set up HMVC modularity from wiredesignz, so my folder structure look like this Code: --...
6,345 Views
3 Replies
10-26-2015, 04:43 AM
davicotico
    Thread: HMVC issue
Post: RE: HMVC issue

Your class Test should extend MX_Controller: PHP Code: -- class Test extends MX_Controller{ } --
9,042 Views
7 Replies
10-22-2015, 11:16 AM
davicotico
    Thread: javascript files with php code
Post: RE: javascript files with php code

Lykos22 Wrote: (10-02-2015, 09:02 AM) -- Hi guys, I'd like to ask for some generic information, if possible. I usually try to put all my javascript stuff in a single file, and not keep them insid...
7,033 Views
4 Replies
10-02-2015, 12:08 PM
davicotico
    Thread: Google Places API and Code Igniter
Post: RE: Google Places API and Code Igniter

estebanc Wrote: (10-02-2015, 09:47 AM) -- Hello guys, I would like to add a sort of "auto suggest"  from google's database when a user starts to type his/her Location in an input field in code ign...
4,128 Views
2 Replies
10-02-2015, 11:37 AM
davicotico
    Thread: Form Validation
Post: RE: Form Validation

iamthwee Wrote: (10-01-2015, 12:17 PM) -- I'm not too happy with the form validation call back function, and it feels as if I'm working against it for some specific cases. Let's say I have four $_...
6,302 Views
5 Replies
10-01-2015, 01:11 PM
davicotico
    Thread: Pagination
Post: RE: Pagination

stroppik76 Wrote: (09-24-2015, 10:20 AM) -- I have some problem with pagination There are my model my controller and my view All is visualized correctly but when i click the ...
3,708 Views
1 Replies
09-25-2015, 05:21 AM
davicotico
    Thread: Send value from view to method and vice versa
Post: RE: Send value from view to method and vice versa

vertisan Wrote: (09-11-2015, 12:57 PM) -- Hi! I need send value from view to function in controller and return to view. Example on code: VIEW: PHP Code: -- echo 'Count: ' . AddNumber(2);...
5,070 Views
3 Replies
09-11-2015, 01:03 PM
davicotico
    Thread: [Moved for language] issues on change active button on load view
Post: RE: issues on change active button on load view

nofpowells Wrote: (08-24-2015, 03:28 PM) -- Hello, i'm taking an issue on change page. My active button stay on button home because i need to load a menu view again. How i can load this view one tim...
6,331 Views
3 Replies
08-25-2015, 07:02 AM
davicotico
    Thread: multi level menu with codeigniter
Post: RE: multi level menu with codeigniter

I have a post about that: http://davicotico.com/menu-multinivel-php-mysql-bootstrap/ It is in Spanish. Basically: 1.- Create a recursive function in a helper PHP Code: -- function create_menu(array ...
22,126 Views
7 Replies
07-14-2015, 10:03 AM
davicotico
    Thread: AWS Version 3.0
Post: RE: AWS Version 3.0

edoramedia Wrote: (07-12-2015, 09:46 PM) -- I have been trying to find a library for CI to connect to AWS Version 3 but found nothing. It's quite sad how slow these things have become. I noticed ...
4,124 Views
2 Replies
07-13-2015, 11:17 AM
davicotico
    Thread: timezone Error
Post: RE: timezone Error

calcio Wrote: (06-04-2015, 12:12 PM) -- davicotico Wrote: (06-04-2015, 11:13 AM) -- For Brazil is: $config['time_reference'] = 'UM3'; More info here: http://www.codeigniter.com/user_guide/hel...
6,805 Views
5 Replies
06-04-2015, 12:49 PM
davicotico

Theme © iAndrew 2016 - Forum software by © MyBB