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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 12,948
» Latest member: johndias
» Forum threads: 68,997
» Forum posts: 429,298

Full Statistics

Latest Threads
How do i redirect user to...
Forum: CodeIgniter 4 Support
2 hours ago
» Replies: 2   » Views: 118
CodeIgniter 3.1.10 Releas...
Forum: News & Discussion
2 hours ago
» Replies: 14   » Views: 5,128
File upload validation wi...
Forum: CodeIgniter 4 Support
10 hours ago
» Replies: 0   » Views: 42
Why Codeigniter is better...
Forum: Choosing CodeIgniter
Yesterday, 01:39 AM
» Replies: 13   » Views: 3,218
CI tutorial from David Co...
Forum: Lounge
01-22-2019, 07:44 PM
» Replies: 13   » Views: 1,212
Library: "Dates and Times...
Forum: CodeIgniter 4 Support
01-22-2019, 02:14 PM
» Replies: 2   » Views: 178
Codeigniter database conn...
Forum: General Help
01-22-2019, 10:20 AM
» Replies: 2   » Views: 102
How to deal with large up...
Forum: CodeIgniter 4 Support
01-22-2019, 10:19 AM
» Replies: 3   » Views: 160
Top RSA library for php
Forum: General Help
01-22-2019, 10:19 AM
» Replies: 9   » Views: 208
Project Update 2019.01.04
Forum: News & Discussion
01-22-2019, 02:52 AM
» Replies: 15   » Views: 5,419

 
Bug Undefined variable: admin_id
Posted by: Saeed_Sikandar - 01-11-2019, 12:26 AM - Forum: General Help - Replies (6)

New to Codeigniter need help




A PHP Error was encountered
Severity: Notice
Message: Undefined variable: admin_id
Filename: admins/admin-profile.php
Line Number: 16
Backtrace:
File: C:\xampp\htdocs\dgos\application\views\admins\admin-profile.php
Line: 16

Function: _error_handler

File: C:\xampp\htdocs\dgos\application\controllers\Admins.php
Line: 47

Function: view

File: C:\xampp\htdocs\dgos\index.php

Line: 315

Function: require_once


  Jquery UI modal show not working
Posted by: vijaynair - 01-10-2019, 02:22 PM - Forum: General Help - Replies (7)

Hello Everyone,

New to this forum and new to codeigniter. Facing following issue.

I have a view definition file which contain a link to show personal info as given below.

Code:
<div><a href="javascript:show_contact_info();">Show contact info</a></div>

THen I have the javascript function as follows:

Code:
function show_contact_info()
{
$("#emplinfo_div").modal('show');
}

Now here is the modal definition.
Code:
<div class="modal fade" id="emplinfo_div"  role="dialog" >
<div class="modal-dialog">
<div class="modal-content">
CONTACT INFORMATION OF <?php echo $firstname." ".$lastname;?>
<div class="col-md-12 ">
<div  class="col-md-12 row" style="margin-top:10px;">
<b>Email</b> : <?php echo $email;?>
</div>
<div  class="col-md-12 row" style="margin-top:10px;">
<div class="col-md-3 row"><b>Address</b>:</div>
<div class="col-md-9"><?php echo $address1.", ".$address2."<br />".$city.", ".$state."<br />".
$country." - ".$pincode;?></div>
</div>
<div  class="col-md-12 row" style="margin-top:10px;">
<b>Contact phone</b> : <?php echo $phone;?>
</div>
<div id="txt001"></div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">
OK
</button>
</div>
</div>
</div


Please help

Regards,
Vijay


  CI 3 + Dropzone
Posted by: Camp1 - 01-10-2019, 11:41 AM - Forum: General Help - Replies (2)

I'm trying to create an image upload with Dropzone, every time I attach an image, I get POST 200 and I think everything is fine but the image has not been uploaded.

I can not make it work, can someone help me?

Thanks!!!!



Controller:

Code:
 public function test(){

        $config['upload_path']   = './uploads/';

        $config['allowed_types'] = 'gif|jpg|png';

        $config['max_size']      = 1024;


        $this->load->library('upload', $config);

        $this->upload->do_upload('file');
}

View:
Code:
    <link href='https://cdnjs.cloudflare.com/ajax/libs/dropzone/5.4.0/dropzone.css' type='text/css' rel='stylesheet'>
    <script src='https://cdnjs.cloudflare.com/ajax/libs/dropzone/5.4.0/dropzone.js' type='text/javascript'></script>
   
    <script>
    Dropzone.options.fileupload = {
      acceptedFiles: 'image/*',
      url: '<?= base_url('admin/galeria/test') ?>',
      maxFilesize: 2
    };
    </script>

       <?php echo form_open_multipart('admin/galeria/test', array('class' => 'dropzone', 'id' => 'fileupload')) ; ?>
      </form>


  PHP 7.3.1 Released Security and other Fixes
Posted by: InsiteFX - 01-10-2019, 11:09 AM - Forum: Lounge - No Replies

PHP 7.3.1 Has been released with Security and other fixes.


  Is it Possible to Port from Wordpress To Codeigniter?
Posted by: Russell18 - 01-10-2019, 07:31 AM - Forum: Choosing CodeIgniter - Replies (3)

Hello friends,

I run a small website *link redacted*. It runs on Wordpress. Is it possible to port from Wordpress to codeigniter?


  Add PURGE of RESTful paths for a single resource
Posted by: atsanna - 01-09-2019, 12:46 PM - Forum: CodeIgniter 4 Feature Requests - Replies (3)

Hi everyone,
To quickly create a handful of RESTful paths for a single resource with the resource () method, I needed to implement the purge method to delete all deleted records.
I would like this method to be implemented.
I share the changes I made to the "system\router\RouteCollection.php" file below
I hope it is useful to someone.

I'm very sorry if I'm wrong to post here.

ADD into public function resource
*      // Generates the following routes:
*      HTTP Verb | Path        | Action        | Used for...
*      ----------+-------------+---------------+-----------------
*      PURGE       /photos/            purge           purge all deleted photos

Code:
//=======================
// Added row 874
//=======================
if (in_array('purge', $methods))
{
$this->purge($name . '/purge' , $new_name . '::purge', $options);
}

ADDED after public function delete
Code:
 /**
    * Specifies a route that is only available to PURGE requests.
    *
    * @param $from
    * @param $to
    * @param array $options
    *
    * @return \CodeIgniter\Router\RouteCollectionInterface
    */
   public function purge(string $from, $to, array $options = null): RouteCollectionInterface
   {
       $this->create('purge', $from, $to, $options);

       return $this;
   }


.php   RouteCollection.php (Size: 35.41 KB / Downloads: 11)


  Best method/practise/ way to master CodeIgniter
Posted by: Sovani Shreeniwas - 01-09-2019, 04:54 AM - Forum: Learn More - Replies (3)

I am new in the programming field. However, I have basic understanding of a programming languages like c, PHP, mySQL. I have studied PHP to some extent. Read CodeIgniter GeneralTopics, some librariies, helpers, Autoload etc. 

What is best way to master CodeIgniter? I want to put at least 1 or 2 hours daily in mastering concepts related to CodeIgniter.

Kindly request to suggest suitable simple & interesting ways.


  Update form data into database
Posted by: Sovani Shreeniwas - 01-09-2019, 04:32 AM - Forum: General Help - Replies (3)

I have below file in views
<html>
<head>
<title>My Form</title>
</head>
<body>
 
<?php echo validation_errors(); ?>
 
<?php echo form_open('form'); ?>
 
<h5>Cert No.</h5>
<input type="text" name="certno" value="" size="20" />
 
<h5>Site Name</h5>
<input type="text" name="location" value="" size="20" />
 
<h5>Work Date</h5>
<input type="date" name="workdate" value="" size="10" />
 
<h5>Date Of   Receipt</h5>
<input type="date" name="dateofreceipt" value="" size="10" />
 
<h5>Customer Name</h5>
<input type ="text" name="customername" value"" size="50"/>
</form>
 
</body>
</html>
 
 
And below in Controller:
<?php
 
class Form extends CI_Controller {
 
        public function index()
        {
                $this->load->helper(array('form', 'url'));
 
                $this->load->library('form_validation');
 
                if ($this->form_validation->run() == FALSE)
                {
                        $this->load->view('myform');
                }
                else
                {
                        $this->load->view('formsuccess');
                }
        }
}
 
With above I am able to create the form. Now I want to upload the data I entered in the form as per above to the mysql database (I have already created mysql databse & compatible table to suit above through PHPmyadmin).
Kindly suggest the required additional code in Controller, Model & View.


  How to change base config dynamic?
Posted by: ramstudio - 01-09-2019, 01:15 AM - Forum: CodeIgniter 4 Discussion - Replies (9)

How to change base config dynamic?
In Ci3 If you would like to dynamically set a config item or change an existing one, you can do so using:

Code:
$this->config->set_item('item_name', 'item_value');

Can I dynamically set the controller to Ci4? 
Example: $defaultLocale, $supportedLocales, $appTimezone


  mongodb last query
Posted by: makif - 01-09-2019, 12:40 AM - Forum: Addins - Replies (3)

i am using mongodb library in ci and i need to reach last query in mongodb
is there any solution for getting last query ? 
 i am using this library.  https://github.com/verkhoumov/codeignite...db-library



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