[eluser]davy_yg[/eluser]
Hello all,
I wonder how to program CI CMS for picture gallery, any suggestion ?
[eluser]noideawhattotypehere[/eluser]
Your question is kinda unclear, what kind of gallery is it? What for? Where will you use it?
I store all my pictures in folder ./gallery/, while uploading i create a 100x100 thumb and add a db record. My gallery db table is: id - filename - thumbname - category. Hope this will be helpful.
[eluser]davy_yg[/eluser]
I basically do not know how to write the codes. Especially how you upload picture from computer and store it to certain folder. Also, how to write the codes to make them appears on the sites with CodeIgniter.
[eluser]davy_yg[/eluser]
I know basic php. I just installed netbeans and still trying to figure out how to use it. I currently use Notepad++
I try - debug - debug file - run arguments(empty) -> (x) Php interpreter must be selected. How to select Php interpreter ?
I receive this error messages:
----------------------------------------------
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: pictures
Filename: controllers/upload.php
Line Number: 42
-------------------------------------------------
A PHP Error was encountered
Severity: Warning
Message: Invalid argument supplied for foreach()
Filename: controllers/upload.php
Line Number: 42
-------------------------------------------------
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: html
Filename: core/Loader.php(829) : eval()'d code
Line Number: 2
[eluser]noideawhattotypehere[/eluser]
So you know basic php but you cant read error messages?
Debug? Seriously... Press F6 or Run > Run project, and you are good to go.
$this->load->view('gallery'); to $this->load->view('gallery', $data);
Find out the rest on your own, you have given an error message + line which is causing it.