Build an Online Shop With CodeIgniter 3: Video 96
Build an online shop with Codeigniter - part 95: Paypal IPN ( instant payment notifications)
ADDITIONAL RESOURCES

Even More Cool Stuff

Below is an example of the some data that has been posted from Paypal.

Leave a Comment

 
 
 
 
bardha (Saturday 4th of August 2018 at 10:21:12 AM, GMT)
why cant i download the logo

Ignou (Thursday 2nd of August 2018 at 08:00:47 PM, GMT)
Guide me to download the source code.

songly (Wednesday 1st of August 2018 at 02:51:47 PM, GMT)
hi teacher! when i click submit go to pay-pal why shopping cart is empty??

haglerw (Sunday 29th of July 2018 at 01:04:37 PM, GMT)
I must say, always hated working with codeigniter but when I came across David Connelly's YouTube Channel, my coding life has been easier, I must say.

songly (Saturday 14th of July 2018 at 11:41:22 AM, GMT)
A PHP Error was encountered
Severity: Notice

Message: Undefined variable: settings

Filename: controllers/custom_pagination.php

Line Number: 31

Backtrace:

File: C:\xampp\htdocs\project\application\modules\custom_pagination\controllers\custom_pagination.php
Line: 31
Function: _error_handler

File: C:\xampp\htdocs\project\application\modules\store_categories\controllers\store_categories.php
Line: 48
Function: _generate_pagination

File: C:\xampp\htdocs\project\application\modules\products\controllers\products.php
Line: 16
Function: view

File: C:\xampp\htdocs\project\index.php
Line: 315
Function: require_once

bardha (Friday 13th of July 2018 at 10:01:25 AM, GMT)
heyy

bardha (Friday 13th of July 2018 at 10:01:24 AM, GMT)
heyy

bardha (Friday 13th of July 2018 at 10:01:24 AM, GMT)
heyy

axsart (Thursday 12th of July 2018 at 09:31:59 AM, GMT)
error to download file....

zmkill3r (Monday 9th of July 2018 at 01:59:38 PM, GMT)
can someone tell me why the download button wont work even though i do post in the forum? thanks!

songly (Friday 6th of July 2018 at 10:24:24 AM, GMT)
yeah all right me can fine (variable: big_pic) .....

songly (Friday 6th of July 2018 at 09:37:14 AM, GMT)
teacher i have a error Undefined variable: big_pic (views/create.php) on this video

bloody3217 (Wednesday 4th of July 2018 at 04:35:01 AM, GMT)
very cool

bardha (Monday 2nd of July 2018 at 09:35:53 AM, GMT)
very cool

raman1979 (Saturday 30th of June 2018 at 01:04:14 PM, GMT)
Awesome tutorial...

codoers (Friday 29th of June 2018 at 06:21:54 PM, GMT)
Hi Good day, I have an error form create.php file

Type: Error

Message: Call to undefined function validation_errors()

Filename: C:\xampp\htdocs\ci_tutorials\application\modules\store_items\views\create.php

Line Number: 1

How to solve this?

Magdev (Wednesday 20th of June 2018 at 07:03:44 PM, GMT)
Hello David your tutorial is very nice but your links are not available !

Magdev (Monday 18th of June 2018 at 07:38:47 AM, GMT)
Hello David, your link is not available !

sace (Friday 8th of June 2018 at 11:00:00 AM, GMT)
hey guys! I found a big bug in this course , after i finished all the parts , when i view the home page as front end i.e. public bootstrap page and logged in as customer and in the address bar i write
ci_shop/store_items/create
I directly go to the admin panel.
Can anyone help me how to fix it? Is this issue is only happening with me or someone else.
please guys help me , its my humble request.


mahendra251 (Wednesday 6th of June 2018 at 10:37:43 AM, GMT)
i am following your video, but in 6 video store_items and site_security are to extra folders , from where i get store_items and site_security source code

dr.Lafo (Friday 25th of May 2018 at 11:52:13 AM, GMT)
Hello, great tutorials soo far

rossfion (Monday 14th of May 2018 at 09:47:11 PM, GMT)
David, this is still the best series on building an online shop on YT that adopts CI3 and HMVC. I keep coming back to it when I need a model to refer to. Peace! Fionn

waqarjan333 (Thursday 10th of May 2018 at 07:16:45 PM, GMT)
if you remove the all stuff from here then please remove your video course from youtube

waqarjan333 (Thursday 10th of May 2018 at 07:15:17 PM, GMT)
where is the item data?

EliteBoy (Saturday 5th of May 2018 at 05:25:05 PM, GMT)
Hi.
I'm learning a lot from your videos.
But where can i down load this COPYTHIS folder?
I'm progressing without it . But it is used so many times.
I want to download it.

Hamza Amin (Friday 4th of May 2018 at 10:32:06 AM, GMT)
It takes too much time building code from the video


Hamza Amin (Friday 4th of May 2018 at 10:31:31 AM, GMT)
Why all the resources cannot be downloaded

agus.ronaldo.3311501010 (Friday 4th of May 2018 at 09:33:59 AM, GMT)
Does anybody got errror at part 69 : Enable Login Form ?? When i always want to login with the correct username and password, it still give me the message "You did not enter a correct username and/or password.". Also when i try to create an account, it gives the error "The Username field must contain a unique value.". Please someone help. im stuck for 5 days, to figureout the error. thanks in advance

bigfash (Monday 30th of April 2018 at 09:05:50 PM, GMT)
very goo job thank you

jhokare (Thursday 19th of April 2018 at 02:47:51 AM, GMT)
david please tell us how to download Additional Resources

jhokare (Wednesday 18th of April 2018 at 05:09:53 AM, GMT)
Hello David can u help us to get Sample Store Items in PART 51 ?



NoSuchBucket
The specified bucket does not exist
codesamplesdc
63D102F3B928DE92

TTTfAuKlFmBB4Acydzg7k0sxXJGhAebE1TBkCXQNffcL8PLCYq6zX80ZBTwxyoU1bEwv/SmM9Io=



tmakshay59@gmail.com (Monday 16th of April 2018 at 12:43:31 PM, GMT)
Hi,
I need to download this link, Please

sabirmukadam (Monday 16th of April 2018 at 06:00:11 AM, GMT)
I posted the comment for the slider images but could not find any link to download the material

sabirmukadam (Monday 16th of April 2018 at 05:57:54 AM, GMT)
hi,
I need to download this code

jhokare (Sunday 15th of April 2018 at 05:38:29 PM, GMT)
hello david
your link PART 51 : The Show Items Page is not working can u reupload ? plz

jhokare (Sunday 15th of April 2018 at 05:36:50 PM, GMT)
hello david
your link is not working can u reupload ? plz

agus.ronaldo.3311501010 (Sunday 15th of April 2018 at 09:34:15 AM, GMT)
thank you

waqas (Thursday 12th of April 2018 at 10:06:51 AM, GMT)
Hi,
I hope everybody enjoy good and healthy life.keep working and be happy.
Download button not working so I upload code custom_pagination following code.

<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class Custom_pagination extends MY_Controller
{

function __construct()
{
parent::__construct();
}

function generate_pagination($template)
{
if($template == "public_bootstrap"){
$settings = $this->get_settings_for_public_bootstrap();
}

$this->load->library('pagination');
$config['base_url'] = 'http://example.com/index.php/test/page/';
$config['total_rows'] = 200;

$config['per_page'] = $settings['per_page'];
$config['num_links'] = $settings['num_links'];

$config['full_tag_open'] = $settings['full_tag_open'];
$config['full_tag_close'] = $settings['full_tag_close'];

$config['cur_tag_open'] = $settings['cur_tag_open'];
$config['cur_tag_close'] = $settings['cur_tag_close'];

$config['num_tag_open'] = $settings['num_tag_open'];
$config['num_tag_close'] = $settings['num_tag_close'];

$config['first_link'] = $settings['first_link'];
$config['first_tag_open'] = $settings['first_tag_open'];
$config['first_tag_close'] = $settings['first_tag_close'];

$config['last_link'] = $settings['last_link'];
$config['last_tag_open'] = $settings['last_tag_open'];
$config['last_tag_close'] = $settings['last_tag_close'];

$config['prev_link'] = $settings['prev_link'];
$config['prev_tag_open'] = $settings['prev_tag_open'];
$config['prev_tag_close'] = $settings['prev_tag_close'];

$config['next_link'] = $settings['next_link'];
$config['next_tag_open'] = $settings['next_tag_open'];
$config['next_tag_close'] = $settings['next_tag_close'];


$this->pagination->initialize($config);
$pagination = $this->pagination->create_links();
return $pagination;

}


/*

*/

function get_settings_for_public_bootstrap()
{
$settings['per_page'] = 20;
$settings['num_links'] = 12;

$settings['full_tag_open'] = '';

$settings['cur_tag_open'] = '
  • ';
    $settings['cur_tag_close'] = '
  • ';

    $settings['num_tag_open'] = '';

    $settings['first_link'] = 'First';
    $settings['first_tag_open'] = '';

    $settings['last_link'] = 'Last';
    $settings['last_tag_open'] = '';

    $settings['prev_link'] = '';
    $settings['prev_tag_open'] = '';

    $settings['next_link'] = '';
    $settings['next_tag_open'] = '';

    return $settings;

    }

    }



    evilsempire (Thursday 12th of April 2018 at 03:48:06 AM, GMT)
    Hello david I would like to what is your daily routine for web development

    waqarjan333 (Tuesday 10th of April 2018 at 02:54:14 PM, GMT)
    anyone there?
    no reply?

    waqarjan333 (Monday 9th of April 2018 at 08:17:25 PM, GMT)
    the download link is not working

    izran.khan (Sunday 8th of April 2018 at 07:43:46 PM, GMT)
    Hi sir,
    I need the models please

    waqas (Tuesday 3rd of April 2018 at 10:12:33 AM, GMT)
    Hi David,
    please need some your help.
    query not fetch data from database. showing this error.




    A PHP Error was encountered

    Severity: Notice

    Message: Undefined variable: query

    Filename: views/view.php

    Line Number: 6

    Backtrace:

    File: C:\xampp\htdocs\cishop\application\modules\store_categories\views\view.php
    Line: 6
    Function: _error_handler

    File: C:\xampp\htdocs\cishop\application\third_party\MX\Loader.php
    Line: 357
    Function: include

    File: C:\xampp\htdocs\cishop\application\third_party\MX\Loader.php
    Line: 300
    Function: _ci_load

    File: C:\xampp\htdocs\cishop\application\modules\Templates\views\public_bootstrap.php
    Line: 56
    Function: view

    File: C:\xampp\htdocs\cishop\application\third_party\MX\Loader.php
    Line: 357
    Function: include

    File: C:\xampp\htdocs\cishop\application\third_party\MX\Loader.php
    Line: 300
    Function: _ci_load

    File: C:\xampp\htdocs\cishop\application\modules\Templates\controllers\Templates.php
    Line: 26
    Function: view

    File: C:\xampp\htdocs\cishop\application\third_party\MX\Modules.php
    Line: 71
    Function: call_user_func_array

    File: C:\xampp\htdocs\cishop\application\modules\store_categories\controllers\store_categories.php
    Line: 51
    Function: run

    File: C:\xampp\htdocs\cishop\application\modules\music\controllers\music.php
    Line: 17
    Function: view

    File: C:\xampp\htdocs\cishop\index.php
    Line: 315
    Function: require_once

    Fatal error
    : Call to a member function result() on null in
    C:\xampp\htdocs\cishop\application\modules\store_categories\views\view.php
    on line
    6

    A PHP Error was encountered

    Severity: Error

    Message: Call to a member function result() on null

    Filename: views/view.php

    Line Number: 6

    Backtrace:



    sace (Sunday 1st of April 2018 at 08:15:19 AM, GMT)
    why your download button doesn't work?
    is it here to bluff us?

    sace (Sunday 1st of April 2018 at 07:24:42 AM, GMT)
    hey . its really amazing tutorial you had created , i ever seen on youtube. thanxx
    please help me in getting sorce code you used , just like sortable category , you mention here to download .

    jibagast (Sunday 1st of April 2018 at 12:28:25 AM, GMT)
    typo correction

    Hi i have been following this tutorial on a localhost and when I upload to a server
    http://192.168.0.43/template/test
    I get:
    404 Page Not Found
    The page you requested was not found.

    Any ideas where I may be going wrong?

    jibagast (Sunday 1st of April 2018 at 12:26:20 AM, GMT)
    Hi i have been following this tutorial on a localhost and when I upload to a server , http://192.168.0.43/tempatest/test
    I get:
    404 Page Not Found
    The page you requested was not found.

    Any ideas where I may be going wrong?

    lorina (Saturday 31st of March 2018 at 06:48:49 PM, GMT)
    thanks alot david for your great tutorials but i have a problem with the sub_category , assigned category when i used the function array_diff() , when ever i assign an item to a category , the assigned categories still appear on the dropdown of the categories to choose feom and i still yet to figure it out

    premchandra (Thursday 29th of March 2018 at 04:45:51 AM, GMT)
    Thank you big inspiration !!!

    gracekweb (Tuesday 27th of March 2018 at 02:31:58 PM, GMT)
    Thank you!

    dpduy (Tuesday 27th of March 2018 at 02:52:20 AM, GMT)
    Thank you!

    sace (Monday 26th of March 2018 at 08:12:23 AM, GMT)
    when I check my database , it data from form get inserted successfully. but i don't know how to fix this error

    sace (Monday 26th of March 2018 at 07:49:36 AM, GMT)
    please help me david , mail me the solution if you can here - munchking139@gmail.com

    sace (Monday 26th of March 2018 at 07:45:55 AM, GMT)
    WHY I AM GETTING THIS ERROR AFTER FOLLOWING PART 7: FORM VALIDATION VIDEO?


    A PHP Error was encountered

    Severity: Notice

    Message: Undefined property: CI::$md_store_items

    Filename: MX/Controller.php

    Line Number: 59

    Backtrace:

    File: C:\xampp\htdocs\nawaji\application\third_party\MX\Controller.php
    Line: 59
    Function: _error_handler

    File: C:\xampp\htdocs\nawaji\application\modules\Store_items\controllers\Store_items.php
    Line: 155
    Function: __get

    File: C:\xampp\htdocs\nawaji\application\modules\Store_items\controllers\Store_items.php
    Line: 40
    Function: get_max

    File: C:\xampp\htdocs\nawaji\index.php
    Line: 315
    Function: require_once




    jibagast (Thursday 22nd of March 2018 at 11:37:40 PM, GMT)
    Thats the vibe!

    sace (Wednesday 21st of March 2018 at 09:58:04 AM, GMT)
    Although following step by step, the glyphicons appears as a square bracket, I spend nearly a day to solve it but can't able to do that. The in the directory adminfiles/css/style.css is called in headtag of admin.php. this style.css @import url("glyphicon.css"); where i try to customize as @import url("<?php base_url();?>glyphicon.css"); but not work. please help me. its really frustating for me. I also try to replace with font awesome but it also not work for me. I also tried different browsers also.?

    mekhchann (Wednesday 14th of March 2018 at 04:39:03 AM, GMT)
    Dear David Connelly,
    I wnat to get material for free,

    thanks you!

    mayclino (Friday 9th of March 2018 at 05:34:17 AM, GMT)
    could somebody help me? im stuck at this.

    An uncaught Exception was encountered
    Type: Error

    Message: Call to undefined method MY_Loader::_ci_object_to_array()

    Filename: C:\xampp\htdocs\cishop\application\third_party\MX\Loader.php

    Line Number: 300

    Backtrace:

    File: C:\xampp\htdocs\cishop\application\controllers\Welcome.php
    Line: 23
    Function: view

    File: C:\xampp\htdocs\cishop\index.php
    Line: 315
    Function: require_once

    stargodwin (Thursday 8th of March 2018 at 04:30:36 PM, GMT)
    good day please can you email me the folders of sitesecurity and store items...thanks
    godwiniheuwa@gmail.com

    jibagast (Wednesday 7th of March 2018 at 02:25:41 AM, GMT)
    Great tutorials. can you handle the vibe! lol

    manofpeace68 (Monday 5th of March 2018 at 03:11:43 AM, GMT)
    I am enjoying the vibes!

    collins (Wednesday 28th of February 2018 at 08:09:56 PM, GMT)
    Happy to be part of the club. Codeigniter is set to be easier, i guess

    maxcoder (Tuesday 27th of February 2018 at 01:41:30 PM, GMT)
    I like this lessons, but not easy to follow them nowadays with another CodeIgnioter version.

    ccapoy (Saturday 24th of February 2018 at 04:05:55 PM, GMT)
    TY

    ranbdrkhtri (Friday 16th of February 2018 at 02:47:44 PM, GMT)
    Here is $data['Attachment'] =FALSE;
    not working for open the browser. but it works only download pdf file

    class Invoices extends MX_Controller
    {

    function __construct() {
    parent::__construct();
    }

    function test()
    {
    // Load all views as normal

    $data['name']="Not Working";
    $this->load->view('test', $data);
    // Get output html
    $html = $this->output->get_output();

    // Load library
    $this->load->library('dompdf_gen');

    // Convert to PDF
    $this->dompdf->load_html($html);
    $this->dompdf->render();
    $data['Attachment']=FALSE;
    $this->dompdf->stream("welcome.pdf", $data);

    }
    }

    Jey (Thursday 15th of February 2018 at 06:11:15 PM, GMT)
    Good

    Fjerbi (Wednesday 14th of February 2018 at 06:32:28 PM, GMT)
    ..

    ranbdrkhtri (Monday 12th of February 2018 at 05:58:03 PM, GMT)
    gives me download error

    ranbdrkhtri (Monday 12th of February 2018 at 05:42:40 PM, GMT)
    I can not download the zip file silder image

    panu (Wednesday 7th of February 2018 at 08:26:16 AM, GMT)
    Thanks for your tutorial

    jose luis (Monday 5th of February 2018 at 11:25:54 AM, GMT)
    Hello
    I can not download the zip file
    gives me download error
    This XML file does not appear to have any style information associated with it. The document tree is shown below.

    NoSuchBucket
    The specified bucket does not exist
    codesamplesdc
    4B4C4EC2DE70A8D3

    yXmFOnStDYgbKsKfGgweBlV8KPV1jdlPSoWdbC0tGfij5tytUAznfcPaqDH1GRJN3bycTHzJauc=



    jose luis (Monday 5th of February 2018 at 11:18:49 AM, GMT)
    The best tutorial ¡¡¡ thanks

    ranbdrkhtri (Friday 2nd of February 2018 at 01:18:41 PM, GMT)
    where to find source code???

    ranbdrkhtri (Friday 2nd of February 2018 at 05:41:40 AM, GMT)
    Helllo, download link not showing even after commenting!

    itampna (Tuesday 30th of January 2018 at 04:30:16 AM, GMT)
    Awesome VDO

    expo24 (Monday 29th of January 2018 at 08:49:59 PM, GMT)
    Nice Video

    ata (Saturday 27th of January 2018 at 12:30:24 PM, GMT)
    Helllo, download link not showing even after commenting!


    Melchisedec (Wednesday 24th of January 2018 at 02:57:53 PM, GMT)
    Hey @DC, thanks for the videos, they are so insightful!

    Melchisedec (Wednesday 24th of January 2018 at 02:56:58 PM, GMT)
    Helllo, download link not showing even after commenting!

    fadlu (Sunday 21st of January 2018 at 10:54:03 PM, GMT)
    hello the download button not working how do i get the source code

    atik_ratan (Wednesday 17th of January 2018 at 11:58:52 AM, GMT)
    adsfad

    atik_ratan (Tuesday 16th of January 2018 at 06:22:04 AM, GMT)
    where to find source code???

    Kevin (Monday 15th of January 2018 at 12:20:49 PM, GMT)
    Message: Call to undefined method store_items:_insert()

    please help me how to solve it?

    Kevin (Monday 15th of January 2018 at 12:19:54 PM, GMT)
    Fatal error: Call to a member function admin() on null in E:\Php\htdocs\cishop\application\modules\store_items\controllers\Store_items.php on line 23
    A PHP Error was encountered

    Severity: Error

    Message: Call to a member function admin() on null

    Filename: controllers/Store_items.php

    Line Number: 23

    Backtrace:
    Anyone can help me this Error

    Fjerbi (Monday 15th of January 2018 at 10:34:34 AM, GMT)
    nice

    Saif (Sunday 7th of January 2018 at 04:43:31 AM, GMT)
    Nice Video

    radgoat (Friday 5th of January 2018 at 06:05:51 AM, GMT)
    There is no code =P

    mouris (Wednesday 3rd of January 2018 at 12:25:14 PM, GMT)
    Hi David, thanks for these tutorials I really enjoy it. I tried to download the code with the link but unfortunately, the link did not work. could you please send me the link to the hmvc and cosigniter that you used in the installation part thanks

    lito (Tuesday 2nd of January 2018 at 03:48:49 PM, GMT)
    Please, someone can give me the download link of the full project folder? i like a lot this and i need it.

    Gpankaj (Monday 25th of December 2017 at 11:51:11 AM, GMT)
    Thanks for tutorials, very nice , simple and easy to understand, finally I got the tutorials for codeignitor....Thanks David..

    rasoulemad (Sunday 24th of December 2017 at 04:09:59 PM, GMT)
    Thanks David

    atik_ratan (Sunday 24th of December 2017 at 06:13:02 AM, GMT)
    hello

    andrimuzaicy (Sunday 17th of December 2017 at 05:36:23 PM, GMT)
    hello sir, i am very happy to watch your tutorial videos,
    btw i am looking for code drag and drop xD hehehe

    qamar (Monday 11th of December 2017 at 07:43:50 PM, GMT)
    Download link not working

    rocabola (Sunday 3rd of December 2017 at 07:25:53 AM, GMT)
    No "custom_pagination.php" here. Download link not working :(

    rocabola (Wednesday 29th of November 2017 at 10:40:00 AM, GMT)
    Just if you are using a newer version of jQuery:
    .size() was removed in version 3 of jQuery, replace it with .length. (without (), is not a function, is a property)

    rnkhatri (Tuesday 28th of November 2017 at 04:05:21 PM, GMT)
    please send me onlineshop ci file help me or project file please
    please sir please


    rnkhatri (Tuesday 28th of November 2017 at 03:53:07 PM, GMT)
    file was not in site

    rasoulemad (Tuesday 28th of November 2017 at 02:58:14 PM, GMT)
    I have get error
    Fatal error: Call to a member function _generate_pagination() on null in

    rocabola (Tuesday 28th of November 2017 at 07:02:04 AM, GMT)
    hi! i cant't download the code. I get a XML file:


    NoSuchBucketThe specified bucket does not existcodesamplesdc83C59EF405D1AF36p9a9aG2uL93UuuKaT1cFQv2dcTfJs8ouKUCRrGI1534XOZceoTu8oAz+e3hhGYDRLsF2e02mrnU=


    susantoheri (Monday 27th of November 2017 at 03:06:24 PM, GMT)
    Thanks for your tutorial

    TEE (Saturday 25th of November 2017 at 01:34:57 AM, GMT)
    I know this is just a tutorial but when you give someone a shopper_id of 0 because they are not logged in someone else is on the site doing the same thing and then doing a query where the shopper_id = shopper_id you could possibly get all or someone else's order, or am I looking at it the wrong way. Would the IP address be a better choice to set as the shopper_id ?

    omkar123 (Monday 20th of November 2017 at 10:27:39 AM, GMT)
    no file :::::::::::(

    sunilsamel93@gmail.com (Monday 20th of November 2017 at 10:20:37 AM, GMT)
    nice

    marierabill (Saturday 18th of November 2017 at 03:25:52 PM, GMT)
    nice stuff

    rnkhatri (Thursday 16th of November 2017 at 02:41:11 PM, GMT)
    your learning process is better than other thanks devid's sir

    rnkhatri (Thursday 16th of November 2017 at 02:38:25 PM, GMT)
    Please help me for this code

    rnkhatri (Thursday 16th of November 2017 at 02:38:21 PM, GMT)
    Please help me for this code

    rasoulemad (Wednesday 15th of November 2017 at 04:42:42 PM, GMT)
    Thanks a lot

    UbaidKohat (Monday 13th of November 2017 at 09:33:09 AM, GMT)
    Thank you brother,
    your tutorials are great and valuable for being a professional web developer.

    Muhammad1994 (Tuesday 7th of November 2017 at 03:12:21 PM, GMT)
    good job

    waqas (Tuesday 31st of October 2017 at 07:04:20 PM, GMT)
    Hi DC,
    that is good platform thank you so much

    niravrathod (Saturday 28th of October 2017 at 05:49:27 PM, GMT)
    Thanks David finally completed!!!!!(except jquery mobile) i just need to know why you haven't done "Update Your Profile" and also for password recovery "FORGOT PASSWORD MODULE"??????.

    mathayomziba (Saturday 21st of October 2017 at 09:02:15 AM, GMT)
    Great tutorial brother

    hossainiiu (Saturday 21st of October 2017 at 01:45:42 AM, GMT)
    i could not find the mysql query lesson 75

    Altroo (Thursday 19th of October 2017 at 09:53:57 AM, GMT)
    thanks dav

    Viren45 (Monday 16th of October 2017 at 08:07:38 PM, GMT)
    An uncaught Exception was encountered

    Type: Error

    Message: Call to a member function _make_sure_is_admin() on null

    niravrathod (Monday 16th of October 2017 at 05:24:12 PM, GMT)
    need SQL files

    james (Friday 13th of October 2017 at 08:55:30 AM, GMT)
    Hey, David. I have a problem with this one.. because i truncated it's database. and now. i finally know when im done the series. Too bad for me.

    bhumirocks4eva (Thursday 5th of October 2017 at 01:54:32 PM, GMT)
    David you are an awesome tutor. Hats off to you.

    hossainiiu (Wednesday 4th of October 2017 at 03:44:23 AM, GMT)
    you provide nice tutorial , Thanks for your that

    mathayomziba (Monday 2nd of October 2017 at 09:05:00 AM, GMT)
    Thanks Brother

    khalidayman (Sunday 1st of October 2017 at 10:43:54 AM, GMT)
    Thanks for your tutorial <3


    dev (Saturday 23rd of September 2017 at 04:06:57 PM, GMT)
    ????

    elixejb (Sunday 17th of September 2017 at 06:22:23 PM, GMT)
    Thanks David! :)

    mathayomziba (Saturday 16th of September 2017 at 04:56:21 PM, GMT)
    Hello brother David, thanks for wonderful tutorials, now am doing everything in web development

    Phil_S (Friday 15th of September 2017 at 04:37:01 PM, GMT)
    Hi David
    I upgraded php to get the password hashing to work, since then flash data has stopped working. Any ideas please?

    fponsar (Thursday 14th of September 2017 at 04:30:40 PM, GMT)
    Thanks

    fponsar (Thursday 14th of September 2017 at 04:25:26 PM, GMT)
    Thanks David.
    Great free tutorial

    vijaya610 (Thursday 14th of September 2017 at 09:14:13 AM, GMT)
    how to create nested dropdown




    letuthptnguyendu (Wednesday 13th of September 2017 at 05:19:05 PM, GMT)
    Thanks for your tutorial <3

    cleverson (Tuesday 5th of September 2017 at 05:53:25 PM, GMT)
    Now i understand the subcategories concept, thank you David.

    jose luis (Thursday 31st of August 2017 at 10:55:03 AM, GMT)
    Me encanta estos tutoriales
    Gracias

    mathayomziba (Wednesday 30th of August 2017 at 12:12:44 PM, GMT)
    Thanks brother for wonderful videos may God bless you always!

    mathayomziba (Wednesday 30th of August 2017 at 12:02:32 PM, GMT)
    Thnx brate for wonderful tutorials, now i can call myself a commercial web developer!

    ryuuu (Wednesday 30th of August 2017 at 11:37:32 AM, GMT)
    where this code

    Younes2201 (Wednesday 30th of August 2017 at 09:25:59 AM, GMT)
    Thanks for letting us download the source code of sorting categories ...

    Misty (Tuesday 29th of August 2017 at 12:26:27 PM, GMT)
    Hi David,

    Firstly I would like to thank you for producing these extremely informative tutorials. I am really enjoying them.
    I am currently trying to set up the admin template in lesson 3 and have encountered the following problem when trying to view the dashboard on my local host:
    Server error!

    The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

    If you think this is a server error, please contact the webmaster.
    Error 500
    localhost
    Apache/2.4.26 (Win32) OpenSSL/1.0.2l PHP/7.1.7
    I have been back through my code and cannot find an error (doesn't mean there isn't one!)/ Please could you help me out.
    Many Thanks in advance
    Misty


    menet_corp (Tuesday 29th of August 2017 at 07:15:41 AM, GMT)
    Hi, Guys! I need your help fixing my design because there are few issues that I cannot seem to find the solutions for on my own;

    ------ THIS CODE IS SUPPOSED TO CREATE A BOOTSTRAP GRID ON THE PRODUCTS PAGE BUT UNFORTUNATELY EVERYTHING IS BEING DISPLAYED ON A SINGLE COLUMN INSTEAD OF MULTIPLE COLUMNS OF THE GRID WHICH IS OBVIOUSLY NOT THE RESULT THAT I AM AFTER. CAN YOU TELL ME WHAT I AM DOING WRONG SO THAT I CAN FIX IT? -----



    <?php foreach($products as $product) : ?>

    product_id; ?>">

    >

    & class="product-total">
    <?= $product->product_quantity; ?>


    ----- THIS PART IS SUPPOSED TO DISPLAY THE NAMES OF EACH CATEGORY IN THE SPAN ELEMENT PROVIDED, HOWEVER, INSTEAD OF DISPLAYING A SINGLE CATEGORY NAME FOR EACH CATEGORY ITEM AS RESPECTIVE TO THE CATEGORY TABLE, IT DISPLAYS ALL CATEGORY NAMES OF DIFFERENT PRODUCTS IN THE SAME SPAN ELEMENT WHICH IS NOT THE RESULT THAT I AM LOOKING FOR. CAN YOU PLEASE HELP ME SOLVE THIS TOO? -----

    ---------------------------------------------------------------------------------------------------------------------------------




    <?= $product->product_name; ?>





    <?= $product->product_description_short; ?>



    <!-- End of product-details -->



    £ <?= $product->product_price; ?>



    <form method="post" action="<?= base_url(); ?>cart/add">
    <input type="text" name="amount" value="1" class="quantity">
    <input type="hidden" name="product_id" value="<?= $product->product_id; ?>">
    <input type="hidden" name="product_price" value="<?= $product->product_price; ?>">
    <input type="hidden" name="product_name" value="<?= $product->product_name; ?>">
    <button class="add_to_cart" type="submit">Add to cart</button>
    </form>

    <!-- End of product-cart -->
    <!-- End of product-info -->
    <!-- End of product -->
    <?php endforeach; ?>

    abarreda (Tuesday 29th of August 2017 at 06:20:21 AM, GMT)
    It would also be very nice to have the complete source, as it is sometimes difficult to follow your quick coding.

    abarreda (Tuesday 29th of August 2017 at 06:18:38 AM, GMT)
    Thank you so much for your tutorials. I've learnes much more with them than with 3 years of experience. Please keep the good work!

    Sultan (Saturday 26th of August 2017 at 12:33:11 PM, GMT)
    Fatal error: Call to a member function admin() on null in E:\Php\htdocs\cishop\application\modules\store_items\controllers\Store_items.php on line 23
    A PHP Error was encountered

    Severity: Error

    Message: Call to a member function admin() on null

    Filename: controllers/Store_items.php

    Line Number: 23

    Backtrace:
    Anyone can help me this Error

    chad (Friday 25th of August 2017 at 09:19:27 PM, GMT)
    Good day david. you are one of the best in this Ci tutorials.
    I hope you can create new and more Ci tutorials for this 2017.
    Im your big fan here and I like your videos.

    I dont have much and I try my best to download all your videos from a computer shop, and all worth it even it is hard to connect internet from my place.
    Thank you a lot Sir, and God blessed us always


    fponsar (Monday 21st of August 2017 at 12:05:10 PM, GMT)
    Hi all,
    Yes, great tutorials. Thanks a lot.
    There's one point I had to solve about thumbnails.
    I hadn't php5.6-gd installed, so the code was no giving error but thumbnail wasn't create. I used an if clause, as CI3 tells
    if ( ! $this->image_lib->resize())
    {
    echo $this->image_lib->display_errors();
    }
    But I think is not a good solution in a production web page.
    Any ideas will be welcome.
    Thanks!

    ypjobsinfo (Saturday 19th of August 2017 at 04:05:45 PM, GMT)
    Hi David,
    Great Tutorials

    Thanks

    mrteddy (Thursday 17th of August 2017 at 06:44:50 PM, GMT)
    hi, David

    niravrathod (Thursday 17th of August 2017 at 06:25:29 PM, GMT)
    Hi David

    vijaya610 (Thursday 17th of August 2017 at 10:01:39 AM, GMT)
    i am following these series of online shop, after video 89,when i select a guitar(a product) that doesn't have size or color option, and click " add to basket " an error appears as " Non-numeric variable! " while when the size and color were selected the code does true.please help me to solve the problem.


    antoalexander (Tuesday 15th of August 2017 at 06:44:55 AM, GMT)
    Hi David

    linda (Monday 14th of August 2017 at 03:47:48 PM, GMT)
    Hi, I'm Linda

    fponsar (Monday 14th of August 2017 at 03:02:51 PM, GMT)
    Hi all,
    I'm unable to watch this video. The message is that I should use another browser (firefox is mine) or install flash player. Flash player is a bad issue for me. I work with Ubuntu Xenial.
    Could you please tell me if flash player is required?.
    Thanks!


    faheem123 (Monday 14th of August 2017 at 12:00:39 PM, GMT)
    thankx for your wonderful videos..please provide a source code in the end of every video bcoz we are facing many problems

    edwin.datalogic (Sunday 13th of August 2017 at 06:17:37 PM, GMT)
    Hi David,

    Thank you very much for uploading these tutorial videos and sharing your knowledge to people for free. Its very informative. Instructions are clear and precise. You're the man! One of the best teacher of all time we've found on the internet. How I wish I saw these tutorials earlier.

    Yassine (Saturday 12th of August 2017 at 12:39:16 PM, GMT)
    Hey David,

    I have an error (min 7:42) with the function for manage items!

    "An Error Was Encountered
    Unable to load the requested file: store_items/manage.php"


    Afzal_khn (Wednesday 9th of August 2017 at 06:40:53 PM, GMT)
    Hi David i have followed your SEARCH ENGINE FRIENDLY URLS video and i have coded the function as it is but my _get_item_id_from_item_url() returns a value of 0 for every item. Here is my code:
    function _get_item_id_from_item_url($item_url){
    $query = $this->get_where_custom('item_url', $item_url);
    foreach ($query->result() as $row) {
    $item_id = $row->id;
    }
    if(!isset($item_id)){
    $item_id = 0; // this code cause the issue and set $item_url = 0
    }
    return $item_id;
    }
    and my musical module code is
    function intrument(){
    //figure out item id
    $item_url = $this->uri->segment(3);
    $this->load->module('store_items');
    $item_id = $this->store_items->_get_item_id_from_item_url($item_url);
    echo $item_id; die(); // returns 0
    $this->store_items->view($item_id);
    }
    Plz help me out in this in debugging... where it should return an id according to the store_items table and now it is returning 0 to all sub_cat

    Afzal_khn (Wednesday 9th of August 2017 at 07:33:06 AM, GMT)
    Hey David you're awesome one of the best tutorial i have ever seen in my whole life. Great keep it up :)

    lavdimxhelili (Tuesday 8th of August 2017 at 11:35:17 AM, GMT)
    Thank you David, for all your great tutorials.

    jpalfonso18 (Wednesday 2nd of August 2017 at 02:46:23 AM, GMT)
    amazing

    bouraimad (Tuesday 1st of August 2017 at 04:12:17 PM, GMT)
    hi


    premchandra (Monday 31st of July 2017 at 08:44:08 AM, GMT)
    hi

    sophara_sum (Tuesday 25th of July 2017 at 02:58:25 AM, GMT)
    Hello David.

    How are you doing ?

    I just come through with your tutorials.

    Unlucky, I have an issue with I can figure out what going on.

    Can you please help me with this error?

    Unable to load the requested file: mdl_store_items.php

    Thanks.

    Mahur (Monday 24th of July 2017 at 06:37:39 AM, GMT)
    Hey ! David How are you,
    How can I download shot_this_code.php file.

    TEE (Thursday 13th of July 2017 at 02:48:33 AM, GMT)
    This is what I have and it is not working. It only get the first value which is Fred. Not sure what I am missing?

    function test()
    {

    $cartoon['Fred'] = 50;
    $cartoon['Harry'] = 12;
    $cartoon['Steve'] = 80;
    $cartoon['John'] = 95;
    $cartoon['Tim'] = 30;

    $oldest_user = $this->get_the_oldest($cartoon);
    echo $oldest_user;

    }

    function get_the_oldest($target_array)
    {
    foreach ($target_array as $key => $value) {
    if (!isset($key_with_highest_value)) {
    $key_with_highest_value = $key;
    }elseif ($value > $target_array[$key_with_highest_value]) {
    $key_with_highest_value = $key;
    }
    return $key_with_highest_value;
    }
    }

    manojkr55 (Tuesday 11th of July 2017 at 04:17:38 AM, GMT)
    Enjoying the tutorial. Thanks man! Love your style to speak. recently rapppp song on youtube, really more appreciable.

    bouraimad (Friday 7th of July 2017 at 10:23:15 PM, GMT)
    hello thanks for this awsome tutorial

    poltak72 (Monday 3rd of July 2017 at 02:50:58 AM, GMT)
    Hi David,

    This is an awesome, fantastic tutorial I've ever found in Youtube...You gave a very comprehensive tutorial, cool guidance and direction. I really enjoy and could follow each step you gave....Thanks a bunch man...Might God bless you abundantly

    Thvambe (Friday 30th of June 2017 at 02:44:43 PM, GMT)
    Enjoying the tutorial. Thanks man!

    sfstboy (Thursday 29th of June 2017 at 05:06:21 AM, GMT)
    Hi David, I was watching video 5 and I wasn't sure what was going on with this code in 'admin.php'.

    <?php
    if (isset($view_file)) {
    $this->load->view($view_module.'/'.$view_file);
    }
    ?>

    Why do you have to put '$view_module' to output the user interface (the admin template with manage content)?

    sndp143 (Wednesday 28th of June 2017 at 03:05:55 PM, GMT)
    hiii

    sfstboy (Sunday 25th of June 2017 at 01:24:43 AM, GMT)
    Where can I get "COPYTHIS" folder? I thought the source code was available from here.

    Mahur (Saturday 24th of June 2017 at 01:51:08 PM, GMT)
    my form_validation is not working :
    its show :
    another issue:
    Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) in C:\xampp\htdocs\Shop\shell\system\core\Input.php on line 316

    Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0

    Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0

    Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0

    Mahur (Saturday 24th of June 2017 at 01:47:49 PM, GMT)
    my form_validation is not working :
    its show :
    Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\Shop\shell\system\core\Security.php on line 451
    please help me resolve this issue

    Mahur (Saturday 24th of June 2017 at 11:13:30 AM, GMT)
    Message: Call to undefined method store_items:_insert()

    please help me how to solve it?

    amitsurji (Friday 23rd of June 2017 at 05:02:13 PM, GMT)
    how to create search tab for products..

    without search tab online shop looks empty :{

    amitsurji (Friday 23rd of June 2017 at 05:01:26 PM, GMT)
    how to create search tab for products..

    waqas (Wednesday 21st of June 2017 at 12:52:39 AM, GMT)
    <?php
    $first_bit = $this->uri->segment(1);
    $third_bit = $this->uri->segment(3);

    if($third_bit !=""){
    //we have three segments on the URL, so...
    $start_of_target_url = "../../";
    }
    else{
    //we probably have two segments on the URL, so...

    $start_of_target_url = "../";
    }
    ?>

    [removed][removed]
    [removed][removed]
    [removed]

    $(document).ready(function(){

    $("#sortlist").sortable({
    stop:function(event, ui) {saveChanges();}
    });
    $("#sortlist").disableSelection();

    });

    function saveChanges()
    {
    var $num = $('#sortlist > li').size();
    $dataString = "number=" +$num;
    for($x=1;$x<=$num;$x++)
    {
    var $catid = $('#sortlist li:nth-child('+$x+')').attr('id');
    $dataString = $dataString + "&order"+$x+"="+$catid;

    } $.ajax({
    type: "POST",
    url: "<?php echo $start_of_target_url.$first_bit; ?>/sort",
    data: $dataString

    });

    return false;
    }

    [removed]

    deesunTech (Tuesday 20th of June 2017 at 01:26:58 PM, GMT)
    how can i get the part 5 of this project....i really hope i can get it soon
    deesuntech@gmail.com

    deesunTech (Tuesday 20th of June 2017 at 09:02:59 AM, GMT)
    good video is corrupted can you help us fix it...PART 5: MANAGE ITEMS

    waqas (Tuesday 20th of June 2017 at 01:00:06 AM, GMT)
    here is the code of sort_this_code.php
    <?php
    $first_bit = $this->uri->segment(1);
    $third_bit = $this->uri->segment(3);

    if($third_bit !=""){
    //we have three segments on the URL, so...
    $start_of_target_url = "../../";
    }
    else{
    //we probably have two segments on the URL, so...

    $start_of_target_url = "../";
    }
    ?>

    [removed][removed]
    [removed][removed]
    [removed]

    $(document).ready(function(){

    $("#sortlist").sortable({
    stop:function(event, ui) {saveChanges();}
    });
    $("#sortlist").disableSelection();

    });

    function saveChanges()
    {
    var $num = $('#sortlist > li').size();
    $dataString = "number=" +$num;
    for($x=1;$x<=$num;$x++)
    {
    var $vatid = $('#sortlist li:nth-child('+$x+')').attr('id');
    $dataString = $dataString + "&order"+$x+"="+$catid;

    } $.ajax({
    type: "POST",
    url: "<?php echo $start_of_target_url.$first_bit; ?>/sort",
    data: $dataString

    });

    return false;
    }

    [removed]

    waqas (Tuesday 20th of June 2017 at 12:04:39 AM, GMT)
    Hi,
    Thanks for this really good tutorial !

    edwin.datalogic (Monday 19th of June 2017 at 12:52:51 PM, GMT)
    Very clear and well detailed explanation! Excellent tutorial

    Dingo (Monday 19th of June 2017 at 03:54:05 AM, GMT)
    Just for everyone's information, if you need help, head over to the discussion forums, as that is where we can help you better.

    sanjayaprasanna20@gmail.com (Saturday 17th of June 2017 at 01:48:07 PM, GMT)
    Please tell me a software for table join

    TEE (Friday 16th of June 2017 at 02:29:10 AM, GMT)
    Great tutorial so far!! love it.

    bouraimad (Tuesday 13th of June 2017 at 09:06:05 PM, GMT)
    Thanks for this really good tutorial !
    Where I can find the code of shapter 30?

    khalid4040 (Sunday 11th of June 2017 at 01:05:32 PM, GMT)
    Thanks for this really good tutorial !


    bikash.s.bhandari (Saturday 10th of June 2017 at 03:04:55 PM, GMT)
    i m looking for sort_this_code.php file? can u please provide it to me?? u r doing well..i really love this tutorials series or online shop...learn many thing on this

    bikash.s.bhandari (Saturday 10th of June 2017 at 03:03:01 PM, GMT)
    where is the resources?

    szani (Wednesday 7th of June 2017 at 01:32:05 PM, GMT)
    For those who do not work with array_diff (), use array_diff_key () !?!!

    khannomi (Wednesday 7th of June 2017 at 03:55:38 AM, GMT)
    give me plz this module folder site_security & store_items. I begin online shop with codeigniter. your instructing style is excellent, l liked.
    my email is nuaman.khan961@gmail.com
    thanks

    xttrust (Saturday 3rd of June 2017 at 02:26:36 PM, GMT)
    Here is the missing function i have created so i don't repeat myself over and over again:


    protected function check_id_and_login($update_id = FALSE) {
    if (isset($update_id)) {
    if (!is_numeric($update_id)) {
    redirect('site_security/not_allowed');
    }
    }
    $this->load->module('site_security');
    $this->site_security->_make_sure_is_admin();
    }

    xttrust (Saturday 3rd of June 2017 at 02:25:12 PM, GMT)
    How about we make those two functions like realy auto?
    Here is my code example.

    function fetch_data_from_post() {
    $mysql_query = "SHOW COLUMNS FROM store_accounts";
    $query = $this->_custom_query($mysql_query);
    foreach ($query->result() as $row) {
    $column_name = $row->Field;
    if ($column_name != "id") {
    $data[$column_name] = $this->input->post($column_name, TRUE);
    }
    }
    return $data;
    }

    function fetch_data_from_db($update_id) {

    $this->check_id_and_login($update_id);

    $query = $this->get_where($update_id);
    foreach ($query->result() as $row) {

    $mysql_acc_query = "SHOW COLUMNS FROM store_accounts";
    $query_acc = $this->_custom_query($mysql_acc_query);
    foreach ($query_acc->result() as $acc) {
    $column_name = $acc->Field;
    if ($column_name != "id") {
    $data[$column_name] = $row->$column_name;
    }
    }
    }

    if (!isset($data)) {
    $data = "";
    }
    return $data;
    }

    srikanthjanjirala (Saturday 3rd of June 2017 at 08:56:16 AM, GMT)
    where is part 5 video sir

    it is not display

    kassiyes (Friday 2nd of June 2017 at 03:30:36 PM, GMT)
    where is the code source sir

    javedsai (Friday 2nd of June 2017 at 01:31:54 PM, GMT)
    Hello David,

    Great Video Tutorial. I enjoy your all videos. Keep doing good work. May God Bless You!!

    Cheers!!

    EMV (Friday 2nd of June 2017 at 12:05:43 AM, GMT)
    Hello David

    Your tutorial is one of the best I have ever taken.
    This tutorial reminds of an old saying by Maimonides.

    "Give a man a fish and you feed him for a day; teach a man to fish and you feed him for a lifetime."

    I now know what I am going to do when I reach my retirement age in 7 years. Many thanks!




    hyfauzi (Monday 29th of May 2017 at 04:16:06 PM, GMT)
    Hello David ...
    Maybe BUILD AN ONLINE SHOP WITH CODEIGNITER 3: VIDEO 6 PART 5: MANAGE ITEMS this video is corrupted in the midle... can you fix it ? if already fix please sent to my email address hyfauzi@gmail.com
    Big thanks and this is great video...

    Gopinath93 (Wednesday 24th of May 2017 at 07:51:05 PM, GMT)
    my email address is php.gopinath@gmail.com
    Advance Thanks and great video series i lot of enjoy it (CISHOP)

    Gopinath93 (Wednesday 24th of May 2017 at 07:48:22 PM, GMT)
    Hello David
    I am Required the drag-able and drop-able material for video series 30 in HMVC

    bimalchand43 (Tuesday 23rd of May 2017 at 02:17:03 AM, GMT)
    it's useful and great tutorials.......

    mxparaz (Friday 19th of May 2017 at 06:04:37 AM, GMT)
    PART 43: LET'S BUILD A BLOG!

    The database copy thing we can do directly from phpmyadmin,
    Select Database cishop -> webpages table-> Operations -> Copy table to (database.table)
    just by giving table name under a selected database, we can copy the table structure without or along with data by checking-unchecking checkboxes.. thank you :)

    mxparaz (Thursday 18th of May 2017 at 06:21:48 AM, GMT)
    Thank you very much David.. I have nothing to ask, because all the code is running very smoothly.. You are really inspiring, who made hundreds of videos just to help people.. I'll never forget you in my lifetime..

    Thank you very much..

    malix (Tuesday 16th of May 2017 at 07:11:10 PM, GMT)
    Hi David ,

    You said in the video that you ll tell us why you delete the button delete in action section.
    I think because confirmation process. I like this button and I think there is way to use it in this table by calling directly the deleteconf in part 17

    What do u think?

    Best regards
    Abdelmalek

    bimalchand43 (Sunday 14th of May 2017 at 10:53:37 AM, GMT)
    thanks a lot for this nice series. it's really useful

    lazyme114 (Sunday 14th of May 2017 at 06:26:09 AM, GMT)
    Thanks for these stuffs man. its really good

    Jogesh (Saturday 13th of May 2017 at 07:39:28 AM, GMT)
    I have seen many php videos on youtube they all are kind of good but I like your video most.
    Thanks David. :-)

    sazzeb (Tuesday 9th of May 2017 at 01:05:17 AM, GMT)
    Thanks, You have done marvelously, now i can handle the vibe

    parthasarmah (Wednesday 3rd of May 2017 at 05:09:15 AM, GMT)
    what is the use making controllers in templates modules while you can call directly a view file in another module
    eg.
    $data = '';
    $this->load->module('templates');
    $this->templates->admin($data);// views template in templates module


    kisekun7 (Tuesday 2nd of May 2017 at 10:48:15 PM, GMT)
    Awesome!

    agus.ronaldo.3311501010 (Tuesday 2nd of May 2017 at 03:24:27 AM, GMT)
    awesome tutorial

    kitetio (Sunday 30th of April 2017 at 10:33:58 AM, GMT)
    Thanks, very complete and great tutorial!

    toiglicher (Sunday 30th of April 2017 at 02:57:05 AM, GMT)
    Best tutorial i ever see!

    mtn (Wednesday 26th of April 2017 at 11:24:28 AM, GMT)
    thank you david, we love you.

    agus.ronaldo.3311501010 (Tuesday 25th of April 2017 at 07:51:29 AM, GMT)
    big thanks


    docu (Monday 24th of April 2017 at 07:29:36 AM, GMT)
    Thanks for this really good tutorial !

    sazzeb (Sunday 23rd of April 2017 at 11:25:57 PM, GMT)
    thanks
    this is a really good video
    am learning alot from it

    agus.ronaldo.3311501010 (Sunday 23rd of April 2017 at 07:30:52 AM, GMT)
    awesome

    kingpogi (Saturday 22nd of April 2017 at 01:42:53 AM, GMT)
    Hello everyone. I have been out for a while in the world of HMVC and now catching up with stuffs like these. Its great to get back and push the gears forward again. Keep it up and may you inspire more people like me to pursue HMVC and be cool to share the knowledge what I have learned from David. :)

    sazzeb (Tuesday 18th of April 2017 at 04:46:05 PM, GMT)
    where is the code

    sazzeb (Tuesday 18th of April 2017 at 04:39:37 PM, GMT)
    thanks

    samsons (Friday 14th of April 2017 at 12:25:37 PM, GMT)
    Hi i need this files thnks a lot David

    Dorian (Saturday 8th of April 2017 at 08:05:04 AM, GMT)
    Epic stuff thanks!

    jos (Friday 7th of April 2017 at 12:39:40 AM, GMT)
    You rock!

    allam202272444@gmail.com (Monday 3rd of April 2017 at 01:34:51 PM, GMT)
    thank you


    admo (Saturday 1st of April 2017 at 05:15:29 PM, GMT)
    Great course ! Thanks David!

    Matcharoo (Friday 31st of March 2017 at 05:37:15 PM, GMT)
    Thank u so much!

    samsons (Thursday 30th of March 2017 at 11:18:31 PM, GMT)
    that's very nice

    khaledkamel (Thursday 30th of March 2017 at 08:17:26 PM, GMT)
    that's very nice


    sazzeb (Thursday 30th of March 2017 at 04:16:58 PM, GMT)
    posted something and there is no responds


    sazzeb (Monday 27th of March 2017 at 10:41:24 PM, GMT)

    A PHP Error was encountered

    Severity: Warning

    Message: Division by zero

    Filename: views/admin.php

    Line Number: 379

    Backtrace:

    File: /opt/lampp/htdocs/cshop/application/modules/templates/views/admin.php
    Line: 379
    Function: _error_handler

    File: /opt/lampp/htdocs/cshop/application/third_party/MX/Loader.php
    Line: 357
    Function: include

    File: /opt/lampp/htdocs/cshop/application/third_party/MX/Loader.php
    Line: 300
    Function: _ci_load

    File: /opt/lampp/htdocs/cshop/application/modules/templates/controllers/Templates.php
    Line: 28
    Function: view

    File: /opt/lampp/htdocs/cshop/application/modules/store_items/controllers/Store_items.php
    Line: 18
    Function: admin

    File: /opt/lampp/htdocs/cshop/index.php
    Line: 315
    Function: require_once


    mtn (Monday 27th of March 2017 at 05:51:26 PM, GMT)
    Hello guys,
    I checked everyting and I did it like David did but i am getting Database error,
    Any idea for these errors ?

    A Database Error Occurred

    Error Number: 42000/1064

    You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''=15' at line 1

    SELECT * FROM shop_item WHERE item_title='clock-1' AND item_url='clock-1' and id'=15

    Filename: C:/xampp/htdocs/cishop/system/database/DB_driver.php

    Line Number: 691


    sanjayaprasanna20@gmail.com (Sunday 26th of March 2017 at 07:17:10 AM, GMT)
    I try try to drag and drop option. but it does not remember the position. Please looks my code

    "<?php
    class Store_categories extends MX_Controller
    {

    function __construct() {
    parent::__construct();
    }

    function sort()
    {
    $this->load->module('site_security');
    $this->site_security->_make_sure_is_admin();

    $number = $this->input->post('number', TRUE);
    for ($i=1; $i <= $number; $i++) {
    $update_id = $_POST['order'.$si];
    $data['priority'] = $i;
    $this->_update($update_id, $data);
    }

    }

    function _draw_sortable_list($parent_cat_id)
    {

    $mysql_query = "select * from store_categories where parent_cat_id=$parent_cat_id order by priority";
    $data['query'] = $this->_custom_query($mysql_query);
    $this->load->view('sortable_list', $data);
    }

    function _count_sub_cats($update_id)
    {
    //return the number of sub categories, belongs to this category
    $query = $this->get_where_custom('parent_cat_id', $update_id);
    $num_rows = $query->num_rows();
    return $num_rows;
    }

    function _get_cat_title($update_id)
    {
    $data = $this->fetch_data_from_db($update_id);
    $cat_title = $data['cat_title'];
    return $cat_title;
    }

    function fetch_data_from_post() {
    $data['cat_title'] = $this->input->post('cat_title', TRUE);
    $data['parent_cat_id'] = $this->input->post('parent_cat_id', TRUE);
    return $data;
    }

    function fetch_data_from_db($update_id)
    {

    if (!is_numeric($update_id)) {
    redirect('site_security/not_allowed');
    }

    $query = $this->get_where($update_id);
    foreach($query->result() as $row) {
    $data['cat_title'] = $row->cat_title;
    $data['parent_cat_id'] = $row->parent_cat_id;
    }

    if (!isset($data)) {
    $data = "";
    }

    return $data;
    }

    function _get_dropdown_options($update_id)
    {
    if (!is_numeric($update_id)) {
    $update_id = 0;
    }

    $options[''] = 'Please Select...';

    //buils an array of all the parent categories
    $mysql_query = "select * from store_categories where parent_cat_id=0 and id!=$update_id";
    $query = $this->_custom_query($mysql_query);
    foreach ($query->result() as $row ) {
    $options[$row->id] = $row->cat_title;
    }

    return $options;
    }

    function create() {

    $this->load->library('session');
    $this->load->module('site_security');
    $this->site_security->_make_sure_is_admin();

    $update_id = $this->uri->segment(3);
    $submit = $this->input->post('submit', TRUE);

    if ($submit=="Cancel") {
    redirect('store_categories/manage');
    }

    if ($submit=="Submit") {
    //process the form
    $this->load->library('form_validation');
    $this->form_validation->set_rules('cat_title', 'Category Title', 'required|max_length[240]');

    if ($this->form_validation->run() == TRUE) {
    //get variables
    $data = $this->fetch_data_from_post();



    if (is_numeric($update_id)) {
    //update the category
    $this->_update($update_id, $data);
    $flash_msg = "The category details ware successfully updated.";
    $value = '';
    $this->session->set_flashdata('item',$value);
    redirect('store_categories/create/'.$update_id);
    } else {
    //insert new category
    $this->_insert($data);
    $update_id = $this->get_max(); //Get the ID o the new Category
    $flash_msg = "The category was successfully Added.";
    $value = '';
    $this->session->set_flashdata('item',$value);
    redirect('store_categories/create/'.$update_id);
    }
    }

    }


    if ((is_numeric($update_id)) && ($submit!="Submit")) {
    $data = $this->fetch_data_from_db($update_id);
    } else {
    $data = $this->fetch_data_from_post();
    }

    if (!is_numeric($update_id)) {
    $data['headline'] = "Add New Category";
    } else {
    $data['headline'] = "Update Category";
    }

    $data['options'] = $this->_get_dropdown_options($update_id);
    $data['num_dropdown_options'] = count($data['options']);
    $data['update_id'] = $update_id;
    $data['flash'] = $this->session->flashdata('item');
    // $data['view_module'] = "Store_items";
    $data['view_file'] = "create";
    $this->load->module('templates');
    $this->templates->admin($data);
    }




    function manage() {
    $this->load->module('site_security');
    $this->site_security->_make_sure_is_admin();

    $parent_cat_id = $this->uri->segment(3);
    if (!is_numeric($parent_cat_id)) {
    $parent_cat_id = 0;
    }

    $data['sort_this'] = TRUE;
    $data['parent_cat_id'] = $parent_cat_id;
    $data['flash'] = $this->session->flashdata('item');
    $data['query'] = $this->get_where_custom('parent_cat_id', $parent_cat_id);
    //$data['view_module'] = "Store_items";
    $data['view_file'] = "manage";
    $this->load->module('templates');
    $this->templates->admin($data);
    }


    function get($order_by)
    {
    $this->load->model('mdl_store_categories');
    $query = $this->mdl_store_categories->get($order_by);
    return $query;
    }

    function get_with_limit($limit, $offset, $order_by)
    {
    if ((!is_numeric($limit)) || (!is_numeric($offset))) {
    die('Non-numeric variable!');
    }

    $this->load->model('mdl_store_categories');
    $query = $this->mdl_store_categories->get_with_limit($limit, $offset, $order_by);
    return $query;
    }

    function get_where($id)
    {
    if (!is_numeric($id)) {
    die('Non-numeric variable!');
    }

    $this->load->model('mdl_store_categories');
    $query = $this->mdl_store_categories->get_where($id);
    return $query;
    }

    function get_where_custom($col, $value)
    {
    $this->load->model('mdl_store_categories');
    $query = $this->mdl_store_categories->get_where_custom($col, $value);
    return $query;
    }

    function _insert($data)
    {
    $this->load->model('mdl_store_categories');
    $this->mdl_store_categories->_insert($data);
    }

    function _update($id, $data)
    {
    if (!is_numeric($id)) {
    die('Non-numeric variable!');
    }

    $this->load->model('mdl_store_categories');
    $this->mdl_store_categories->_update($id, $data);
    }

    function _delete($id)
    {
    if (!is_numeric($id)) {
    die('Non-numeric variable!');
    }

    $this->load->model('mdl_store_categories');
    $this->mdl_store_categories->_delete($id);
    }

    function count_where($column, $value)
    {
    $this->load->model('mdl_store_categories');
    $count = $this->mdl_store_categories->count_where($column, $value);
    return $count;
    }

    function get_max()
    {
    $this->load->model('mdl_store_categories');
    $max_id = $this->mdl_store_categories->get_max();
    return $max_id;
    }

    function _custom_query($mysql_query)
    {
    $this->load->model('mdl_store_categories');
    $query = $this->mdl_store_categories->_custom_query($mysql_query);
    return $query;
    }

    }"

    sanjayaprasanna20@gmail.com (Friday 24th of March 2017 at 10:01:28 AM, GMT)
    Please send sort_this_code.php

    lazyme114 (Friday 24th of March 2017 at 07:35:38 AM, GMT)
    thanks a bunch for the sql

    samsons (Tuesday 21st of March 2017 at 09:15:16 AM, GMT)
    Hi i need This material please

    Aaron02 (Wednesday 15th of March 2017 at 06:49:06 PM, GMT)
    Nice

    ind0awetz (Tuesday 14th of March 2017 at 07:01:13 AM, GMT)
    Thanks

    jalal (Monday 19th of September 2016 at 03:36:56 AM, GMT)
    my code
    store_basket.php

    <?php
    class Store_basket extends MX_Controller
    {

    function __construct() {
    parent::__construct();
    }

    function add_to_basket()
    {
    $submit = $this->input->post('submit', TRUE);
    if ($submit=="Submit") {
    // Process the form
    $this->load->library('form_validation');
    $this->form_validation->set_rules('item_colour', 'Item Colour', 'numeric');
    $this->form_validation->set_rules('item_size', 'Item Size', 'numeric');
    $this->form_validation->set_rules('item_qty', 'Item Quantity', 'required|numeric');
    $this->form_validation->set_rules('item_id', 'Item ID', 'required|numeric');

    if ($this->form_validation->run() == true) {
    //cool
    $data = $this->_fetch_the_data();
    $this->_insert($data);
    echo "Well Done.
    ";
    echo $data['item_colour'].'
    ';
    echo $data['item_size'].'
    ';
    echo $data['item_qty'].'
    ';

    } else {
    //uncool
    echo validation_errors();
    }
    }
    }

    function _fetch_the_data()
    {
    //gathers together all of the data, so that we can do a table insert
    $this->load->module('site_security');
    $this->load->module('store_items');

    $item_id = $this->input->post('item_id', TRUE);
    $item_data = $this->store_items->fetch_data_from_db($item_id);
    $item_price = $item_data['item_price'];
    $item_qty = $this->input->post('item_qty', TRUE);
    $item_size = $this->input->post('item_size', TRUE);
    $item_colour = $this->input->post('item_colour', TRUE);
    $shopper_id = $this->site_security->_get_user_id();

    if (!is_numeric($shopper_id)) {
    $shopper_id = 0;
    }

    $data['session_id'] = $this->session->session_id;
    $data['item_title'] = $item_data['item_title'];
    $data['price'] = $item_price*$item_qty;
    $data['tax'] = '0';
    $data['item_id'] = $item_id;
    $data['item_size'] = $this->_get_value('size', $item_size);
    $data['item_qty'] = $item_qty;
    $data['item_colour'] = $this->_get_value('colour', $item_colour);
    $data['date_added'] = time();
    $data['shopper_id'] = $shopper_id;
    $data['ip_address'] = $this->input->ip_address();
    return $data;
    }

    function _get_value($value_type, $update_id)
    {
    //NOTE: value_type can be 'colour' or 'size'
    if ($value_type=='size') {
    $this->load->module('store_item_sizes');
    $query = $this->store_item_sizes->get_where($update_id);
    foreach($query->result() as $row){
    $item_size = $row->size;
    }
    if(!isset($item_size)){
    $item_size = '';
    }
    $value = $item_size;
    } else {
    //fetch the name of the colour
    $this->load->module('store_item_colours');
    $query = $this->store_item_colours->get_where($update_id);
    foreach($query->result() as $row){
    $item_colour = $row->colour;
    }
    if(!isset($item_colour)){
    $item_colour = '';
    }
    $value = $item_colour;
    }
    return $value;
    }

    function test()
    {
    $session_id = $this->session->session_id;
    echo $session_id;
    echo "
    ";
    $this->load->module('site_security');
    $shopper_id = $this->site_security->_get_user_id();
    echo "You are Shopper ID ".$shopper_id;
    }

    function get($order_by)
    {
    $this->load->model('mdl_store_basket');
    $query = $this->mdl_store_basket->get($order_by);
    return $query;
    }

    function get_with_limit($limit, $offset, $order_by)
    {
    if ((!is_numeric($limit)) || (!is_numeric($offset))) {
    die('Non-numeric variable!');
    }

    $this->load->model('mdl_store_basket');
    $query = $this->mdl_store_basket->get_with_limit($limit, $offset, $order_by);
    return $query;
    }

    function get_where($id)
    {
    if (!is_numeric($id)) {
    die('Non-numeric variable!');
    }

    $this->load->model('mdl_store_basket');
    $query = $this->mdl_store_basket->get_where($id);
    return $query;
    }

    function get_where_custom($col, $value)
    {
    $this->load->model('mdl_store_basket');
    $query = $this->mdl_store_basket->get_where_custom($col, $value);
    return $query;
    }

    function _insert($data)
    {
    $this->load->model('mdl_store_basket');
    $this->mdl_store_basket->_insert($data);
    }

    function _update($id, $data)
    {
    if (!is_numeric($id)) {
    die('Non-numeric variable!');
    }

    $this->load->model('mdl_store_basket');
    $this->mdl_store_basket->_update($id, $data);
    }

    function _delete($id)
    {
    if (!is_numeric($id)) {
    die('Non-numeric variable!');
    }

    $this->load->model('mdl_store_basket');
    $this->mdl_store_basket->_delete($id);
    }

    function count_where($column, $value)
    {
    $this->load->model('mdl_store_basket');
    $count = $this->mdl_store_basket->count_where($column, $value);
    return $count;
    }

    function get_max()
    {
    $this->load->model('mdl_store_basket');
    $max_id = $this->mdl_store_basket->get_max();
    return $max_id;
    }

    function _custom_query($mysql_query)
    {
    $this->load->model('mdl_store_basket');
    $query = $this->mdl_store_basket->_custom_query($mysql_query);
    return $query;
    }



    }

    jalal (Monday 19th of September 2016 at 03:34:47 AM, GMT)
    Hello folks
    i am following these series of online shop, after video 89,when i select a guitar(a product) that doesn't have size or color option, and click " add to basket " an error appears as " Non-numeric variable! " while when the size and color were selected the code does true.please help me to solve the problem.
    thank you

    ahmershuja (Sunday 18th of September 2016 at 04:57:56 PM, GMT)
    sorry #90 is missing and it shows #91

    ahmershuja (Sunday 18th of September 2016 at 04:57:00 PM, GMT)
    Hello David;

    I realize the video 90 is missing on Youtube, after #89 it showing #90.
    please check in your first priority.

    thanks in advance, you are the kool
    chuck.
    Ahmer

    Altazar (Saturday 17th of September 2016 at 02:35:41 PM, GMT)
    I solved that problem by deleting $data['picture'] = $this->input->post('picture', TRUE); from function fetch_data_from_post().

    Altazar (Saturday 17th of September 2016 at 11:46:51 AM, GMT)
    I'm at video number 50, just created the blog, but I have the same problem as with store_items. Picture cannot be null. What to do?

    SkYHeX27 (Thursday 15th of September 2016 at 05:09:27 PM, GMT)
    Hello Patel5resh, At some point we wanted to help you out there, but, please show us more detail, or make a new thread on the Discussion forum, and discuss there more about your concern. We will be waiting for you there.
    Bless You.

    patel5resh (Wednesday 14th of September 2016 at 06:31:29 PM, GMT)
    An uncaught Exception was encountered

    Type: Error

    Message: Call to a member function _make_sure_is_admin() on null

    Filename: E:\xampp\htdocs\cishop\application\modules\store_items\controllers\store_items.php

    Line Number: 11

    Backtrace:

    File: E:\xampp\htdocs\cishop\index.php
    Line: 315
    Function: require_once

    SkYHeX27 (Wednesday 14th of September 2016 at 02:38:59 PM, GMT)
    Hello KPI, I know its good to help and it is our pleasure here, that someone would come and ask for help. And this comment is really open for all members of Insiderclub, including you and me.

    But I think that sounds so rude, and when dont like to put down anyone else here. You may have at some point that you loose your way on the videos of David, and would come and post a thread to ask some help.

    You can say that in a better way.

    anyways, reminder all members of Insider club, (including me) I would like to remind you guys that when you are posting a comment, a reply to thread. just make sure 2 things:
    1. If you don't like to be remember your cookies on all the time (Meaning pressing the Remember Me checkbox) or you are not using a Personal Computer, then you have to make sure that you are logged before posting a comment. (because I myself was became an unknown after posting my reply to a thread).
    2. Now if you have a PC or your own laptop, then I would suggest to check the Remember me, for you to be logged always, (Just dont log out, cause that will be a diferent story though)
    --Maybe David will figure that out, but for the mean time remember those things always.

    Now for Mister/Miss Unknown, KPI was correct, maybe you forgot to Auto Increment and make your 'id' as primary key. remember that always.

    --Bless You!

    KPI (Wednesday 14th of September 2016 at 08:43:52 AM, GMT)
    I blind idiot... forgot to set PK for AI

    Unknown (Wednesday 14th of September 2016 at 08:18:08 AM, GMT)
    Hello,
    I triy to get it done as I did the other tutorials as well and it kept me bussy. Now I have this problem, I'm at video 7 and up to the point we start working around with the flash_msg all worked. But now It seems it want to put all on the first DB row.

    I looked the video over and over, probably I looking over it but I couldn't find my mistake sofar.

    Somebody who know where I could make the mistake?

    Ty up front for helping

    A Database Error Occurred

    Error Number: 1062

    Duplicate entry '0' for key 'PRIMARY'

    INSERT INTO `store_items` (`item_title`, `item_price`, `was_price`, `item_description`) VALUES ('Gold Watch', '88', '51', 'sdfsfsf')

    Filename: C:/Developing/XAMPP/htdocs/cishop/system/database/DB_driver.php

    Line Number: 691


    SkYHeX27 (Sunday 11th of September 2016 at 01:22:22 PM, GMT)
    Hi Altazar, I think you have to and also the date_made, on your fetch_data_from_post and fetch_data_from db, remove those two items, because later on the next videos, you'll see that you will have to deal with it with other functions.

    I hope that I helped you there!

    Altazar (Sunday 11th of September 2016 at 01:08:50 PM, GMT)
    I'm at video 23, when I add new user I get an error: "Column 'pword' cannot be null". Should I remove $data['pword'] = $row->pword; from Store_accounts controller?

    wekessah (Friday 9th of September 2016 at 11:24:51 PM, GMT)
    Hi David, I love your tutorials. Thanks a lot!

    Altazar (Friday 9th of September 2016 at 02:04:39 PM, GMT)
    I cannot add an item to the database because the item picture isn't set (Column 'big_pic' cannot be null).

    AA (Thursday 8th of September 2016 at 05:44:40 AM, GMT)
    Awesome tutorials

    theo (Wednesday 7th of September 2016 at 07:46:52 PM, GMT)
    Awesome a always.
    Thank you.

    khajuriaraj (Tuesday 6th of September 2016 at 12:53:06 PM, GMT)
    Video buffering speed is very very slow.


    SkYHeX27 (Tuesday 6th of September 2016 at 04:14:23 AM, GMT)
    Khajuriaraj, try reloading it or find it on youtube on DC.

    khajuriaraj (Monday 5th of September 2016 at 02:40:33 PM, GMT)
    Fifth Video is not working :-(

    khajuriaraj (Monday 5th of September 2016 at 07:16:05 AM, GMT)
    David this video is very useful but I think that instead of doing so many things for the template to work you should have complete folder in the root directory and during replace would have used thid <?php echo base_url(); ?>foldername/ .

    Anyways thanks for the lovely video

    apache1901 (Sunday 4th of September 2016 at 05:47:27 PM, GMT)
    Thanks David for your awesome tutorial/videos

    Greets Stephan

    theo (Sunday 4th of September 2016 at 08:47:57 AM, GMT)
    Simply excellent.


    theo (Sunday 4th of September 2016 at 08:02:23 AM, GMT)
    Hi Altazar,

    Nice to hear, you sorted out the issues. Cool.

    Thank you.

    Regards,
    Theo


    Altazar (Friday 2nd of September 2016 at 01:19:46 PM, GMT)
    Hi Theo, again,
    I solved my problem. :-) I write only the controllers' file names with first big letter. It works so, otherwise I get 404 error. Thank you!

    Best regards,
    Altazar

    ravi2shah (Thursday 1st of September 2016 at 06:19:00 PM, GMT)
    $data['pagination'] = $this->custom_pagination->_genrate_pagination($pagination_data);

    returning null value inside pagination

    [cat_title] => Fenders Gutars
    [cat_url] => Fenders-Gutars
    [parent_cat_id] => 1
    [pagination] =>
    [item_segments] => musical/instruments
    [update_id] => 2
    [view_module] => store_categories
    [view_file] => view


    ravi2shah (Thursday 1st of September 2016 at 06:17:46 PM, GMT)

    $data['pagination'] = $this->custom_pagination->_genrate_pagination($pagination_data);

    [cat_title] => Fenders Gutars
    [cat_url] => Fenders-Gutars
    [parent_cat_id] => 1
    [pagination] =>
    [item_segments] => musical/instruments
    [update_id] => 2
    [view_module] => store_categories
    [view_file] => view


    Altazar (Thursday 1st of September 2016 at 10:54:49 AM, GMT)
    Hi Theo,
    when I use all small letters on modules and controllers, I get 404.

    Regards
    Altazar

    surigupta (Wednesday 31st of August 2016 at 05:54:44 PM, GMT)
    same type of issue in anyone can find in your code.
    if occur and solved so suggest what error in logic

    surigupta (Wednesday 31st of August 2016 at 05:44:07 PM, GMT)
    When login with cookies as customer account the private area compsose message and view message redirect to login page ..... when i am checking cookies what return its return 2 time user id , query fire, get cookie name all of that execute double time what i do for that...

    solve this issue if you to have same problem....

    tan7013 (Wednesday 31st of August 2016 at 01:22:55 AM, GMT)
    Best codeigniter web tutorials I have seen so far. You make coding so simple and easy to learn. Keep giving us more stuff!

    theo (Tuesday 30th of August 2016 at 04:12:51 PM, GMT)
    Hi Altazar,
    Just use all small letters when naming the folders and files (e.g store_items or store_items.php) and capitalize the first letter when declaring the class (e.g class Store_items extends MX_Controller).

    Regards,
    Theo

    Altazar (Monday 29th of August 2016 at 01:18:15 PM, GMT)
    I watched your 5th video here at InsiderClub.org.

    I'm using first capital letter for modules (it doesn't work with small letters) and I get this error: Message: Call to a member function admin() on null Filename:
    /home/.../webapps/dc_shop/application/modules/Store_items/controllers/Store_items.php Line Number: 39

    That's it:
    function manage()
    {
    //$this->load->module('site_security');
    //$this->site_security->_make_sure_is_admin();

    $data['view_module'] = "Store_items";
    $data['view_file'] = "manage";
    $this->load->module('Templates');
    $this->Templates->admin($data); /* line 39 */
    }

    theo (Saturday 27th of August 2016 at 08:40:21 AM, GMT)
    Thank you for your valuable time in creating this video series.

    jalal (Saturday 27th of August 2016 at 05:24:55 AM, GMT)
    Thank you David, everything works good.

    cjgilr (Friday 26th of August 2016 at 05:11:58 AM, GMT)
    I been following your videos and they are interesting, but the video 76 has been blocked. Due to a problem with Ole Media Management...

    rossfion (Friday 26th of August 2016 at 01:15:04 AM, GMT)
    That's cool, David. Get your rest and we'll see you on Monday!

    cbabaranjr (Thursday 25th of August 2016 at 08:09:06 AM, GMT)
    Hello fellow insider-mates! can you recommend me a free software like Navicat? Thank you very much! :)

    cjgilr (Tuesday 23rd of August 2016 at 11:54:24 PM, GMT)
    David awesome tuturial... Will you be including security over the menu options? Which user will access what?

    ahmershuja (Tuesday 23rd of August 2016 at 07:41:39 PM, GMT)
    David I did message in your form, but didn't find the link, please guide me where I can download the sql data for enquiries messages

    thanks

    ahmershuja (Tuesday 23rd of August 2016 at 07:32:18 PM, GMT)
    Thanks david for your awesome tuturial

    cbabaranjr (Tuesday 23rd of August 2016 at 05:36:11 PM, GMT)
    Thank you very much! :)

    johnnydriesen (Sunday 21st of August 2016 at 06:58:09 PM, GMT)
    Vid 64 Consolidation... THANKS David... Super explanation.
    A video which everybody should see...

    Grtz,
    Johnny

    Faadi (Sunday 21st of August 2016 at 06:06:19 AM, GMT)
    sir jquery theme roller is not working its not downloading.when hitting the download button its just refresh the page with out its css . sir plz help

    johannesd (Friday 19th of August 2016 at 12:44:25 PM, GMT)
    Hi David and Others :-)

    The themeroller jquery download isn't working. The problem is when hitting the downloadbutton, it does just refresh the page without css. Not downloading a zip file like is suppoost to do. David can you make the jquery mobile template availlable for download?

    Cheers

    mwebdesign (Thursday 18th of August 2016 at 11:26:56 PM, GMT)
    Hi David, you know what I think would be super cool? It's totally not important or anything like that. I just keep looking for a simple link back to the list of shop videos. You know...after I watch one video, sometimes I want to jump back to the list of videos and start somewhere new. If there were an easy way for you to incorporate that...well, I'd certainly be one user who would use the feature all that time! ;D If not, I suppose it's not too much trouble for me to just go to the dropdown menu, or click the back button however many times... :) Thanks for all the teachings!!

    theo (Thursday 18th of August 2016 at 09:32:12 PM, GMT)
    it should be in between the script tags, your xss clean removed both the tags.

    theo (Thursday 18th of August 2016 at 09:29:44 PM, GMT)
    Hi David, if you haven't figured out how to increase/decrease the size of the editor, here is the code:
    paste it in the end of the body section, templates/view/admin.php file.

    [removed]
    $(document).ready(function () {
    $("#cleditor").cleditor({ width:1000, height:250});
    [removed]

    Cheers.

    Unknown (Thursday 18th of August 2016 at 09:28:40 PM, GMT)
    Hi David, if you haven't figured out how to increase/decrease the size of the editor, here is the code:
    paste it in the end of the body section, templates/view/admin.php file.

    [removed]
    $(document).ready(function () {
    $("#cleditor").cleditor({ width:1000, height:250});
    [removed]

    Cheers.

    theo (Wednesday 17th of August 2016 at 10:19:27 PM, GMT)
    cool stuff. Thank you David.

    theo (Monday 15th of August 2016 at 06:43:41 PM, GMT)
    Nice stuff, autogen function, will really save time and typos. Thank you.

    ahmershuja (Monday 15th of August 2016 at 06:30:00 PM, GMT)
    Hello David,

    there is some kind of glitch in cookie setup, I followed exact your tutorial,
    but I'm getting this error please check...

    A PHP Error was encountered

    Severity: Notice

    Message: Undefined variable: cookie_name

    Filename: controllers/site_cookies.php

    Line Number: 87

    Backtrace:

    File: C:\xampp\htdocs\ci_shop\application\modules\site_cookies\controllers\site_cookies.php
    Line: 87
    Function: _error_handler

    File: C:\xampp\htdocs\ci_shop\application\modules\site_cookies\controllers\site_cookies.php
    Line: 31
    Function: _destroy_cookie

    File: C:\xampp\htdocs\ci_shop\index.php
    Line: 315
    Function: require_once

    A PHP Error was encountered

    Severity: Notice

    Message: Undefined variable: cookie_name

    Filename: controllers/site_cookies.php

    Line Number: 88

    Backtrace:

    File: C:\xampp\htdocs\ci_shop\application\modules\site_cookies\controllers\site_cookies.php
    Line: 88
    Function: _error_handler

    File: C:\xampp\htdocs\ci_shop\application\modules\site_cookies\controllers\site_cookies.php
    Line: 31
    Function: _destroy_cookie

    File: C:\xampp\htdocs\ci_shop\index.php
    Line: 315
    Function: require_once

    A PHP Error was encountered

    Severity: Notice

    Message: Undefined index:

    Filename: controllers/site_cookies.php

    Line Number: 88

    Backtrace:

    File: C:\xampp\htdocs\ci_shop\application\modules\site_cookies\controllers\site_cookies.php
    Line: 88
    Function: _error_handler

    File: C:\xampp\htdocs\ci_shop\application\modules\site_cookies\controllers\site_cookies.php
    Line: 31
    Function: _destroy_cookie

    File: C:\xampp\htdocs\ci_shop\index.php
    Line: 315
    Function: require_once

    The cookie has been destroyed
    Attempt to get the Cookie
    Set The Cookie

    theo (Saturday 13th of August 2016 at 09:53:46 AM, GMT)
    simply awesome. Thank you


    Sven (Saturday 13th of August 2016 at 05:57:06 AM, GMT)
    @shai and Avicrest,

    please post in the Forum, there is a better place to help you

    shai (Saturday 13th of August 2016 at 01:21:15 AM, GMT)
    Please upload source code store_categories.php because dragging and dropping in my program not work but nothing error in google chrome.

    my source code in store_categories.php

    function sort()
    {
    $this->load->module('site_security');
    $this->site_security->_make_sure_is_admin();

    $number = $this->input->post('number', TRUE);
    for ($i=1; $i <= $number; $i++) {
    $update_id = $_POST['order'.$i];
    $data['priority'] = $i;
    $this->_update($update_id, $data);
    }
    }

    function _draw_sortable_list($parent_cat_id)
    {
    $mysql_query = "select * from Store_categories where parent_cat_id=$parent_cat_id order by priority";
    $data['query'] = $this->_custom_query($mysql_query);
    $this->load->view('sortable_list', $data);
    }

    shai (Friday 12th of August 2016 at 06:20:34 PM, GMT)
    please upload source code sort_this_code.php and sortable_list.php, sortlist in my program not work

    theo (Thursday 11th of August 2016 at 08:18:24 PM, GMT)
    Thank you David for this great tutorial.

    theo (Thursday 11th of August 2016 at 07:13:40 PM, GMT)
    nice

    Sven (Thursday 11th of August 2016 at 09:14:48 AM, GMT)
    you have a wrong argument in fetch_data_from_db i think

    here is my code

    function fetch_data_from_db($update_id){
    if (!is_numeric($update_id)) {
    redirect('site_security/not_allowed');
    }

    $query = $this->get_where($update_id);
    foreach ($query->result() as $row) {
    // item_title item_url item_price item_description big_pic small_pic was_price
    $data['item_title'] = $row->item_title;
    $data['item_url'] = $row->item_url;
    $data['item_price'] = $row->item_price;
    $data['item_description'] = $row->item_description;
    $data['big_pic'] = $row->big_pic;
    $data['small_pic'] = $row->small_pic;
    $data['was_price'] = $row->was_price;
    $data['status'] = $row->status;
    }

    if (!isset($data)) {
    $data = "";
    }

    return $data;
    }

    nvdtien13072 (Wednesday 10th of August 2016 at 05:15:46 PM, GMT)
    please help me, my program any problem in video 06
    Severity: Warning

    Message: Invalid argument supplied for foreach()

    Filename: MX/Loader.php

    Line Number: 258

    Backtrace:

    File: C:\xampp\htdocs\cishop\application\third_party\MX\Loader.php
    Line: 258
    Function: _error_handler

    File: C:\xampp\htdocs\cishop\application\modules\store_items\controllers\Store_items.php
    Line: 24
    Function: modules

    File: C:\xampp\htdocs\cishop\index.php
    Line: 315
    Function: require_once

    theo (Wednesday 10th of August 2016 at 07:45:51 AM, GMT)
    Cool Tuts. Thank you David.

    Sven (Tuesday 9th of August 2016 at 10:27:41 AM, GMT)
    this proble is fixed in video 17

    shai (Monday 8th of August 2016 at 05:05:28 PM, GMT)
    @sven
    thanks u very much it is work

    Sven (Monday 8th of August 2016 at 10:58:51 AM, GMT)
    okay it was just my mistake :D

    Sven (Monday 8th of August 2016 at 10:54:42 AM, GMT)
    okay and the last what is missing is the $data variable to unlink the images

    change
    $this->fetch_data_from_db($update_id);
    to
    $data = $this->fetch_data_from_db($update_id);
    in store_items.php in function delete_image

    Sven (Monday 8th of August 2016 at 09:57:59 AM, GMT)
    here is my complete code from Video 15 of the create.php

    from Line 110 to 130

    <?php
    if(isset($big_pic) && ($big_pic!=null) ){
    ?>



    Bild Vorschau










    <!--/span-->

    <!--/row-->
    <?php } ?>

    Sven (Monday 8th of August 2016 at 09:51:19 AM, GMT)
    The variable ist noch declared in in store_items/create you must check if this declared
    you must take a if statment like this

    <?php
    if(isset($big_pic) && ($big_pic!=null) ){
    ?>
    your Box Code

    <?php } ?>

    Unknown (Monday 8th of August 2016 at 04:48:05 AM, GMT)
    @sven how to declare variable in video 15.?

    Unknown (Sunday 7th of August 2016 at 11:10:30 AM, GMT)
    Very informative.

    Sven (Sunday 7th of August 2016 at 06:54:20 AM, GMT)
    @shai

    one comment is enough... your error is defined, you have a undefined Variable big_pic in file store_items\views\create.php on line 115

    this means you call a variable that is not declared

    shai (Saturday 6th of August 2016 at 11:21:13 AM, GMT)
    please help me, my program any problem in video 15


    A PHP Error was encountered

    Severity: Notice

    Message: Undefined variable: big_pic

    Filename: views/create.php

    Line Number: 115

    Backtrace:

    File: C:\xampp\htdocs\cishop\application\modules\store_items\views\create.php
    Line: 115
    Function: _error_handler

    File: C:\xampp\htdocs\cishop\application\third_party\MX\Loader.php
    Line: 357
    Function: include

    File: C:\xampp\htdocs\cishop\application\third_party\MX\Loader.php
    Line: 300
    Function: _ci_load

    File: C:\xampp\htdocs\cishop\application\modules\templates\views\admin.php
    Line: 377
    Function: view

    File: C:\xampp\htdocs\cishop\application\third_party\MX\Loader.php
    Line: 357
    Function: include

    File: C:\xampp\htdocs\cishop\application\third_party\MX\Loader.php
    Line: 300
    Function: _ci_load

    File: C:\xampp\htdocs\cishop\application\modules\templates\controllers\templates.php
    Line: 37
    Function: view

    File: C:\xampp\htdocs\cishop\application\modules\store_items\controllers\store_items.php
    Line: 213
    Function: admin

    File: C:\xampp\htdocs\cishop\index.php
    Line: 315
    Function: require_once

    ">
    Admin templates
    Bootstrap themes


    shai (Saturday 6th of August 2016 at 10:52:49 AM, GMT)
    help me any problem in video 15

    A PHP Error was encountered

    Severity: Notice

    Message: Undefined variable: small_pic

    Filename: views/create.php

    Line Number: 124

    Backtrace:

    File: C:\xampp\htdocs\cishop\application\modules\store_items\views\create.php
    Line: 124
    Function: _error_handler

    File: C:\xampp\htdocs\cishop\application\third_party\MX\Loader.php
    Line: 357
    Function: include

    File: C:\xampp\htdocs\cishop\application\third_party\MX\Loader.php
    Line: 300
    Function: _ci_load

    File: C:\xampp\htdocs\cishop\application\modules\templates\views\admin.php
    Line: 377
    Function: view

    File: C:\xampp\htdocs\cishop\application\third_party\MX\Loader.php
    Line: 357
    Function: include

    File: C:\xampp\htdocs\cishop\application\third_party\MX\Loader.php
    Line: 300
    Function: _ci_load

    File: C:\xampp\htdocs\cishop\application\modules\templates\controllers\templates.php
    Line: 37
    Function: view

    File: C:\xampp\htdocs\cishop\application\modules\store_items\controllers\store_items.php
    Line: 213
    Function: admin

    File: C:\xampp\htdocs\cishop\index.php
    Line: 315
    Function: require_once

    ">

    Avicrest (Friday 5th of August 2016 at 08:57:17 PM, GMT)
    Help!!!!


    <?php
    $this->load->module('timedate');
    foreach($query->result() as $row)
    {
    $article_preview = word_limiter($row->page_content, 25);
    $picture = $row->picture;
    $thumbnail_name = str_replace('.', '_thumb.', $picture);
    $thumbnail_path = base_url().'blog_pics/.'.$thumbnail_name;
    ?>






    <?= $row->page_title?>


    <?= $article_preview?>




    <?php
    }
    ?>


    in this code after I use
    <?php
    $this->load->module('timedate');
    foreach($query->result() as $row)
    {
    $article_preview = word_limiter($row->page_content, 25);
    $picture = $row->picture;
    $thumbnail_name = str_replace('.', '_thumb.', $picture);
    $thumbnail_path = base_url().'blog_pics/.'.$thumbnail_name;
    ?>

    the img part


    becomes irresponsive after <?=
    when I close the
    curly bracket
    <?php
    $this->load->module('timedate');
    foreach($query->result() as $row)
    {
    $article_preview = word_limiter($row->page_content, 25);
    $picture = $row->picture;
    $thumbnail_name = str_replace('.', '_thumb.', $picture);
    $thumbnail_path = base_url().'blog_pics/.'.$thumbnail_name;

    }?>

    the img is responding . Don't know how to do this help

    ahmershuja (Friday 5th of August 2016 at 02:57:06 PM, GMT)
    Hello David,

    I learned a lot from your tutorial, I had some issues i mentioned on youtube, but didn't get response, but I figure it out myself and good to go, finally I notice it this is the place for communicate.

    awesome tutorials, keep it up. :D

    Avicrest (Friday 5th of August 2016 at 12:22:38 PM, GMT)
    You're Beast , David. You're helping us out a lot :D

    ADEX (Friday 5th of August 2016 at 09:29:01 AM, GMT)
    Hello David, I'm really enjoying your videos, I pray that the grace of God will continually help you in all your endeavors in JESUS name, Amen

    rossfion (Thursday 4th of August 2016 at 01:09:09 AM, GMT)
    Automatic code generation - brilliant tip!

    Avicrest (Sunday 31st of July 2016 at 09:41:54 PM, GMT)
    LOL.. solved it myself. I forgot to save the manage.php.
    Feel kinda dumb now.

    Avicrest (Sunday 31st of July 2016 at 09:29:41 PM, GMT)
    Even When I use
    $data['view_module'] = "store_items";
    $data['view_file'] ="manage";
    $this->load->module('templates');
    $this->templates->admin($data);

    I keep getting

    An Error Was Encountered

    Unable to load the requested file: store_items/manage.php

    please help


    johnnydriesen (Saturday 30th of July 2016 at 03:28:15 PM, GMT)
    Hi David,

    Really interesting info you're mentioning in Vid 25 around 00:01:00.
    Folks... That's a series worth watching !... (named "Secure PHP Password Hashing")

    Thanks !
    Johnny


    johnnydriesen (Friday 29th of July 2016 at 04:49:56 PM, GMT)
    @Adamadamschumaker ... in case you've probs / questions about this ... just post it in the COPY_THIS thread. I will reply asap.

    Grtz,
    Johnny


    mwebdesign (Wednesday 27th of July 2016 at 08:34:32 PM, GMT)
    Yup, he did - See Johnny's solution in the Discussion Forums/The Web Development Forum and the thread is called something like COPY_THIS.:Keep your code DRY

    Davcon (Wednesday 27th of July 2016 at 08:16:59 AM, GMT)
    Adam: probably. I think Johnny figured something out along those lines.

    adamschumaker (Wednesday 27th of July 2016 at 01:04:30 AM, GMT)
    David,

    Is there a way to take the perfect controller and the perfect model, and turn them into a MY_model and MY_controller in the core? Would that keep us from repeating the same code in each module?

    -Adam

    Davcon (Monday 25th of July 2016 at 07:18:19 PM, GMT)
    Goodness gracious! It's a comments swarm. Thanks and I hope everybody is cool.

    johnnydriesen (Monday 25th of July 2016 at 06:50:09 PM, GMT)
    Sorry David,
    Forget about my comment below...
    I see you already found out about the 'alert' stuff.
    Appologies :)

    Grtz,
    Johnny

    johnnydriesen (Monday 25th of July 2016 at 06:32:14 PM, GMT)
    David,

    Beginning Vid 13, you had an issue with the "red" paragraph ...
    Why don't you use the "features" from your bootstrap template (you used JANUX one, if I remember well...) to display the errors in a nice way ? That's why templates are invented :)

    Great tutorial mate !!
    Best teacher ever.

    Grtz,
    Johnny

    adamschumaker (Monday 25th of July 2016 at 05:21:21 AM, GMT)
    Ok... finally figured this out.

    I put
    $this->template->admin('data');
    and it was supposed to be
    $this->template->admin($data);

    Amazing how a small syntax error can mess things up so much.

    Unknown (Sunday 24th of July 2016 at 09:04:09 PM, GMT)
    oh goodness...I finally got it. I had at one point changed $submit = $this->input->post('submit', TRUE); to $submit = $this->input->post('Submit', TRUE);....oy vay

    mwebdesign (Sunday 24th of July 2016 at 08:44:16 PM, GMT)
    me again...I figured out that I had missed giving each of my form elements a "name". Silly me. I'm still not getting the echoed "well done"....but it is at least now posting the data that I type in....

    mwebdesign (Sunday 24th of July 2016 at 08:26:38 PM, GMT)
    I am having a terrible time with the authorization on Insider Club! The comment below from "Unknown" is from me (melissa, aka: mwebdesign)....but I keep getting signed out?

    Unknown (Sunday 24th of July 2016 at 08:24:15 PM, GMT)
    Every time I submit the form, it's emptying out the form fields and then giving me (of course, because they're empty) all of my form validation errors....Any quick ideas on what I might have missed? If there's any specific pieces of code you need to see, please let me know and I can post them. I've been using this tutorial to build a form that has a lot more fields so I don't want to overburden the thread without need by posting ALL of my code!!

    adamschumaker (Sunday 24th of July 2016 at 06:38:46 PM, GMT)
    David,

    I keep getting this error, and I can't figure this out. Hours of trying and Googling.

    Error:
    Severity: Notice

    Message: Undefined variable: view_file

    Filename: views/admin.php

    Line Number: 375

    Backtrace:

    File: C:\wamp64\www\hmvc\application\modules\template\views\admin.php
    Line: 375
    Function: _error_handler

    File: C:\wamp64\www\hmvc\application\third_party\MX\Loader.php
    Line: 357
    Function: include

    File: C:\wamp64\www\hmvc\application\third_party\MX\Loader.php
    Line: 300
    Function: _ci_load

    File: C:\wamp64\www\hmvc\application\modules\template\controllers\template.php
    Line: 35
    Function: view

    File: C:\wamp64\www\hmvc\application\modules\store_items\controllers\Store_items.php
    Line: 19
    Function: admin

    File: C:\wamp64\www\hmvc\index.php
    Line: 315
    Function: require_once

    Controller Code:
    function manage()
    {
    $this->load->module('site_security');
    $this->site_security->_make_sure_is_admin();

    $data['view_module'] = "store_items";
    $data['view_file'] = "manage";
    $this->load->module('template');
    $this->template->admin('data');

    }

    View Code:
    <?php $this->load->view($view_module.'/'.$view_file); ?>

    Please help.




    shai (Sunday 24th of July 2016 at 04:40:50 PM, GMT)
    why i'm not run any wrong this is in first setting templates

    404 Page Not Found

    The page you requested was not found.

    Davcon (Sunday 24th of July 2016 at 10:24:56 AM, GMT)
    Thanks for the feedback. I've fixed video 10. Part 5 is supposed to be different over here. Perhaps I never explained the vibe too well.

    I appreciate the CSS tips and other technical feedback. Unfortunately, I don't think I'll ever be much of a designer or CSS guru.

    Cheers!

    johnnydriesen (Friday 22nd of July 2016 at 07:49:53 PM, GMT)
    David,

    FYI.
    Vid10 is NOT available via the InsiderClub site (but it IS pn Youtube, so maybe a wrong Vid ID ?)

    Grtz,
    Johnny

    rossfion (Friday 22nd of July 2016 at 04:47:20 PM, GMT)
    Hi David, thanks for giving us this new series. I'd like to share a tip on dealing with Bootstrap navigation bars. In this case we are using the jumbotron template. Just go to to the jumbotron.css file, locate the 'body' code block and change the padding-top from 50px to 70px. 70px is the standard as recommended by the folks from Bootstrap. Peace!

    Fionn

    johnnydriesen (Thursday 21st of July 2016 at 09:38:57 AM, GMT)
    David,
    For your information ...
    Part 5 on Youtube is different from Part 5 here in the Insider Club
    (in other words... if you're following evrt on YT, you're missing this vid...)

    ihab.hamad (Wednesday 20th of July 2016 at 12:28:25 PM, GMT)
    hi david you can use this for view file
    if (!isset($view_file)) {
    $view_file = "";
    }


    if (!isset($module)) {
    $module = $this->uri->segment(1);
    }


    if (($module!="") && ($view_file!="")) {
    $path = $module."/".$view_file;
    $this->load->view($path);
    }

    Unknown (Friday 8th of July 2016 at 11:16:05 AM, GMT)
    if you like i can jump on a bus from Dunfermline and finish these videos for you i think i can follow your coding style sorry i just don't like waiting :)),

    ali_abdelrhim (Sunday 3rd of July 2016 at 04:16:32 PM, GMT)
    Hi David;

    Which one is better, calling security function "make_sure_is_admim" inside each function in the calls or calling it from the contractor of the class?
    Calling from contractor of the class will be less secure than calling from each function?

    I don't know, I am just asking.

    Thanks.

    shmo4448 (Sunday 26th of June 2016 at 08:36:18 AM, GMT)
    great vid thanks, I want more :)

    © Copyright 2013 - 2018 David Connelly | www.davidconnelly.com | www.dcradionetwork.com