Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 24,628
» Latest member: totoonlineresmi
» Forum threads: 73,483
» Forum posts: 375,924

Full Statistics

Latest Threads
Class not found
Forum: General Help
6 hours ago
» Replies: 0   » Views: 35
CodeIgniter v4.1.2 releas...
Forum: News & Discussion
8 hours ago
» Replies: 11   » Views: 424
Databases: searching for ...
Forum: General Help
8 hours ago
» Replies: 10   » Views: 321
ci_session cookie rejecti...
Forum: CodeIgniter 4 Support
8 hours ago
» Replies: 7   » Views: 3,491
update(null,$data)
Forum: CodeIgniter 4 Support
8 hours ago
» Replies: 1   » Views: 48
get and post filtering fo...
Forum: CodeIgniter 4 Discussion
10 hours ago
» Replies: 5   » Views: 127
Swith to object oriented ...
Forum: General Help
10 hours ago
» Replies: 10   » Views: 585
The requested URL was not...
Forum: Addins
11 hours ago
» Replies: 0   » Views: 40
No sessions in testing en...
Forum: CodeIgniter 4 Support
11 hours ago
» Replies: 3   » Views: 41
Looking for CI developer ...
Forum: Jobs
11 hours ago
» Replies: 2   » Views: 88

 
  PHP 8.0.6 Released!
Posted by: InsiteFX - 05-07-2021, 08:56 PM - Forum: Lounge - Replies (1)

PHP 8.0.6 Released!
PHP 8.0.6. This release reverts a bug related to PDO_pgsql that was introduced in PHP 8.0.5.


  How to remove the first word From Mysql Table?
Posted by: litecoin90 - 05-07-2021, 06:39 AM - Forum: Best Practices - Replies (10)

Hello all codeigniters,

For example A table ('Items') have a column "Coupon_codes". which contains values -

Code:
Start
JkLkLKLLk65
Flashsale2021

I want to delete Start and make it.


Code:
JkLkLKLLk65
Flashsale2021


is that possible to do this using mysql query? How can i do that?


  has_cookie helper always return false?
Posted by: mylastof - 05-07-2021, 04:57 AM - Forum: CodeIgniter 4 Support - Replies (1)

I have done set_cookie() on another method,
but I want to check with has_cookie() in another method,
but always returns false.

Whereas if run on the same method, set_cookie()
then has_cookie(), the result is as expected.

the question is, how can has_cookie() be executed without the previous set_cookie()?


Thumbs Up Problem fixed and friendly reminder
Posted by: includebeer - 05-06-2021, 02:42 PM - Forum: News & Discussion - Replies (4)

Hello fellow developers!

I'm glad to announce that the Report and Rate buttons have been fixed! They have been broken for a very long time, but thanks to MGatner they are working again now! 

So I'm asking you to report any post you see that contains link to unrelated websites. The moderators can't see everything. I also saw some spammer trying to beat the system by editing old posts and insert links in them. Sometime in the quoted text, so it's not always obvious. So if you see somebody post a link not related to CodeIgniter, PHP or whatever the subject of the thread is, please report them! This is not the place to shop for sunglasses or Bitcoin!

You can now use the rate button to show appreciation when a user help you find a solution to your problem.

And finally, a friendly reminder when asking a question:

  • Before asking a question, search this forum and search on Google.
  • Don't just say "It's not working". Post the error message. If there's nothing on the screen, look in the log files.
  • Tell us what version of CodeIgniter and PHP you are using.
  • If you find the solution by yourself, don't just say "Nevermind, I found it". Please post your solution to help others with the same problem.
  • If you post some code, use the proper tags to format your message (use the php or code buttons)
Thank you, stay safe and happy coding!  Cool


  Stock Videos for your website (6 sites)
Posted by: php_rocs - 05-06-2021, 07:36 AM - Forum: Lounge - Replies (3)

https://dev.to/innocentcoder/6-website-t...ideos-5a4d


  PHP 7.4.19 Has Been Released!
Posted by: InsiteFX - 05-06-2021, 05:49 AM - Forum: Lounge - No Replies

PHP 7.4.19. Has been released.
This release reverts a bug related to PDO_pgsql that was introduced in PHP 7.4.18.


  DB Forge: possibility to change / set a primary key on a field of an existing table?
Posted by: Zeff - 05-06-2021, 05:16 AM - Forum: CodeIgniter 4 Support - Replies (1)

Hi all,

I was reading the user guide on the CI4 Database Forge class.
I want to set a primary key on an field of an (existing) table. 

The addPrimaryKey() should be use on fields that must be created, but is there a possibility to do so on an existing one (by mesans of modifyColumn() for example...)? 

Thanks in advance!


  Help with Mysql Query - Subindex_string + group_concat
Posted by: tektion - 05-05-2021, 05:15 PM - Forum: CodeIgniter 4 Support - Replies (9)

Hi guys, 

New to CI and having some trouble with a few more advanced SQL queries . 

I am trying to use substring_index together with group_concat in order to make an array where I have 2 results of each unique group . 

I have tried the following :


Code:
$Array = $MyModel
   ->where('Column3 !=', 0)
   ->where('SUBSTRING_INDEX(GROUP_CONCAT(GROUP)),',1)
   ->orderBy('date', 'DESC')
   ->groupBy('GROUP')
   ->limit(2)
   ->find();

Could someone kindly help me fixing my query syntax ? 

Thanks in advance !


Exclamation Check if my codeigniter 4 runs in multilingual mode.
Posted by: sdiri - 05-05-2021, 03:54 PM - Forum: CodeIgniter 4 Support - Replies (3)

Hi, How do I know if CI4 is running in multilingual mode?
in other words how to know if segment 1 of url presents the key of the language not another variable?
because the methode 

PHP Code:
$this->request->getLocale() 
always returns the a value ...
if no language key founded it return the default value of:
PHP Code:
$defaultLocale 
In this casenothing guarantees me that the returned value corresponds to a key of a languagecontroller or if the site works in multilungue mode or not.
I think even if I use 
PHP Code:
$this->request->getLocale() in_array( this-> request-> config-> supportedLocales)... 
that does not give a guarantee!

Please How to be sure of my mode?

Thank you all  


  CodeIgniter Wizard CRUD generator for the Mac Updated
Posted by: gosocial2 - 05-05-2021, 02:49 PM - Forum: CodeIgniter 4 Addins - Replies (4)

Some news which Mac users might like.

CodeIgniter Wizard, the CRUD code generator for Mac is now at version 1.4.1. 

The first time I had ever mentioned this application, it was already capable of detecting table prefixes and naming scaffolded models, entities and controllers accordingly, generating code for many-to-one relationships between entity models either automatically if foreign keys were defined in the underlying database, or manually by pointing and clicking a triplet of dropdown menus.

Since then some cool features have been added such as changing the order of fields/columns by drag-and-drop in the editor.

Unlike most code generators, CI Wizard does not rely on any custom heavy-weight library and crptic code that needs to be included in every created project.

In database-first development approach, you create MVC classes (including CodeIgniter entities) by reading existing database tables. What happens if you need to change the table columns, add or delete fields or change field types in MySQL, after you generated code? As of version 1.3.8, CodeIgniter Wizard can automatically detect those changes and adapt the previously generated code to the new table structure.

Several weeks ago, a new demonstration video was created demonstrating the creation of a CodeIgniter 4 web application reverse-engineering the famous Sakila sample movie database created by MySQL.dev:

[Video: https://www.youtube.com/watch?v=0CkBDMA5HYk&t=60s]

Opinions, comments and suggestions will be highly appreciated.

The application has its own dedicated website at https://ozar.net/products/codeigniterwizard



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