Welcome, Guest
You have to register before you can post on our site.

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 9,152
» Latest member: bestcontent
» Forum threads: 66,360
» Forum posts: 416,230

Full Statistics

Latest Threads
Can't read form values
Forum: CodeIgniter 3.x
1 hour ago
» Replies: 29   » Views: 755
AJAX help wanted
Forum: CodeIgniter 4 Support
3 hours ago
» Replies: 3   » Views: 154
Cannot delete from databa...
Forum: General Help
3 hours ago
» Replies: 5   » Views: 108
Resource Routes - PUT vs ...
Forum: CodeIgniter 4 Discussion
Yesterday, 05:37 PM
» Replies: 3   » Views: 145
phpStorm 2017.2 Released
Forum: Lounge
Yesterday, 05:09 PM
» Replies: 1   » Views: 128
Validation error
Forum: Libraries & Helpers
Yesterday, 01:26 PM
» Replies: 0   » Views: 39
CodeIgniter Rest Server w...
Forum: Addins
Yesterday, 09:54 AM
» Replies: 1   » Views: 731
Job Alert System
Forum: Choosing CodeIgniter
Yesterday, 08:38 AM
» Replies: 6   » Views: 989
Generate MS Word document...
Forum: Learn More
Yesterday, 08:33 AM
» Replies: 2   » Views: 1,601
404 Page Not Found The p...
Forum: General Help
Yesterday, 05:40 AM
» Replies: 3   » Views: 79

 
  Validation error
Posted by: [email protected] - Yesterday, 01:26 PM - Forum: Libraries & Helpers - No Replies

when extend form_validation library error message is not shown.
my_validation library
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class My_validation extends CI_Form_validation
{

    public function test()
    {
        return true;
    }
}



form controler

class Form extends CI_Controller {
    
         public function __construct()
        {
                parent::__construct();
                $this->load->helper(array('form', 'url'));
                $this->load->library(array('form_validation','my_validation'));
        }

        public function index()
        {
            $this->my_validation->set_rules('first_name', 'First Name', 'required|alpha');
            
            /*$this->my_validation->set_rules('last_name', 'Last Name', 'required|alpha');
            $this->my_validation->set_rules('user_type', 'User Type', 'required|integer');
            $this->my_validation->set_rules('user_name', 'User Name', 'required|alpha_numeric');
            
            $this->my_validation->set_rules('user_password', 'Password', 'required|alpha_numeric');
            $this->my_validation->set_rules('confirm_password', 'Confirm Password', 'required|alpha_numeric|matches[user_password]');
            $this->my_validation->set_rules('email', 'email', 'required|valid_email');
            $this->my_validation->set_rules('contact_no', 'Contact No', 'required|numeric|exact_length[10]');*/
            //$this->my_validation->set_rules('upload_img', 'Image', 'file_empty_check');
                 /*
                $config['upload_path']          = './uploads/';
                $config['allowed_types']        = 'gif|jpg|png';
                $config['max_size']             = 100;
                $config['max_width']            = 1024;
                $config['max_height']           = 768;
                $this->load->library('upload', $config);*/
                if ($this->my_validation->run() == FALSE)
                {
                    
                
                
                
                    $this->load->view('myform',$data);
                }
               /* else
                {
                    $this->load->model('registration_model');
                    $this->db->trans_begin();
                    $this->registration_model->new_registration();
                    $this->registration_model->insert_login();
                    if ($this->db->trans_status() === TRUE && $this->upload->do_upload('upload_img'))
                    {
                        $this->db->trans_commit();
                        
                    }
                    else
                    {
                        $this->db->trans_rollback();
                    }
                }*/
            
            
        }
        
        
        
}




form view

<?php


echo  validation_errors();

?>

Please help.


  Resource Routes - PUT vs PATCH
Posted by: natanfelles - 07-20-2017, 07:15 PM - Forum: CodeIgniter 4 Discussion - Replies (3)

Assuming that PATCH makes it possible to update one attribute at a time while the PUT forces the update of the entire entity.

Is not more versatile the default Update route for Resource be a PATCH method? Why?


  404 Page Not Found The page you requested was not found.
Posted by: luisoswal29 - 07-20-2017, 06:15 PM - Forum: General Help - Replies (3)

Hi friends, I'm Luis
You could help me please
I encounter this error 404 I want to make an intranet with codeigniter 3 and when I upload it to my server I get this error 404

Currently I still have the codeigniter architecture, I do not edit the architecture in any moment

[Image: 1.PNG]
This is my configuration to connect to database
[Image: 2.PNG]

This is the configuration of my file config.php

[img] Https://www.cladea.org/codeigniter/3.PNG[/img]


Being on my website and inspecting the web I get an error, that error does not allow me to view my system on the internet

[Image: 4.PNG]

You can also see it in the following url: https://www.cladea.org/cladeaintranet/ 

my file .htacces is the following


Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|robots\.txt|sitemap\.xml|plantilla)
RewriteRule ^(.*)$ index.php/$1 [L]

The section template is where I call my files as images, css, js and fonts

Please wait for your help many thanks in advance


  Cannot delete from database
Posted by: [email protected] - 07-20-2017, 02:31 PM - Forum: General Help - Replies (5)

I cannot delete using a button in a datatabe but I can delete if I use a form and I don't know what I'm doing wrong.

The form that works:

<?php echo form_open('/posts/delete/'.$post['id']); ?>
<input type="submit" value="Delete" class="btn btn-danger">
<?php echo form_close(); ?>

MY controller:

    public function delete($id){
        $this->post_model->delete_post($id);

        redirect('posts/latest_post');
    }

My model:

public function delete_post($id){

$this->db->where('id', $id);
$this->db->delete('posts');
return true;
}

My button in the datatable:

<td>
       <a class="btn btn-danger" type="button"  href="<?php echo base_url(); ?>posts/delete/<?php echo $post['id']; ?>"><i class="fa fa-close"></i>delete</a>
</td>

Any help will be appreciated

Thanks


  Database Error
Posted by: [email protected] - 07-20-2017, 12:58 PM - Forum: Libraries & Helpers - Replies (1)

I installed xampp in d drive.When i load the database I got a  error "Fatal error: Call to undefined function mysqli_init() in D:\xampp\htdocs\ci\system\database\drivers\mysqli\mysqli_driver.php on line 135".. But same folder working fine in another machine installed xampp in c drive.
Also in php.ini

Code:
extension=php_mysqli.dll
 is activated.Plz help how to solve


  Replacing Core Classes Note needed
Posted by: Martin7483 - 07-20-2017, 04:30 AM - Forum: CodeIgniter 3.x - Replies (5)

Hi,

Maybe it is a good idea to have a note added to the documentation regarding the replacement/extention of core Database classes.

https://www.codeigniter.com/userguide3/g...re-classes

It is misleading as you would now expect it to be possible to replace/extend Database classes


  phpStorm 2017.2 Released
Posted by: InsiteFX - 07-20-2017, 01:38 AM - Forum: Lounge - Replies (1)

JetBrains released phpStorm 2017.2 yesterday which is their 2nd major update this year.


Question Enabling SSL for a Login Form
Posted by: RedRepublic01 - 07-19-2017, 07:18 PM - Forum: General Help - Replies (2)

Hey guys, (newbie here)

I was wondering if anybody had experience with enabling SSL protection for a login page in CI 3? I've already enabled Session, CSRF, and XSS protection in my config file but I'm getting "Connection is not secure" warnings every time I access the login form of my website.

Sure hope somebody can help me with this.

Thanks in advance! Big Grin


  404 Page Not Found The page you requested was not found.
Posted by: luisoswal29 - 07-19-2017, 05:49 PM - Forum: Regional User Groups - Replies (2)

Hi friends, I'm Luis
You could help me please
I encounter this error 404 I want to make an intranet with codeigniter 3 and when I upload it to my server I get this error 404

Currently I still have the codeigniter architecture, I do not edit the architecture in any moment

[Image: 1.PNG]
This is my configuration to connect to database
[Image: 2.PNG]

This is the configuration of my file config.php

[img] Https://www.cladea.org/codeigniter/3.PNG[/img]


Being on my website and inspecting the web I get an error, that error does not allow me to view my system on the internet

[Image: 4.PNG]

You can also see it in the following url: https://www.cladea.org/cladeaintranet/ 

my file .htacces is the following


Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|robots\.txt|sitemap\.xml|plantilla)
RewriteRule ^(.*)$ index.php/$1 [L]

The section template is where I call my files as images, css, js and fonts

Please wait for your help many thanks in advance


  need help in security
Posted by: Suhaib - 07-19-2017, 12:13 PM - Forum: Jobs - Replies (2)

Hi all,

I need some developer to make some works for me 

there is a team develop a website for me by CodeIgniter and they left the work 

now the site is working fine but it has some security issue 

when I test it with a Hacker guy he access to admin panel in 5 minutes only and he told me that there's a bug in SQL with site

so is there any one can test the site and scan it to see if there are security problems then fix it? 

I can't put the URL here so if any one can work with me please let's contact by email or phone no. 



  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.