Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Open the view in browser as html page, not as pdf using DOMPDF
Post: RE: Open the view in browser as html page, not as ...

JustJohnQ Wrote: (04-04-2023, 01:19 AM) -- The following code works for me: PHP Code: -- $dompdf = new \Dompdf\Dompdf(); $dompdf->loadHtml(view('Modules\Intranet\Views\pdf_view')); $dompdf->setPa...
1,546 Views
4 Replies
04-04-2023, 04:24 AM
nadeem14375
    Thread: Open the view in browser as html page, not as pdf using DOMPDF
Post: Open the view in browser as html page, not as pdf ...

Hi, I am using Codeigniter 4, with DOMPDF. My controller works, but open the view in browser as html page, not as pdf page, I want to download the pdf. Code: -- public function invoice_pdf() ...
1,546 Views
4 Replies
04-04-2023, 12:11 AM
nadeem14375
    Thread: managing multiple application on single codeigniter installation
Post: RE: managing multiple application on single codeig...

iRedds Wrote: (02-07-2023, 08:26 PM) -- Just because a framework supports it doesn't mean it's a good solution. Once upon a time, shared hosting had a limit on the occupied space and the number of...
1,979 Views
5 Replies
02-07-2023, 10:29 PM
nadeem14375
    Thread: 500 Internal Server Error
Post: 500 Internal Server Error

hi, After the home page, any other link is not working gives this error, I am using Codeigniter 4, while the application is working fine on localhost. Quote: -- Internal Server Error The serve...
543 Views
1 Replies
02-06-2023, 09:36 PM
nadeem14375
    Thread: managing multiple application on single codeigniter installation
Post: managing multiple application on single codeignite...

hi, I am trying to configure, multiple apps on single codeigniter 4 installation. I followed: https://codeigniter.com/user_guide/general/managing_apps.html (https://codeigniter.com/user_guide/gene...
1,979 Views
5 Replies
02-06-2023, 02:50 AM
nadeem14375
    Thread: database, model loading in MVC
Post: RE: database, model loading in MVC

superior Wrote: (01-28-2023, 08:25 AM) -- nadeem14375 Wrote: (01-28-2023, 08:19 AM) -- kenjis Wrote: (01-28-2023, 01:21 AM) -- If you really need a model in a view, load it in a controller and pass...
2,560 Views
6 Replies
01-28-2023, 08:47 AM
nadeem14375
    Thread: database, model loading in MVC
Post: RE: database, model loading in MVC

kenjis Wrote: (01-28-2023, 01:21 AM) -- If you really need a model in a view, load it in a controller and pass it to a view. https://www.codeigniter.com/user_guide/outgoing/views.html#adding-dynamic...
2,560 Views
6 Replies
01-28-2023, 08:19 AM
nadeem14375
    Thread: database, model loading in MVC
Post: RE: database, model loading in MVC

Thanks for reply. 1. What about another database? 2. How to call a function in view? do I need to load the model in every view? use App\Models\MainModel; $MainModel = new MainModel; 2. wha...
2,560 Views
6 Replies
01-28-2023, 12:49 AM
nadeem14375
    Thread: database, model loading in MVC
Post: database, model loading in MVC

Hi, I want to know how often need to load / connect database / model and session in these 3 pieces of code (controller, model, view). I am facing strange even the constructor is not working :-)  In ...
2,560 Views
6 Replies
01-27-2023, 10:48 PM
nadeem14375
    Thread: No direct script access allowed
Post: RE: No direct script access allowed

kenjis Wrote: (01-25-2023, 11:15 PM) -- BASEPATH is not defined in CI4. Remove the line "defined('BASEPATH') OR exit('No direct script access allowed');", or define BASEPATH by yourself. -- hi, ...
5,592 Views
3 Replies
01-25-2023, 11:24 PM
nadeem14375
    Thread: No direct script access allowed
Post: No direct script access allowed

hi, I am converting my CI3 application to CI4. I am facing this error No direct script access allowed I have included the following code, but it always, says Code: -- No direct script access al...
5,592 Views
3 Replies
01-25-2023, 10:55 PM
nadeem14375
    Thread: multidimensional array in view
Post: RE: multidimensional array in view

I need to display the multiple records from this array, your loop just return 0 index. Wouter60 Wrote: (02-05-2018, 11:30 AM) -- The array from your model has 4 elements, which are arrays too. Each ...
5,454 Views
2 Replies
02-08-2018, 11:19 AM
nadeem14375
    Thread: multidimensional array in view
Post: multidimensional array in view

hi all, I have the following array from my model, here the var_dump:  Quote: -- array(4) {  [0]=>  array(1) {    [0]=>    array(5) {      ["payment_student"]=>      string(4) "240...
5,454 Views
2 Replies
02-05-2018, 09:43 AM
nadeem14375
    Thread: unable to display values from array in a view
Post: RE: unable to display values from array in a view

without that date check, the same error.
10,028 Views
12 Replies
11-25-2017, 02:01 PM
nadeem14375
    Thread: unable to display values from array in a view
Post: RE: unable to display values from array in a view

tried to pick the last_query, and the result is strange: echo $this->anotherDb->last_query(); die(); SELECT `payment_amount` FROM `payments` WHERE `payment_student` = '44' AND date_format(fee_mon...
10,028 Views
12 Replies
11-25-2017, 02:00 PM
nadeem14375
    Thread: unable to display values from array in a view
Post: RE: unable to display values from array in a view

here is the output pdf attached.
10,028 Views
12 Replies
11-25-2017, 01:47 PM
nadeem14375
    Thread: unable to display values from array in a view
Post: RE: unable to display values from array in a view

no luck I tried both foreach ($fee_detail as $key => $data) { and foreach ($fee_detail as $data) { tried to pick the last_query, and the result is strange: echo $this->anothe...
10,028 Views
12 Replies
11-25-2017, 01:44 PM
nadeem14375
    Thread: unable to display values from array in a view
Post: RE: unable to display values from array in a view

PaulD Wrote: (11-25-2017, 11:56 AM) -- Your query is asking for: PHP Code: -- ->select('payment_amount', 'payment_description','payment_student'); -- But your array is not showing those index...
10,028 Views
12 Replies
11-25-2017, 12:17 PM
nadeem14375
    Thread: unable to display values from array in a view
Post: RE: unable to display values from array in a view

PaulD Wrote: (11-25-2017, 10:34 AM) -- Your problem is that your array does not contain the index 'payment_description' so when you try to output it then php is saying it is not defined, which it is ...
10,028 Views
12 Replies
11-25-2017, 11:09 AM
nadeem14375
    Thread: unable to display values from array in a view
Post: unable to display values from array in a view

Hi all, I am trying to out values using loop from an array, but facing error: Quote: -- Message: Undefined index: payment_description -- here my model: PHP Code: -- public function g...
10,028 Views
12 Replies
11-25-2017, 10:08 AM
nadeem14375

Theme © iAndrew 2016 - Forum software by © MyBB