Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: CI do not have model to model relationships as like Yii. Plz implement if possible.
Post: RE: CI do not have model to model relationships as...

This thread may have some helpful answers: https://forum.codeigniter.com/thread-67594.html
5,000 Views
3 Replies
12-21-2017, 04:20 AM
EpicKris
    Thread: About Code Style
Post: RE: About Code Style

kilishan Wrote: (08-11-2017, 11:09 AM) -- I've attached my current one here. I don't know that covers all of it, but should cover most of it. -- Could we make an exception for this in source contro...
8,043 Views
5 Replies
08-14-2017, 12:13 PM
EpicKris
    Thread: Improvement to url helper's url_title() method
Post: RE: Improvement to url helper's url_title() method

krystian2160 Wrote: (06-27-2017, 06:18 AM) -- url_title() Returns: URL-formatted string Not exactly. Because it allows polish signs. url_title('śśś ććć żżż', '-', TRUE); produces ś...
3,191 Views
1 Replies
06-27-2017, 06:33 AM
EpicKris
    Thread: Models & Relational Tables
Post: RE: Models & Relational Tables

kilishan Wrote: (03-13-2017, 01:11 PM) -- While it's not 100% pretty, I'll add new methods to the model for each situation, something like: Code: -- class Booking extends Model {    public f...
11,059 Views
4 Replies
03-13-2017, 02:35 PM
EpicKris
    Thread: Models & Relational Tables
Post: Models & Relational Tables

I have 3 database tables: Code: -- CREATE TABLE booking (    booking_id INT(9) unsigned NOT NULL AUTO_INCREMENT,    deleted TINYINT(1) DEFAULT '0' NOT NULL,    created_date_time DATETIME NOT NULL,   ...
11,059 Views
4 Replies
03-13-2017, 02:39 AM
EpicKris
    Thread: CodeIgniter Data Mapper / Domain Objects
Post: CodeIgniter Data Mapper / Domain Objects

It would be useful to have a data mapper for domain objects. Database Example: Code: -- CREATE TABLE user (    user_id INT(9) unsigned PRIMARY KEY NOT NULL AUTO_INCREMENT,    first_name VARCHA...
4,638 Views
1 Replies
03-04-2017, 04:06 PM
EpicKris
    Thread: On Update Database Forge Fields
Post: RE: On Update Database Forge Fields

kilishan Wrote: (01-01-2017, 08:46 PM) -- That's an interesting feature request. I'd have to see how it scales across the different platforms that we plan to support to see how feasible it is, though...
4,376 Views
2 Replies
01-02-2017, 04:02 AM
EpicKris
    Thread: On Update Database Forge Fields
Post: On Update Database Forge Fields

Is it possible to specify the 'on update' section of a new field like the below snippet? Or this something that can be considered for CI4? I know I can create the field manually, but it looks a lot...
4,376 Views
2 Replies
01-01-2017, 02:22 PM
EpicKris
    Thread: ecommerce features
Post: RE: ecommerce features

davy_yg Wrote: (05-13-2016, 01:58 PM) -- I would suggest that this next generation of CI would improve it's Ecommerce and Shopping Cart Library and help. Thanks in advance. -- The shopping cart ...
22,093 Views
16 Replies
05-13-2016, 02:20 PM
EpicKris
    Thread: Database Date & Time Format
Post: RE: Database Date & Time Format

mwhitney Wrote: (02-11-2016, 01:59 PM) -- The problem is that the standard is flexible enough to allow an ecosystem in which it's almost impossible to write cross-platform SQL. Even if you could use ...
28,931 Views
18 Replies
02-11-2016, 02:10 PM
EpicKris
    Thread: Database Date & Time Format
Post: RE: Database Date & Time Format

Narf Wrote: (02-09-2016, 01:04 PM) -- Here's the problem - date handling seems trivial, but is rather complex instead. We, being humans, are used to handling dates, but building an algorithm to handl...
28,931 Views
18 Replies
02-09-2016, 01:32 PM
EpicKris
    Thread: Database Date & Time Format
Post: RE: Database Date & Time Format

mwhitney Wrote: (02-09-2016, 07:16 AM) -- EpicKris Wrote: (02-09-2016, 03:30 AM) -- Using `$this->db->platform()` seems like the best idea, but given different drivers (such as MSSQL), prefer differ...
28,931 Views
18 Replies
02-09-2016, 12:26 PM
EpicKris
    Thread: Database Date & Time Format
Post: RE: Database Date & Time Format

mwhitney Wrote: (02-08-2016, 10:06 AM) -- I would recommend adding a method to your project's base model to set dates to the desired format(s), then set the format based on the environment (and/or th...
28,931 Views
18 Replies
02-09-2016, 03:30 AM
EpicKris
    Thread: Database Date & Time Format
Post: RE: Database Date & Time Format

Diederik Wrote: (02-04-2016, 08:42 AM) -- Why not store the date/times values as an epoch value? That way you store the datetime as an integer so it is the same in all databases. In MySQL: SELECT ...
28,931 Views
18 Replies
02-04-2016, 12:16 PM
EpicKris
    Thread: Database Date & Time Format
Post: RE: Database Date & Time Format

donpwinston Wrote: (02-01-2016, 07:54 PM) -- EpicKris Wrote: (02-01-2016, 03:03 PM) -- donpwinston Wrote: (02-01-2016, 02:59 PM) -- You have to use a function to format the date to what you desire,...
28,931 Views
18 Replies
02-04-2016, 05:14 AM
EpicKris
    Thread: Database Date & Time Format
Post: RE: Database Date & Time Format

donpwinston Wrote: (02-01-2016, 02:59 PM) -- You have to use a function to format the date to what you desire, e.g. TO_CHAR, TO_DATE (Informix, DB2, and Oracle) -- Could you give an example of what...
28,931 Views
18 Replies
02-01-2016, 03:03 PM
EpicKris
    Thread: Database Date & Time Format
Post: Database Date & Time Format

The accepted date and time formats accepted by different databases differs, how can I get the correct date and time format from the database driver that I'm currently using?
28,931 Views
18 Replies
02-01-2016, 02:11 PM
EpicKris
    Thread: CodeIgniter in Subdirectories Using .htaccess
Post: CodeIgniter in Subdirectories Using .htaccess

Hello! I have a CodeIgniter installation which I want to 'duplicate' into 2 subdirectories so example.com, example.com/subdirectory1, and example.com/subdirectory2 all use the same CodeIgniter inst...
7,873 Views
0 Replies
12-05-2014, 04:15 PM
EpicKris

Theme © iAndrew 2016 - Forum software by © MyBB