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', '...
1,086 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...
1,086 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)
24,519 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...
664 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
664 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...
664 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)
24,519 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...
907 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: ...
845 Views
1 Replies
04-12-2020, 02:43 PM
vincent78
    Thread: New Layout/Template Library
Post: RE: New Layout/Template Library

Nop, only CI3
20,055 Views
14 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...
1,557 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
5,631 Views
11 Replies
02-18-2020, 12:21 AM
vincent78
    Thread: Developer Needed
Post: RE: Developer Needed

Hello, Is it CI3 or CI4 ? Vincent
5,631 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)
24,519 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
680 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...
2,617 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
83,036 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-...
24,519 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)
24,519 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...
3,119 Views
3 Replies
01-04-2020, 05:13 AM
vincent78

Theme © iAndrew 2016 - Forum software by © MyBB