Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: route value can be used in URL
Post: RE: route value can be used in URL

(11-23-2020, 03:23 AM)superior Wrote: (11-22-2020, 12:25 AM)paulkd Wrote: (11-21-2020, 01:59 PM)superior Wrote: The only fix for this i could find about this issue is https://stackoverflow.com/a...
paulkd CodeIgniter 3.x 4 920 11-23-2020, 04:19 AM
    Thread: route value can be used in URL
Post: RE: route value can be used in URL

(11-21-2020, 01:59 PM)superior Wrote: The only fix for this i could find about this issue is https://stackoverflow.com/a/35290306/8832064, more people struggle with this issue for indexation. Thanks...
paulkd CodeIgniter 3.x 4 920 11-22-2020, 12:25 AM
    Thread: route value can be used in URL
Post: route value can be used in URL

Hi, I've just discovered that the route value can be used in a url e.g. This route Code:$route['products/get/all'] = "main/getAllProducts"; can be run with example.com/products/get/all or examp...
paulkd CodeIgniter 3.x 4 920 11-04-2020, 02:50 AM
    Thread: Pagination negative offset
Post: RE: Pagination negative offset

Hi, You could use the max function. Code:$data ['list'] = $this->test_model->get_list(max(0, $per_page), $offset);
paulkd CodeIgniter 3.x 2 793 07-04-2020, 01:14 AM
    Thread: Confirmation required
Post: RE: Confirmation required

(07-08-2019, 10:20 AM)paulkd Wrote: Hi, Can someone confirm that it is not possible to have the following controller file App/Controllers/Front/Main.php and have the following route Code:$rou...
paulkd CodeIgniter 4 Discussion 2 1,521 07-10-2019, 09:09 AM
    Thread: Confirmation required
Post: Confirmation required

Hi, Can someone confirm that it is not possible to have the following controller file App/Controllers/Front/Main.php and have the following route Code:$routes->add('/about', 'front/main::abo...
paulkd CodeIgniter 4 Discussion 2 1,521 07-08-2019, 10:20 AM
    Thread: Spark Serve Options
Post: RE: Spark Serve Options

(06-09-2019, 03:10 AM)InsiteFX Wrote: It's in the CodeIgniter 4 User Guide. Code:php spark serve --port=8081 Change port to your port=80 Sorry for delay in replying (thought I'd subscribed). I kno...
paulkd CodeIgniter 4 Support 5 5,422 06-22-2019, 11:46 PM
    Thread: Spark Serve Options
Post: Spark Serve Options

Hi All, I've installed CI4 appstarter using composer and want to run on port 80. I ran php spark serve and noticed that any --options were being ignored. Looking at Serve.php and CLI.php can someon...
paulkd CodeIgniter 4 Support 5 5,422 06-08-2019, 10:24 PM
    Thread: $route array CI3
Post: $route array CI3

Hi, Is there a standard way to access the $route array? similar to accessing config items?
paulkd General Help 0 816 03-17-2019, 02:18 AM
    Thread: Update sql query of multiple fields not working
Post: RE: Update sql query of multiple fields not workin...

Try Code:$this->db->where('WEBLOGIN', $WEBLOGIN); $this->db->where('TIE_Codigo', $TIE_Codigo); $this->db->update('TIENDA', $array); or Code:$condicion =...
paulkd General Help 1 614 03-16-2019, 10:07 AM
    Thread: Help with Looping through an object
Post: RE: Help with Looping through an object

Hi enelson, Can you show me your code?
paulkd General Help 11 3,938 11-13-2018, 09:42 AM
    Thread: Help with Looping through an object
Post: RE: Help with Looping through an object

Hi, I got this answer from https://stackoverflow.com/questions/4282...ect-fields Code:$list = json_decode($json); function cmp($a, $b) {    return strcmp($a->data_amount, &#...
paulkd General Help 11 3,938 11-12-2018, 01:06 AM
    Thread: Help with Looping through an object
Post: RE: Help with Looping through an object

Do you have control of what is producing the json? If so, maybe you can use that process to sort (e.g. SQL query)
paulkd General Help 11 3,938 11-11-2018, 10:43 AM
    Thread: Help with Looping through an object
Post: RE: Help with Looping through an object

Hi, Your json format is incorrect. json keys should be in double quotes. It should look like this: Code:{ "products": [    {        "id": "D-MFIN-2-150MB",        "pur_currency": "NN",       ...
paulkd General Help 11 3,938 11-11-2018, 12:52 AM
    Thread: Error 404 in log
Post: RE: Error 404 in log

Assets or assets ?
paulkd Issues 5 3,697 03-27-2017, 12:59 AM
    Thread: Something like laravel "dd" function
Post: RE: Something like laravel "dd" function

(12-10-2016, 03:38 AM)CodeIgnitedX Wrote: I miss something like "dd" function in laravel to print the object's tree and vars. It's not been maintained since 2007, but I use this little class file d...
paulkd CodeIgniter 4 Feature Requests 11 16,027 12-11-2016, 05:07 AM
    Thread: Variable Scope
Post: Variable Scope

Hi, Can someone confirm that variables passed to a top view are available to a lower-down view? e.g. PHP Code:$this->load->view('view1', $view1array);$this->load->view(...
paulkd Best Practices 1 2,222 04-30-2016, 02:06 AM
    Thread: Models in 3.0.6
Post: RE: Models in 3.0.6

(04-27-2016, 05:54 AM)Wouter60 Wrote: If the model is named "Blog_model.php", then load it like this: $this->load->model('blog_model'); So include the _model part, not just "blog". And whe...
paulkd CodeIgniter 3.x 6 5,803 04-27-2016, 06:46 AM
    Thread: Models in 3.0.6
Post: RE: Models in 3.0.6

(04-27-2016, 04:40 AM)InsiteFX Wrote: What he is saying is that the models need to saved with UCFirst. Blog_model.php Hi InsiteFX, I've tried quite a few combinations of file names, class names an...
paulkd CodeIgniter 3.x 6 5,803 04-27-2016, 05:40 AM
    Thread: Models in 3.0.6
Post: RE: Models in 3.0.6

(04-27-2016, 01:37 AM)ciadmin Wrote: Wirh CI3, your class filenames (models, controllers & libraries) need to be UCfirst. i.e. Blog_model instead of blog_model. You would still load it with $...
paulkd CodeIgniter 3.x 6 5,803 04-27-2016, 03:11 AM

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