Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Defining extra constants CI 4
Post: RE: Defining extra constants CI 4

kilishan Wrote: (03-30-2020, 11:21 AM) -- Or add it to app/Config/Constants.php.  I have a problem, i defined a constant in constants.php but the call to it in the controller does not find it. --
8,927 Views
8 Replies
04-27-2024, 09:44 AM
ramonpuig
    Thread: Cannot access protected property CodeIgniter\HTTP\IncomingRequest::$uri
Post: Cannot access protected property CodeIgniter\HTTP\...

Hello I followed the steps to upgrade from 4.4.8 to 4.5.0 , but i get this error Cannot access protected property CodeIgniter\HTTP\IncomingRequest::$uri on line 75 PHP Code: --       // $t...
1,452 Views
10 Replies
04-09-2024, 06:34 AM
ramonpuig
    Thread: remove index.php after installing myth:auth library
Post: RE: remove index.php after installing myth:auth li...

Newbie_Mark998 Wrote: (01-22-2024, 06:52 AM) -- hello guys i have installed myth:auth library  and i want to remove the index.php from url i have set PHP Code: -- public string $indexPage = ''...
617 Views
4 Replies
04-09-2024, 02:20 AM
ramonpuig
    Thread: docs: Deployment to Shared Hosting Services
Post: RE: docs: Deployment to Shared Hosting Services

kenjis Wrote: (02-21-2024, 06:01 PM) -- The following section has been added in the in-progress User Guide. https://codeigniter4.github.io/CodeIgniter4/installation/running.html#deployment-to-shar...
738 Views
6 Replies
03-20-2024, 10:23 AM
ramonpuig
    Thread: controller wont redirect or return view
Post: RE: controller wont redirect or return view

Thanks for the answer. Yeah i was not following the correct standart of returning view instead of trying to load a method inside the controller directly. my routes were bad too,  really bad, now its s...
225 Views
2 Replies
03-20-2024, 04:37 AM
ramonpuig
    Thread: controller wont redirect or return view
Post: controller wont redirect or return view

Hello I have a controlller that should redirect or return to a view but it doesnt it stays at same view but with blank content. PHP Code: -- public function register($validators = []) {    ...
225 Views
2 Replies
03-19-2024, 09:26 AM
ramonpuig
    Thread: POTENTIAL BUG querybuilder-save not working as intented
Post: RE: POTENTIAL BUG querybuilder-save not working as...

kenjis Wrote: (03-15-2024, 06:31 PM) -- Thank you for reporting, but how to reproduce? What is `'87_65` and why is it used? -- thank you for anwering. Actually the problem came from the database t...
359 Views
2 Replies
03-19-2024, 09:20 AM
ramonpuig
    Thread: POTENTIAL BUG querybuilder-save not working as intented
Post: POTENTIAL BUG querybuilder-save not working as int...

Hi i have observed that with version 4.4.6 the save() method does not insert a row even if the primarykey value is not found in the row . I believe there might be a bug . The save operation returns...
359 Views
2 Replies
03-15-2024, 06:32 AM
ramonpuig
    Thread: Updating from 4.2.1 to 4.4.6 session bug
Post: Updating from 4.2.1 to 4.4.6 session bug

Hello  I updated from 4.2.1 to 4.4.6 using composer. I followed general tips after i had issues with kint renderer and index.php. There are no particular instructions in here (https://codeigniter.com/...
331 Views
2 Replies
03-12-2024, 04:56 AM
ramonpuig
    Thread: updateBatch(): Argument #2 ($index) must be of type string
Post: RE: updateBatch(): Argument #2 ($index) must be of...

kenjis Wrote: (03-11-2024, 05:40 PM) -- Upgrade CI4. Quote: -- Since v4.3.0, the second parameter $index of updateBatch() has changed to $constraints. It now accepts types array, string, or RawSq...
367 Views
3 Replies
03-12-2024, 04:34 AM
ramonpuig
    Thread: updateBatch(): Argument #2 ($index) must be of type string
Post: updateBatch(): Argument #2 ($index) must be of typ...

Hello! I am getting this exception : CodeIgniter\Database\BaseBuilder::updateBatch(): Argument #2 ($index) must be of type ?string, array given My code is this , its in a function inside my mod...
367 Views
3 Replies
03-11-2024, 01:56 PM
ramonpuig
    Thread: is_unique throws error on not found field
Post: RE: is_unique throws error on not found field

I found the issue, it was a silly typo on the table name I was using users.username instead of Users.username. But the error thrown was not helpful to find it , but it kind of gave the clue. Coding in...
184 Views
1 Replies
02-23-2024, 11:43 AM
ramonpuig
    Thread: is_unique throws error on not found field
Post: is_unique throws error on not found field

Hi! i am trying to validate a form field , concretely the username with is_unique. My controller has this code: PHP Code: -- if ($this->request->getMethod() === 'post') { $this->validati...
184 Views
1 Replies
02-23-2024, 10:18 AM
ramonpuig
    Thread: Model error with builder first()
Post: RE: Model error with builder first()

kenjis Wrote: (12-21-2022, 10:47 PM) -- Remove your constructor. -- thank you for this! i was not conscious to see that i too was having the same problem because i was overriding the parent constru...
2,575 Views
5 Replies
01-24-2024, 02:55 AM
ramonpuig

Theme © iAndrew 2016 - Forum software by © MyBB