Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Sort order of record items
Post: RE: Sort order of record items

InsiteFX Wrote: (06-16-2016, 10:52 AM) -- see order_by -- No, I'm afraid you didn't understand, my problem is not on fetching the items from the database (I 'm already using order_by when quering i...
6,787 Views
3 Replies
06-16-2016, 11:01 AM
Lykos22
    Thread: Sort order of record items
Post: Sort order of record items

I'm having a db table with this structure Code: -- table: Items id category_id title sortorder -- In my view I'm showing a list of all items like this: PHP Code: -- foreach ($items as ...
6,787 Views
3 Replies
06-16-2016, 06:58 AM
Lykos22
    Thread: Set currency based on IP address
Post: Set currency based on IP address

Hi, I need some help please. This is my code in MY_Controller PHP Code: -- // set default currency code if not set already in index() if (!$this->session->userdata('currency_code')) { $this->...
2,336 Views
1 Replies
11-16-2015, 06:11 AM
Lykos22
    Thread: Show name “corrupted” when validation fails
Post: Show name “corrupted” when validation fails

I'm having this name field PHP Code: --
2,331 Views
2 Replies
11-09-2015, 05:25 AM
Lykos22
    Thread: Change currency from dropdown menu
Post: Change currency from dropdown menu

I'd like some help please. I'm having a dropdown menu on the header of every page where I can change the currency set. PHP Code: -- >$ USD >€ EUR >£ GBP -- I have also set a function ...
3,683 Views
1 Replies
10-30-2015, 02:29 AM
Lykos22
    Thread: HMVC - set default route
Post: RE: HMVC - set default route

davicotico Wrote: (10-26-2015, 04:43 AM) -- In that source structure, you have a folder "posts" (plural), and a controller "Post.php" (singular) -- You mean it should be set as PHP Code: -- ...
4,513 Views
3 Replies
10-26-2015, 05:10 AM
Lykos22
    Thread: HMVC - set default route
Post: HMVC - set default route

Hi, I'd like some help please. I'm using CI v.3.0.2 and I have set up HMVC modularity from wiredesignz, so my folder structure look like this Code: -- - application ---- modules -------- posts ----...
4,513 Views
3 Replies
10-26-2015, 04:37 AM
Lykos22
    Thread: HMVC Modularity - subdirectories in modules
Post: RE: HMVC Modularity - subdirectories in modules

InsiteFX Wrote: (10-21-2015, 02:30 PM) -- You can have a libraries folder so put them in a class library. -- No its not a library this. There are some controller methods that I'd like to keep the se...
4,384 Views
2 Replies
10-21-2015, 02:35 PM
Lykos22
    Thread: HMVC Modularity - subdirectories in modules
Post: HMVC Modularity - subdirectories in modules

I'd like some help please. I'm using HMVC modularity from wiredesignz and my folder structure looks like this Code: -- - application ---- modules ------- test ---------- controllers ---------------...
4,384 Views
2 Replies
10-21-2015, 02:12 PM
Lykos22
    Thread: javascript files with php code
Post: RE: javascript files with php code

So basically, you do something like this: Code: -- var url = "admin/products"; // etc etc // and then in your script in file.js you can access the url url : url, et...
4,540 Views
4 Replies
10-15-2015, 08:27 AM
Lykos22
    Thread: form validation - show upload errors
Post: RE: form validation - show upload errors

@mwhitney Thank you for your help! I tried it and its working! I didn't think of using callbacks, actually I started doing this using sessions, so this saved me some time!
1,885 Views
2 Replies
10-15-2015, 01:26 AM
Lykos22
    Thread: form validation - show upload errors
Post: form validation - show upload errors

I'd like some help please. I', having a contact form in which I can also upload files. I have set up the form validation and the uploading configuration according to the documentation, however I ha...
1,885 Views
2 Replies
10-14-2015, 08:29 AM
Lykos22
    Thread: Add dummy content when running migrations
Post: RE: Add dummy content when running migrations

orionstar Wrote: (10-05-2015, 07:09 AM) -- You can access the $this->db object so you can insert anything what you want with $this->db->insert() or $this->db->update(). ;) About the timestamp: you...
3,849 Views
3 Replies
10-05-2015, 07:30 AM
Lykos22
    Thread: Add dummy content when running migrations
Post: Add dummy content when running migrations

Hi all, I'd like some feedback please, if possible. I'm using CI v3 and I was wondering whether there's a way I could enter some dummy content on the tables I generate running through Migrations. F...
3,849 Views
3 Replies
10-05-2015, 02:11 AM
Lykos22
    Thread: javascript files with php code
Post: javascript files with php code

Hi guys, I'd like to ask for some generic information, if possible. I usually try to put all my javascript stuff in a single file, and not keep them inside tags in my views, so it would be a litt...
4,540 Views
4 Replies
10-02-2015, 09:02 AM
Lykos22
    Thread: Message: mkdir(): Permission denied
Post: RE: Message: mkdir(): Permission denied

Code: -- lsof -i:80 -- Code: -- COMMAND    PID      USER   FD   TYPE DEVICE SIZE/OFF NODE NAME firefox   2353 lykos   90u  IPv4 174232      0t0  TCP 192.168.0.16:41608->104.27.152.103:htt...
36,465 Views
20 Replies
09-30-2015, 04:01 PM
Lykos22
    Thread: Message: mkdir(): Permission denied
Post: RE: Message: mkdir(): Permission denied

jLinux Wrote: (09-30-2015, 03:49 PM) -- P.S. You seem surprised by the fact that when YOU run some commands (chmod) via the command line, it works, as opposed to when you run the commands via PHP...
36,465 Views
20 Replies
09-30-2015, 03:56 PM
Lykos22
    Thread: Message: mkdir(): Permission denied
Post: RE: Message: mkdir(): Permission denied

jLinux Wrote: (09-30-2015, 03:43 PM) -- What does $_ENV["USER"]; say? Did some research, are you on a shared server? I doubt it, or else you couldn't run the commands you have ran, unless you are ...
36,465 Views
20 Replies
09-30-2015, 03:48 PM
Lykos22
    Thread: Message: mkdir(): Permission denied
Post: RE: Message: mkdir(): Permission denied

I have to start the procedure from the begining. When the page loads for first time in my Post_model I have this script PHP Code: -- // set up the folder for storing images and thumbnails $dir = ...
36,465 Views
20 Replies
09-30-2015, 03:31 PM
Lykos22
    Thread: Message: mkdir(): Permission denied
Post: RE: Message: mkdir(): Permission denied

Ok, I did PHP Code: -- echo exec('whoami'); -- right bellow my script and I got "daemon", but if I do ls -lah on my models folder the Post_model.php has as user my usrname, i.e. Lykos (!!!)
36,465 Views
20 Replies
09-30-2015, 11:43 AM
Lykos22

Theme © iAndrew 2016 - Forum software by © MyBB