Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Using the built-in pagination functions
Post: RE: Using the built-in pagination functions

To add to the response, if you want to use your method, you'll have to rely on manual pagination on the view. https://codeigniter.com/user_guide/libraries/pagination.html#manual-pagination Your cur...
2,673 Views
7 Replies
01-20-2022, 07:44 AM
xenomorph1030
    Thread: RESTful resource handling and delete: controller method not found
Post: RE: RESTful resource handling and delete: controll...

It depends on how you are requesting it. Anything visited in a browser is a GET request. HTML forms are usually POST (method="post"). The other HTTP verbs (PUT, PATCH, DELETE) have to be specified in ...
2,976 Views
4 Replies
01-19-2022, 08:52 AM
xenomorph1030
    Thread: RESTful resource handling and delete: controller method not found
Post: RE: RESTful resource handling and delete: controll...

Are you using the proper HTTP verb when making the request? It looks like you need to use the DELETE verb to administration/user/1 Per the documentation, your resource declaration would do something ...
2,976 Views
4 Replies
01-19-2022, 06:55 AM
xenomorph1030
    Thread: Issue - Form_Validation > Setting Error Messages > set_rule()
Post: RE: Issue - Form_Validation > Setting Error Messag...

What version of CodeIgniter are you running? I tried out your rule and I see the custom message in 3.1.10. For the heck of it, have you tried overriding the whole form_validation with PHP Code: ...
3,201 Views
4 Replies
02-20-2019, 10:39 AM
xenomorph1030
    Thread: Custom 404 page working in localhost, but not in live site..
Post: RE: Custom 404 page working in localhost, but not ...

The code looks correct to me, so I am inclined to say it isn't the code you shared. One idea, are there differences in the web servers between your local and the live site?
1,852 Views
1 Replies
02-20-2019, 09:50 AM
xenomorph1030
    Thread: Codeigniter Website Showing Blank Page in AWS Elastic Beanstalk
Post: RE: Codeigniter Website Showing Blank Page in AWS ...

Unless you are moving it to an environment 100% like the one you tested, things like this happen. A blank page can mean several things such as Apache works, but it isn't being routed correctly or ther...
15,281 Views
11 Replies
05-16-2017, 05:42 AM
xenomorph1030
    Thread: SafiCloud - A file sharing platform & a Blog Built on CI
Post: RE: SafiCloud - A file sharing platform & a Blog B...

That's neat. What advantage does it have over the other file sharing platforms? Out of curiosity, how does one monitize such a thing or is it at your expense? I read the privacy policy and it sounds l...
13,957 Views
6 Replies
05-16-2017, 05:34 AM
xenomorph1030
    Thread: Syntax error, unexpected 'public' (T_PUBLIC)
Post: RE: Syntax error, unexpected 'public' (T_PUBLIC)

The error is exactly what it says, unexpected 'public' on line 10. Check out line 10. Check out your class and how it only contains a __construct() function. PHP does a decent job most of the time ...
12,131 Views
2 Replies
05-12-2017, 05:58 AM
xenomorph1030
    Thread: Search by Zip Code and Distance
Post: RE: Search by Zip Code and Distance

As others said, there are APIs that you can leverage to handle that. Some databases actually support geospatial searches either natively or through extensions/addons. When it comes to geospatial se...
6,016 Views
5 Replies
05-12-2017, 05:13 AM
xenomorph1030
    Thread: Select CI3 Encrypted data directly from MySQL database
Post: RE: Select CI3 Encrypted data directly from MySQL ...

In the future, you can always look at the library and functions in question. It isn't too difficult to decipher (no pun intended). https://github.com/bcit-ci/CodeIgniter/blob/develop/system/libraries/...
6,151 Views
4 Replies
05-12-2017, 04:14 AM
xenomorph1030
    Thread: Undefined valuable
Post: RE: Undefined valuable

Are you new to CodeIgniter? I can understand not knowing where things go. What Insite posted has instructions. You place that code into a new helper file (or existing if you want). You have to load t...
14,115 Views
14 Replies
05-11-2017, 08:17 AM
xenomorph1030
    Thread: TTFB realy heavy
Post: RE: TTFB realy heavy

There are so many variables such as the machine (cpu/memory), the network and network speed, the operating system, firewalls, your webserver (HTTPD in this case), the application itself, and more of c...
6,464 Views
4 Replies
05-03-2017, 05:22 AM
xenomorph1030
    Thread: Secure my API connection with other websites
Post: RE: Secure my API connection with other websites

Why couldn't the code you send them be modified? All of these measures to try to restrict items that are easily circumvented. I did a quick search and first result is this: http://stackoverflow.com/qu...
6,053 Views
4 Replies
05-03-2017, 04:45 AM
xenomorph1030
    Thread: unable to send javascript variable to controller
Post: RE: unable to send javascript variable to controll...

Your Ajax call is a bit extraneous when passing zplan as you have it in the URL and as a query parameter. I suggest picking one. My legitimate suggestion is to study up on Javascript and PHP. You are...
3,892 Views
3 Replies
05-02-2017, 08:28 AM
xenomorph1030
    Thread: Active Record Join with and or
Post: RE: Active Record Join with and or

Instead of $this->db->get(), try $this->db->get_compiled_select() and output the actual query that CodeIgniter will use. It helps debugging when there are issues with the Query Builder. My initial gue...
5,359 Views
3 Replies
05-02-2017, 07:03 AM
xenomorph1030
    Thread: Secure my API connection with other websites
Post: RE: Secure my API connection with other websites

How would you validate that the API request is coming from a particular domain? Request headers can be modified as can query parameters. It seems like additional complexity that isn't necessary, thoug...
6,053 Views
4 Replies
05-02-2017, 06:10 AM
xenomorph1030
    Thread: Storing IP as binary type in DB
Post: RE: Storing IP as binary type in DB

You are trying to compare a string against binary data which just doesn't work. Trying doing some research on how to select binary data.
1,933 Views
1 Replies
04-20-2017, 05:21 AM
xenomorph1030
    Thread: Delete Item / Job from Database - CodeIgniter PHP
Post: RE: Delete Item / Job from Database - CodeIgniter ...

I think it is because it is related to your job which you get paid to do. Asking strangers to fix your work that you get paid to do won't yield results. You will probably still get an answer, but cert...
3,090 Views
2 Replies
04-20-2017, 05:06 AM
xenomorph1030
    Thread: Recommendations for PDF Creation Libraries?
Post: RE: Recommendations for PDF Creation Libraries?

It really depends on your requirements as there are several PDF libraries. A recent project of mine ended up going with mPDF because of the language support.
19,070 Views
9 Replies
04-20-2017, 04:54 AM
xenomorph1030
    Thread: Ecommerce website in CI
Post: RE: Ecommerce website in CI

That doesn't sound particularly unique to me. Either way, as long as you setup authentication properly, use HTTPS (Let's Encrypt makes it easy), and utilize a payment gateway like Stripe (no need to s...
44,176 Views
18 Replies
04-19-2017, 06:10 AM
xenomorph1030

Theme © iAndrew 2016 - Forum software by © MyBB