Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Caching only pages without query string
Post: RE: Caching only pages without query string

iRedds Wrote: (01-27-2021, 08:27 AM) -- henry_miaomiao Wrote: (01-27-2021, 04:22 AM) -- Is there a way to save the cache only for pages without querystring in the url? Example:  www.site.com/...
534 Views
2 Replies
01-27-2021, 12:04 PM
henry_miaomiao
    Thread: Caching only pages without query string
Post: Caching only pages without query string

Is there a way to save the cache only for pages without querystring in the url? Example: www.site.com/product (cache yes) www.site.com/product?cat=4&dr=45 (cache no) Thanks
534 Views
2 Replies
01-27-2021, 04:22 AM
henry_miaomiao
    Thread: Connect to DB in external Library (CI 4)
Post: RE: Connect to DB in external Library (CI 4)

craig Wrote: (12-01-2020, 09:22 AM) -- Quote: -- Please, give me an example for make a query inside a own library -- This is explained in the documentation that I linked to in my previous post ...
1,727 Views
4 Replies
12-01-2020, 01:25 PM
henry_miaomiao
    Thread: Connect to DB in external Library (CI 4)
Post: RE: Connect to DB in external Library (CI 4)

craig Wrote: (12-01-2020, 07:01 AM) -- You don't need to use mysqli_query directly. The documentation explains how to connect to databases and execute queries: https://codeigniter.com/user_guide/data...
1,727 Views
4 Replies
12-01-2020, 09:08 AM
henry_miaomiao
    Thread: Connect to DB in external Library (CI 4)
Post: Connect to DB in external Library (CI 4)

I have my custom library in Codeigniter 4:
1,727 Views
4 Replies
12-01-2020, 06:43 AM
henry_miaomiao
    Thread: Sql in Model - Undefined variable: db
Post: Sql in Model - Undefined variable: db

This is my symple model: I receive this error: Undefined variable: db Which is the correct way for resolve the issue?
580 Views
2 Replies
11-23-2020, 02:30 PM
henry_miaomiao
    Thread: Load language array
Post: RE: Load language array

T.O.M. Wrote: (11-16-2020, 07:20 AM) -- I also was interested of this question here (https://forum.codeigniter.com/thread-77507.html) but did not find the answer. So I've decided do not load all tra...
575 Views
5 Replies
11-16-2020, 08:13 AM
henry_miaomiao
    Thread: Load language array
Post: RE: Load language array

InsiteFX Wrote: (11-16-2020, 06:28 AM) -- And what version of CodeIgniter are you running? -- Codeigniter 4
575 Views
5 Replies
11-16-2020, 06:36 AM
henry_miaomiao
    Thread: Load language array
Post: Load language array

I receive the "language segment" from the url (I use CI4) ex: www.site.com/en/book I would like to load the relative translations array in the controller for the view... so I tried: My controller: ...
575 Views
5 Replies
11-16-2020, 04:41 AM
henry_miaomiao
    Thread: Codeigniter - cache only part of the view
Post: RE: Codeigniter - cache only part of the view

Martin7483 Wrote: (12-14-2015, 03:58 AM) -- Have you seen or tried this? http://www.codeigniter.com/user_guide/libraries/caching.html You can use this to cache anything you want of an x amount ...
5,946 Views
5 Replies
12-14-2015, 09:17 AM
henry_miaomiao
    Thread: Codeigniter - cache only part of the view
Post: RE: Codeigniter - cache only part of the view

The best solution could be: $data['header'] = $this->load->view('header', $data, true, 250); // 250 are minutes cache $data['footer'] = $this->load->view('footer', $data, true, 60); // 60 are minute...
5,946 Views
5 Replies
12-13-2015, 03:04 AM
henry_miaomiao
  Question Thread: Codeigniter - cache only part of the view
Post: Codeigniter - cache only part of the view

In my CI application I use to load differents parts of the view: Code: -- $data['header'] = $this->load->view('header', $data, true); $data['footer'] = $this->load->view('footer', $data, tru...
5,946 Views
5 Replies
12-12-2015, 07:01 AM
henry_miaomiao
    Thread: internationalization i18n without segment (mandatory)
Post: internationalization i18n without segment (mandato...

I have created a new portal in 5 language using the library: internationalization i18n https://github.com/bcit-ci/CodeIgniter/wiki/CodeIgniter-2.1-internationalization-i18n (https://github.com/bci...
2,292 Views
0 Replies
05-20-2015, 11:15 AM
henry_miaomiao

Theme © iAndrew 2016 - Forum software by © MyBB