Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Updating Model with a unique field?
Post: RE: Updating Model with a unique field?

Hi Thanks for the reply. I got it sorted, just checked if the field had changed in the controller, and updated the fields accordingly. PHP Code: --
1,691 Views
2 Replies
05-05-2019, 10:12 AM
MeltedRolo
    Thread: Updating Model with a unique field?
Post: Updating Model with a unique field?

Hi guys Just working on an update in the model controller and have hit a snag. I have setup one of the fields as unique, when I try an update, it always fails, unless that particular field has chang...
1,691 Views
2 Replies
05-04-2019, 05:45 PM
MeltedRolo
    Thread: Admin App
Post: RE: Admin App

Hi If your going to make the admin backend in codeigniter then thats what the modules folder is for if I'm not mistaken, use the app folder for the frontend for normal users, then create a /modules/a...
2,725 Views
5 Replies
05-01-2019, 01:56 PM
MeltedRolo
    Thread: Database Timestamp ?
Post: RE: Database Timestamp ?

Hi again. Is my thinking correct on this. The default is datetime, so my database columns will need to be VARCHAR(25). If I choose INT, then my database columns will need to be INT(14). If...
2,556 Views
4 Replies
04-29-2019, 03:40 PM
MeltedRolo
    Thread: Database Timestamp ?
Post: RE: Database Timestamp ?

Hi Thanks for the reply. I would really rather use the time from PHP, and was wondering which of the options above would be ruled out based on that decision, as I have no idea how the database m...
2,556 Views
4 Replies
04-29-2019, 02:08 PM
MeltedRolo
    Thread: Database Timestamp ?
Post: Database Timestamp ?

Hi guys Quick question regarding database automatic timestamps. From the User Guide ... Quote: -- $useTimestamps This boolean value determines whether the current date is automaticall...
2,556 Views
4 Replies
04-29-2019, 10:16 AM
MeltedRolo
    Thread: [SOLVED] Migrations in modules?
Post: RE: Migrations in modules?

Sorted. So my original question was ... Quote: -- Now my question is, in the migration file, what namespace am I supposed to be using? -- And the answer is ... PHP Code: --
3,085 Views
7 Replies
04-28-2019, 01:55 PM
MeltedRolo
    Thread: [SOLVED] Migrations in modules?
Post: RE: Migrations in modules?

Hi again. So I managed to get it do something, unfortunately it's still not working. When I run the migrate all command I get the following ... Code: -- The migration class "Standard\Auth\Databas...
3,085 Views
7 Replies
04-28-2019, 10:44 AM
MeltedRolo
    Thread: [SOLVED] Migrations in modules?
Post: RE: Migrations in modules?

Ahh I see. Didn't realise that, thanks very much.
3,085 Views
7 Replies
04-28-2019, 05:04 AM
MeltedRolo
    Thread: [SOLVED] Migrations in modules?
Post: RE: Migrations in modules?

Hi Thanks for the response. My Directory layout is as follows ... App/ ... Standard/Auth/Database/Migrations/ System/ ... etc My migration file in the above migration dir is 201904271...
3,085 Views
7 Replies
04-27-2019, 03:28 PM
MeltedRolo
    Thread: [SOLVED] Migrations in modules?
Post: [SOLVED] Migrations in modules?

Hi guys. Just trying to get a module migration working and seem to be having a bit of bother. I have done exactly what is described in the following article ... Modules_in_CodeIgniter_4 (http...
3,085 Views
7 Replies
04-27-2019, 01:33 PM
MeltedRolo
    Thread: Database Migration confusion
Post: RE: Database Migration confusion

These methods that will be added, will they just be concerning the foreign keys? or more than this? Thanks again.
5,124 Views
7 Replies
04-25-2019, 08:54 AM
MeltedRolo
    Thread: Database Migration confusion
Post: RE: Database Migration confusion

Thanks for the replies guys, very helpfull.
5,124 Views
7 Replies
04-25-2019, 06:30 AM
MeltedRolo
    Thread: Database Migration confusion
Post: RE: Database Migration confusion

Ok Let me explain my confusion further. Say I design and release an app, that makes use of many tables in a database. I,m assuming for each table, there will be a seperate migration with an up a...
5,124 Views
7 Replies
04-24-2019, 09:57 AM
MeltedRolo
    Thread: Database Migration confusion
Post: Database Migration confusion

Hi guys Currently trying to wrap my head around database migrations, and I guess I just dont get how they are supposed to be used. I can see that you can create database tables, and also drop th...
5,124 Views
7 Replies
04-24-2019, 06:33 AM
MeltedRolo

Theme © iAndrew 2016 - Forum software by © MyBB