Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Cannot generate image preview using Servicess:image
Post: RE: Cannot generate image preview using Servicess:...

there is an example about imagick in codeigniter?
sfarzoso CodeIgniter 4 Support 4 161 05-12-2021, 01:26 AM
    Thread: Cannot generate image preview using Servicess:image
Post: Cannot generate image preview using Servicess:imag...

I'm trying to implement this solutiion How do I convert a PDF document to a preview image in PHP? - Stack Overflow Essentially the user says that is possible create a preview of a pdf based on this c...
sfarzoso CodeIgniter 4 Support 4 161 05-11-2021, 08:57 AM
    Thread: Route call wrong method
Post: RE: Route call wrong method

(05-04-2021, 10:45 AM)iRedds Wrote: Sorry. I’m completely blind. The problem is that under the route $routes->delete('(:any)', 'Media::delete/$1'); fits DELETE admin/media and DELETE ad...
sfarzoso CodeIgniter 4 Support 7 539 05-05-2021, 12:54 AM
    Thread: Route call wrong method
Post: RE: Route call wrong method

I found another weird issue, I have this route: [Image: https://i.imgur.com/P9OQOUo.jpg] if I call it using: PHP Code:url: `<?= route_to('admin/media/files') ?>/${$(thi...
sfarzoso CodeIgniter 4 Support 7 539 05-04-2021, 02:14 AM
    Thread: Route call wrong method
Post: RE: Route call wrong method

(05-03-2021, 12:01 PM)iRedds Wrote: It is obvious. admin/media/directory === admin/media/(:any) admin/media/directory !== admin/media/directory/(:any) So based on your hint, the issue is related to ...
sfarzoso CodeIgniter 4 Support 7 539 05-04-2021, 12:37 AM
    Thread: Route call wrong method
Post: Route call wrong method

I have this routes: PHP Code:$routes->group('admin', function ($routes) {    $routes->group('media', [      &nb...
sfarzoso CodeIgniter 4 Support 7 539 05-03-2021, 10:37 AM
    Thread: Cannot execute query update with multiple rows
Post: Cannot execute query update with multiple rows

I'm trying to update multiple rows using this code: PHP Code:$directoryId = $this->request->getPostGet('directory_id');        $where = $...
sfarzoso CodeIgniter 4 Support 1 238 05-03-2021, 08:13 AM
    Thread: How to translate month?
Post: How to translate month?

I have this date 3/2021, and I'm trying to translate March into "Marzo", so I did: PHP Code:<?= DateTime::createFromFormat('m-Y', $d->date)->format(lang('date.month', ['F'...
sfarzoso CodeIgniter 4 Support 1 178 04-29-2021, 02:07 AM
    Thread: How to render section in nested view?
Post: RE: How to render section in nested view?

(04-29-2021, 01:09 AM)iRedds Wrote: Oh really. I missed it. If I understand the code correctly, in the current implementation you cannot use nested sections. mmm so I have to create one js file tha...
sfarzoso CodeIgniter 4 Support 8 527 04-29-2021, 02:05 AM
    Thread: How to render section in nested view?
Post: RE: How to render section in nested view?

(04-28-2021, 10:42 PM)iRedds Wrote: I think you should use $this->include() instead of view() in your template. I've also tried with include but same result
sfarzoso CodeIgniter 4 Support 8 527 04-28-2021, 10:51 PM
    Thread: How to generate file preview using image manipulation class?
Post: How to generate file preview using image manipulat...

I've installed imagick to my php-fpm and I would like to generate a preview image for the uploaded pdf. I discovered this guide: Image Manipulation Class — CodeIgniter 4.1.1 documentation but I don'...
sfarzoso CodeIgniter 4 Support 0 174 04-28-2021, 11:05 AM
    Thread: How to render section in nested view?
Post: RE: How to render section in nested view?

(04-27-2021, 09:14 AM)paliz Wrote: Migrate to ci4 well.. I'm using CI4  :s
sfarzoso CodeIgniter 4 Support 8 527 04-27-2021, 09:34 AM
    Thread: How to render section in nested view?
Post: How to render section in nested view?

I have this layout: PHP Code:<!DOCTYPE html><html><head>  <meta charset="utf-8"></head><body>  <div class="wrapper">    &l...
sfarzoso CodeIgniter 4 Support 8 527 04-27-2021, 01:27 AM
    Thread: Paginate remove query condition
Post: RE: Paginate remove query condition

(04-22-2021, 02:11 PM)iRedds Wrote: The paginate method is a wrapper for get methods. When the get method is called, all query data is reset. This is normal. Yes, you need to create a query each tim...
sfarzoso CodeIgniter 4 Support 4 426 04-25-2021, 06:49 AM
    Thread: Paginate remove query condition
Post: Paginate remove query condition

I've discovered a strange behavior on the query builder, and I don't know if there is an issue or am I doing something wrong. Essentially I have this query: PHP Code:$builder = $th...
sfarzoso CodeIgniter 4 Support 4 426 04-22-2021, 07:31 AM
    Thread: Not able to disable debug bar
Post: Not able to disable debug bar

I'm trying to return a view as json, so looking to other post on this forum I discovered this thread. So I followed the comment of cyberstunts and tried: PHP Code:        if ...
sfarzoso CodeIgniter 4 Support 1 193 04-22-2021, 02:48 AM
    Thread: Cannot wrap query condition between brackets
Post: Cannot wrap query condition between brackets

I'm trying to check if a post title or content is equal to a specific string, and this post must have a specific type, so I wrote this query: PHP Code:$builder = $this->post &nbs...
sfarzoso CodeIgniter 4 Support 1 178 04-22-2021, 12:55 AM
    Thread: How to pass parameters to lang from js?
Post: How to pass parameters to lang from js?

In one of my DataTable column I have this code: PHP Code:{    'data': function(data) {             let date = moment(data.published_da...
sfarzoso CodeIgniter 4 Support 3 267 04-20-2021, 08:08 AM
    Thread: How to paginate model using join?
Post: RE: How to paginate model using join?

(04-19-2021, 09:53 AM)iRedds Wrote: PHP Code:public function myPaginateMethod(){    $this->builder() .....    return $this->paginate();}// ...
sfarzoso CodeIgniter 4 Support 3 256 04-19-2021, 10:34 AM
    Thread: How to paginate model using join?
Post: How to paginate model using join?

I have declared this model: PHP Code:<?phpnamespace App\Models\Blog;use CodeIgniter\Model;/** * Class PostModel. */class PostModel extends&nb...
sfarzoso CodeIgniter 4 Support 3 256 04-19-2021, 08:23 AM

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