Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Soft delete doesn't work with like?
Post: RE: Soft delete doesn't work with like?

It worked: $model->groupStart()->orLike($list)->groupEnd()->paginate(5) The CI4 CRUD for now is simple. So would it be better to use only the Query Builder Class?
7,745 Views
7 Replies
11-02-2019, 10:57 AM
edica
    Thread: Soft delete doesn't work with like?
Post: RE: Soft delete doesn't work with like?

Sorry if I'm wrong with something. : / PHP Code: -- $list = ['title' => $q, 'slug' => $q, 'body' => $q]; $model->orLike($list)->paginate(5) -- Using orLike() with paginate() generate the sql belo...
7,745 Views
7 Replies
11-02-2019, 06:40 AM
edica
    Thread: Soft delete doesn't work with like?
Post: RE: Soft delete doesn't work with like?

It could be a bug. https://github.com/codeigniter4/CodeIgniter4/issues/2380
7,745 Views
7 Replies
11-01-2019, 12:40 PM
edica
    Thread: Using Model's CRUD methods in advanced queries
Post: RE: Using Model's CRUD methods in advanced queries

Yes. You can also use other Query Builder Class functions. https://codeigniter4.github.io/CodeIgniter4/database/query_builder.html
4,295 Views
5 Replies
10-30-2019, 07:57 AM
edica
    Thread: Soft delete doesn't work with like?
Post: Soft delete doesn't work with like?

$q = 'test'; $list = ['title' => $q, 'slug' => $q, 'body' => $q]; $data = [ 'news' => $model->orLike($list)->paginate(5), 'pager' => $model->pager ]; Using ($useSoftDeletes = true) in t...
7,745 Views
7 Replies
10-29-2019, 07:51 AM
edica
    Thread: Save function
Post: RE: Save function

It could have one more parameter in url_title to remove these characters. By default do not override. And use the ForeignCharacters.php file. It is very useful.
8,086 Views
4 Replies
10-29-2019, 05:37 AM
edica
    Thread: Save function
Post: RE: Save function

Yes, I understood. Very good. Enjoying the post. A suggestion about url_title. It would be nice to remove other special characters. return preg_replace(array("/(á|à|ã|â|ä)/","/(Á|À|Ã|Â|Ä)/","/(é...
8,086 Views
4 Replies
10-28-2019, 08:15 AM
edica
    Thread: Save function
Post: Save function

Following the tutorial in the guide. The save function can insert or update. But using update will make an error when you have an is_unique rule in the model. Controller News.php: PHP Code: -- $da...
8,086 Views
4 Replies
10-26-2019, 10:32 AM
edica
    Thread: About layout creation with renderSection
Post: RE: About layout creation with renderSection

Yes. Very good cachePage(). But it caches the whole page. And it works only within methods. I wanted the cache only in $this->extend() which would be the layout.
6,120 Views
4 Replies
10-04-2019, 06:58 AM
edica
    Thread: About layout creation with renderSection
Post: RE: About layout creation with renderSection

Is it possible to cache the layout? Example: cache($this->extend('layouts/layout_site')) Hello World!
6,120 Views
4 Replies
10-02-2019, 11:43 AM
edica
    Thread: About layout creation with renderSection
Post: About layout creation with renderSection

For the more experienced ...  :blush: Is it worth using "renderSection()" instead of just "echo view()"? https://codeigniter4.github.io/CodeIgniter4/outgoing/view_layouts.html (https://codeignite...
6,120 Views
4 Replies
09-24-2019, 09:54 AM
edica
    Thread: Folder in Controllers
Post: RE: Folder in Controllers

Missed this: use App\Controllers\BaseController; In the root controllers is not required. Thanks :)
3,743 Views
2 Replies
08-27-2019, 08:44 AM
edica
    Thread: Folder in Controllers
Post: Folder in Controllers

Hi I created an Admin folder in Controllers. And inside the Admin folder the file Home.php as BaseController class. Not found this file and error 404. Should not find automatic?
3,743 Views
2 Replies
08-27-2019, 07:36 AM
edica
    Thread: CodeIgniter 4 Logo
Post: RE: CodeIgniter 4 Logo

php_rocs Wrote: (08-26-2019, 02:39 PM) -- While I understand maintaining the old logo (with mild modifications), a new more sophisticated logo would go a long way in letting everyone know that CI has...
92,657 Views
63 Replies
08-26-2019, 03:24 PM
edica
    Thread: App Starter won't update to beta 4
Post: RE: App Starter won't update to beta 4

Also here. :/
8,802 Views
9 Replies
08-06-2019, 07:31 AM
edica
    Thread: Public folder with htaccess?
Post: RE: Public folder with htaccess?

For those using VestaCP with CentOS system: https://gist.github.com/edica/c89b4c50ee396bb7b380deca59d0bd8c
6,413 Views
6 Replies
07-30-2019, 05:55 AM
edica
    Thread: Public folder with htaccess?
Post: RE: Public folder with htaccess?

I'm using Vesta panel. (vestacp.com)
6,413 Views
6 Replies
06-08-2019, 05:23 AM
edica
    Thread: Public folder with htaccess?
Post: RE: Public folder with htaccess?

There is also another line. In bold below. Does it need to be changed too?         AllowOverride All         SSLRequireSSL         Options +Includes -Indexes +ExecCGI         php_admin_value open_ba...
6,413 Views
6 Replies
06-07-2019, 03:03 PM
edica
    Thread: Public folder with htaccess?
Post: Public folder with htaccess?

Hello, How to direct to public folder? With htaccess?
6,413 Views
6 Replies
06-07-2019, 12:39 PM
edica
    Thread: CodeIgniter 4.0.0-beta.2 Released
Post: RE: CodeIgniter 4.0.0-beta.2 Released

Ahhh my heart :)
36,964 Views
20 Replies
04-04-2019, 10:00 AM
edica

Theme © iAndrew 2016 - Forum software by © MyBB