Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: order_by() how to use NULLS LAST in active records
Post: RE: order_by() how to use NULLS LAST in active rec...
A better way to code it is:
in DB_query_builder.php:
1) create a function:
PHP Code:protected function _format_orderby_direction($direction){ return in_array... |
|
vincent78 |
General Help
|
6 |
761 |
11-06-2020, 03:18 AM |
|
|
Thread: order_by() how to use NULLS LAST in active records
Post: RE: order_by() how to use NULLS LAST in active rec...
Try:
$this->db->order_by('b.following', 'desc nulls last');
with the modification:
in the file ./system/database/DB_query_builder.php -> public function order_by($orderby, $direc... |
|
vincent78 |
General Help
|
6 |
761 |
11-05-2020, 03:54 AM |
|
|
Thread: Artefact
Post: RE: Artefact
Version 1.3.13 released
GitHub: https://github.com/vmoulin78/concorde |
|
vincent78 |
Addins
|
31 |
21,493 |
07-13-2020, 08:15 AM |
|
|
Thread: Temp data that must be destroyed at end of lifecycle
Post: RE: Temp data that must be destroyed at end of lif...
@dave friend: Thanks for your answer
I have an abstract class User
Maybe, the best solution is to have a public static property in this class : $current_user
and then, I can access like this:
Use... |
|
vincent78 |
General Help
|
5 |
527 |
06-26-2020, 09:15 AM |
|
|
Thread: Temp data that must be destroyed at end of lifecycle
Post: RE: Temp data that must be destroyed at end of lif...
|
vincent78 |
General Help
|
5 |
527 |
06-26-2020, 06:04 AM |
|
|
Thread: Temp data that must be destroyed at end of lifecycle
Post: Temp data that must be destroyed at end of lifecyc...
Hello everybody,
I want to create some data (for example, the object that represents the current user) that must be deleted at the end of the HTTP request, i.e. at the end of the CI lifecycle.
How c... |
|
vincent78 |
General Help
|
5 |
527 |
06-26-2020, 04:49 AM |
|
|
Thread: Artefact
Post: RE: Artefact
Version 1.3.12 released
GitHub: https://github.com/vmoulin78/concorde |
|
vincent78 |
Addins
|
31 |
21,493 |
06-13-2020, 07:30 AM |
|
|
Thread: returning redirect from parent's function.
Post: RE: returning redirect from parent's function.
Hello,
The 'exit()' call after the 'return' will never be executed.
PHP Code:protected function isLoggedIn(){ if (is_null($this->session->get('logged_in')))&nbs... |
|
vincent78 |
CodeIgniter 4 Support
|
2 |
791 |
05-02-2020, 01:50 AM |
|
|
Thread: Database Query result frustration
Post: RE: Database Query result frustration
(04-12-2020, 08:48 AM)stlake2011 Wrote: Also one thing that puzzles me though is why is_array() is returning false on the result array when its clearly true?
Hello,
Just put:
PHP Code:var_dump($... |
|
vincent78 |
CodeIgniter 4 Support
|
1 |
684 |
04-12-2020, 02:43 PM |
|
|
Thread: New Layout/Template Library
Post: RE: New Layout/Template Library
|
vincent78 |
Addins
|
14 |
18,639 |
03-17-2020, 10:53 AM |
|
|
Thread: Change date format
Post: RE: Change date format
I've created a bunch of DateTime classes:
https://github.com/vmoulin78/concorde/tr...s/datetime
and to use it:
PHP Code:$dt = new Mysql_datetime('2020-03-24');echo $dt->... |
|
vincent78 |
General Help
|
3 |
1,168 |
03-05-2020, 10:07 AM |
|
|
Thread: Developer Needed
Post: RE: Developer Needed
in ./system/CodeIgniter.php or ./system/core/CodeIgniter.php, you have:
const CI_VERSION = 'X.X.X';
Vincent |
|
vincent78 |
Jobs
|
11 |
4,846 |
02-18-2020, 12:21 AM |
|
|
Thread: Developer Needed
Post: RE: Developer Needed
Hello,
Is it CI3 or CI4 ?
Vincent |
|
vincent78 |
Jobs
|
11 |
4,846 |
02-17-2020, 01:59 PM |
|
|
Thread: Artefact
Post: RE: Artefact
Version 1.3.11 released
GitHub: https://github.com/vmoulin78/concorde |
|
vincent78 |
Addins
|
31 |
21,493 |
02-17-2020, 10:01 AM |
|
|
Thread: config
Post: RE: config
Hello marcodesouza,
You have to search for "http://" in the whole project and replace by "https://" the results that have to be.
Vincent |
|
vincent78 |
General Help
|
1 |
610 |
02-14-2020, 12:01 AM |
|
|
Thread: Help with RIGHT JOIN conversion?
Post: RE: Help with RIGHT JOIN conversion?
$this->db->select('property.id , property.lat, liked_property.FK_Property');
$this->db->from('property');
$this->db->join('liked_property', 'liked_property.FK_Property = ... |
|
vincent78 |
General Help
|
8 |
2,255 |
01-22-2020, 09:59 AM |
|
|
Thread: Important News about Jim Parry and the Project
Post: RE: Important News about Jim Parry and the Project
RIP Jim
Thank you for all you've done for CodeIgniter |
|
vincent78 |
News & Discussion
|
97 |
73,791 |
01-16-2020, 01:23 AM |
|
|
Thread: Artefact
Post: RE: Artefact
Version 1.3.10 released
You can now organize your configuration items with sections: https://www.concorde-project.org/Documen...management
GitHub: https://github.com/vmoulin78/concorde |
|
vincent78 |
Addins
|
31 |
21,493 |
01-12-2020, 06:22 AM |
|
|
Thread: Artefact
Post: RE: Artefact
Version 1.3.8 released
GitHub: https://github.com/vmoulin78/concorde |
|
vincent78 |
Addins
|
31 |
21,493 |
01-04-2020, 11:57 AM |
|
|
Thread: Call to undefined method Builder::affectedRows()
Post: RE: Call to undefined method Builder::affectedRows...
You're right !
An other solution is :
the method update() should return FALSE if failure and the number of affected rows if success
The signature of the method would be :
public function update($... |
|
vincent78 |
CodeIgniter 4 Support
|
3 |
2,527 |
01-04-2020, 05:13 AM |