Welcome Guest, Not a member yet? Register   Sign In
Search Results
    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($direction, array('ASC', '...
4,925 Views
7 Replies
11-06-2020, 03:18 AM
vincent78
    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, $direction = '', $escap...
4,925 Views
7 Replies
11-05-2020, 03:54 AM
vincent78
    Thread: Artefact
Post: RE: Artefact

Version 1.3.13 released GitHub: https://github.com/vmoulin78/concorde (https://github.com/vmoulin78/concorde)
45,188 Views
31 Replies
07-13-2020, 08:15 AM
vincent78
    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: Us...
2,757 Views
5 Replies
06-26-2020, 09:15 AM
vincent78
    Thread: Temp data that must be destroyed at end of lifecycle
Post: RE: Temp data that must be destroyed at end of lif...

CI3 Vincent
2,757 Views
5 Replies
06-26-2020, 06:04 AM
vincent78
    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. H...
2,757 Views
5 Replies
06-26-2020, 04:49 AM
vincent78
    Thread: Artefact
Post: RE: Artefact

Version 1.3.12 released GitHub: https://github.com/vmoulin78/concorde (https://github.com/vmoulin78/concorde)
45,188 Views
31 Replies
06-13-2020, 07:30 AM
vincent78
    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'))) {         $this->session...
2,425 Views
2 Replies
05-02-2020, 01:50 AM
vincent78
    Thread: Database Query result frustration
Post: RE: Database Query result frustration

stlake2011 Wrote: (04-12-2020, 08:48 AM) -- 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: ...
1,877 Views
1 Replies
04-12-2020, 02:43 PM
vincent78
    Thread: New Layout/Template Library
Post: RE: New Layout/Template Library

Nop, only CI3
32,864 Views
16 Replies
03-17-2020, 10:53 AM
vincent78
    Thread: Change date format
Post: RE: Change date format

I've created a bunch of DateTime classes: https://github.com/vmoulin78/concorde/tree/master/system/utils/datetime (https://github.com/vmoulin78/concorde/tree/master/system/utils/datetime) and to u...
4,306 Views
3 Replies
03-05-2020, 10:07 AM
vincent78
    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
12,194 Views
11 Replies
02-18-2020, 12:21 AM
vincent78
    Thread: Developer Needed
Post: RE: Developer Needed

Hello, Is it CI3 or CI4 ? Vincent
12,194 Views
11 Replies
02-17-2020, 01:59 PM
vincent78
    Thread: Artefact
Post: RE: Artefact

Version 1.3.11 released GitHub: https://github.com/vmoulin78/concorde (https://github.com/vmoulin78/concorde)
45,188 Views
31 Replies
02-17-2020, 10:01 AM
vincent78
    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
1,427 Views
1 Replies
02-14-2020, 12:01 AM
vincent78
    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 = property.id and liked_proper...
6,104 Views
8 Replies
01-22-2020, 09:59 AM
vincent78
    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
145,772 Views
98 Replies
01-16-2020, 01:23 AM
vincent78
    Thread: Artefact
Post: RE: Artefact

Version 1.3.10 released You can now organize your configuration items with sections: https://www.concorde-project.org/Documentation/concorde_concepts#configuration_management (https://www.concorde-...
45,188 Views
31 Replies
01-12-2020, 06:22 AM
vincent78
    Thread: Artefact
Post: RE: Artefact

Version 1.3.8 released GitHub: https://github.com/vmoulin78/concorde (https://github.com/vmoulin78/concorde)
45,188 Views
31 Replies
01-04-2020, 11:57 AM
vincent78
    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 updat...
5,618 Views
3 Replies
01-04-2020, 05:13 AM
vincent78

Theme © iAndrew 2016 - Forum software by © MyBB