Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: How to run Transactions in controller?
Post: How to run Transactions in controller?

I need to use transactions in my controller. My controller method is given below. This is not working and should not be as far as I understand. So, what could be the solution? Again, is it good practi...
4,063 Views
4 Replies
04-02-2021, 05:21 AM
webdevron
    Thread: Call to undefined method App\Models\[...]::transStart
Post: RE: Call to undefined method App\Models\[...]::tra...

ojmichael Wrote: (11-29-2020, 11:34 PM) -- PHP Code: -- $info['updated']        = time(); -- Why is this line using the variable $info and not $val (like the rest) ? -- This is using in the last...
6,491 Views
6 Replies
11-30-2020, 05:39 AM
webdevron
    Thread: Call to undefined method App\Models\[...]::transStart
Post: RE: Call to undefined method App\Models\[...]::tra...

neoneeco Wrote: (11-25-2020, 06:22 AM) -- 1) Have you tested without this method? (commenting it) 2) It may seem obvious, is this method well implemented? the code doesn't show it, with the closin...
6,491 Views
6 Replies
11-29-2020, 02:14 PM
webdevron
    Thread: Call to undefined method App\Models\[...]::transStart
Post: Call to undefined method App\Models\[...]::transSt...

My model function is given bellow: PHP Code: -- class Product extends Model {     protected $table            = 'products';     protected $primaryKey      = 'product_ID';     protected $retu...
6,491 Views
6 Replies
11-25-2020, 04:22 AM
webdevron
    Thread: Need help for complex query
Post: Need help for complex query

I have a product table, category table and another table to join product and category where category stored in JSON format. What I need to do is to get all the product with a list category IDs. Categ...
1,782 Views
3 Replies
10-10-2020, 03:24 PM
webdevron
    Thread: MySQL JSON fields support in query builder
Post: RE: MySQL JSON fields support in query builder

Sounds great. Also looking for this solution (feature).
7,458 Views
7 Replies
08-15-2020, 03:55 AM
webdevron
    Thread: Get uploaded file data in CI 4
Post: RE: Get uploaded file data in CI 4

InsiteFX Wrote: (09-18-2019, 03:50 AM) -- All of the parameters are in the $_FILES[] array. PHP Code: -- $file_name     = $_FILES["photo"]["name"]; $file_type     = $_FILES["photo"]["type"]; ...
5,770 Views
3 Replies
07-14-2020, 02:28 PM
webdevron
    Thread: Page not loading if session is enabled!!
Post: RE: Page not loading if session is enabled!!

hsalardi Wrote: (05-17-2020, 04:52 PM) -- Hello, Try this: Regards -- Nothing changed!! [hr] SNebiyev Wrote: (05-17-2020, 10:41 PM) -- I assume that you have got php errors. Please enabl...
2,948 Views
3 Replies
05-18-2020, 11:25 AM
webdevron
    Thread: Page not loading if session is enabled!!
Post: Page not loading if session is enabled!!

I have developed web application using Beta version of CI4. Now I am updating this to current version. But surprisingly the session is not working. Here is the sample code. PHP Code: --      ...
2,948 Views
3 Replies
05-17-2020, 03:41 PM
webdevron
    Thread: CI4 lifecycle : What is the loading point of Common.php
Post: CI4 lifecycle : What is the loading point of Commo...

I have developed an Ecommerce application using pre-release version of CI4. In that application I have used "service" in Common.php (inside app) file without any issue. But after updating to 4.0.3, th...
2,206 Views
1 Replies
05-04-2020, 04:27 AM
webdevron
    Thread: Service not working - showing undefined function service()
Post: Service not working - showing undefined function s...

I am tying to use service in Common.php like my other projects. But do not know why this is showing me the following error. Quote: -- Fatal error: Uncaught Error: Call to undefined function serv...
2,203 Views
1 Replies
05-04-2020, 01:13 AM
webdevron
    Thread: Codeigniter website is down!!
Post: Codeigniter website is down!!

Is there any specific reason for which the main website is down? If so, when it will be live again? GMT: 4:29 PM Sunday, March 22, 2020
4,176 Views
4 Replies
03-22-2020, 09:30 AM
webdevron
    Thread: CodeIgniter 4.0 is here!
Post: RE: CodeIgniter 4.0 is here!

Happy Birthday Codeigniter4, Happy Birthday James
216,389 Views
132 Replies
02-24-2020, 08:42 AM
webdevron
  Question Thread: Why the $this->find( $id ) is generating error but get()->getRow() is working?
Post: Why the $this->find( $id ) is generating error but...

In my model, I am trying to get an item by its ID. My code is given bellow: PHP Code: -- // namespace App\Models; // use CodeIgniter\Model; public function getItemByID( $cid ){     return $...
5,775 Views
6 Replies
01-31-2020, 12:57 PM
webdevron
    Thread: Issue with RegEx contains pipe (|)
Post: RE: Issue with RegEx contains pipe (|)

InsiteFX Wrote: (01-21-2020, 09:18 AM) -- Try adding the the ending slash to it like so. PHP Code: -- |/ -- See if that will work. -- Adding PHP Code: -- |/ -- showing the following resul...
2,474 Views
2 Replies
01-21-2020, 09:45 AM
webdevron
  Question Thread: Issue with RegEx contains pipe (|)
Post: Issue with RegEx contains pipe (|)

I am using some regex in my validation. Others are working well but this: regex_match[/((?:https?:\/\/)?(?:www\.)?(?:\w\w\.)?example\.com\/)((([\w]{2,3})?)|([^\/]+\/(([\w|\d-&#?=])+\/?){1,}))$/] ...
2,474 Views
2 Replies
01-21-2020, 07:40 AM
webdevron
    Thread: How to create Controller & view pages for each user?
Post: RE: How to create Controller & view pages for each...

christaliise Wrote: (01-19-2020, 09:57 AM) -- includebeer Wrote: (01-19-2020, 08:31 AM) -- christaliise Wrote: (01-19-2020, 08:01 AM) -- My system will have far more that 1,000 account files for al...
10,470 Views
14 Replies
01-20-2020, 12:47 PM
webdevron
    Thread: Accessing "$request" and "validate" from another class
Post: RE: Accessing "$request" and "validate" from anoth...

MGatner Wrote: (12-15-2019, 05:00 AM) -- Those libraries are initialized on the current routed controller during initController, so if you are loading the controller from somewhere else you will need...
3,785 Views
3 Replies
12-15-2019, 02:18 PM
webdevron
    Thread: Problem with CI4 session
Post: RE: Problem with CI4 session

Now I am loading session in my BaseController. PHP Code: --
10,264 Views
6 Replies
12-15-2019, 02:00 PM
webdevron
    Thread: Accessing "$request" and "validate" from another class
Post: Accessing "$request" and "validate" from another c...

I have a subfolder inside controller app/Controller/AppManager. Inside it there is a class named "MediaManager.php" which is extended with use CodeIgniter\Controller;. PHP Code: --
3,785 Views
3 Replies
12-15-2019, 12:56 AM
webdevron

Theme © iAndrew 2016 - Forum software by © MyBB