Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Redirect inside Constructor NOT WORKING
Post: RE: Redirect inside Constructor NOT WORKING

Hi, I would like to know how to redirect in constructor too for "code cleaniness" as OP said. Thanks for your help.
24,665 Views
13 Replies
12-02-2019, 09:55 AM
RobT
    Thread: Hot to get ID of record inserted using model "save()" method
Post: RE: Hot to get ID of record inserted using model "...

MGatner Wrote: (11-20-2019, 09:53 AM) -- Oops, just read your final comment! You should be able to access $model->db because the model class has a magic __get() method to pass through. -- Unfortuna...
6,353 Views
3 Replies
11-20-2019, 10:11 AM
RobT
    Thread: Hot to get ID of record inserted using model "save()" method
Post: Hot to get ID of record inserted using model "save...

Hi guys, I need to get (automatically generated) ID of record inserted in db using model "save()" method. PHP Code: -- $product = new Product(); if ($product->save($this->request->getPost())) ...
6,353 Views
3 Replies
11-20-2019, 08:58 AM
RobT
    Thread: Call function in model before validation
Post: Call function in model before validation

Hi guys, I have a model with the following validation rule. PHP Code: -- 'slug'  => 'is_unique[products.slug,ID,{ID}]|alpha_dash' -- I would like to automatically generate a slug when none is p...
1,558 Views
1 Replies
11-19-2019, 10:26 AM
RobT
    Thread: Using Model's CRUD methods in advanced queries
Post: RE: Using Model's CRUD methods in advanced queries

Thank you, @MGatner.
4,172 Views
5 Replies
11-04-2019, 01:29 AM
RobT
    Thread: Problem with Model()->find() and Model()->findAll()
Post: RE: Problem with Model()->find() and Model()->find...

Fixed it, sorry.
27,974 Views
14 Replies
10-31-2019, 04:08 AM
RobT
    Thread: Using Model's CRUD methods in advanced queries
Post: RE: Using Model's CRUD methods in advanced queries

Thanks for your reply, @edica and @vincent78.
4,172 Views
5 Replies
10-30-2019, 08:35 AM
RobT
    Thread: Using Model's CRUD methods in advanced queries
Post: Using Model's CRUD methods in advanced queries

Hi all, I have created 3 tables in my database. Code: -- Products (ID, name) Categories (ID, name) Products_Categories (productID, categoryID) -- This last table is used to link one or more c...
4,172 Views
5 Replies
10-30-2019, 07:13 AM
RobT
    Thread: How can I redirect in Controller?
Post: RE: How can I redirect in Controller?

I have the same problem on CI v4.0.0rc3. My .env file is configured as follow. Code: -- app.baseURL = 'http://localhost/path/' -- My controller calls the following function. PHP Code: -- retu...
45,354 Views
6 Replies
10-30-2019, 04:54 AM
RobT
    Thread: Problem with Model()->find() and Model()->findAll()
Post: RE: Problem with Model()->find() and Model()->find...

workoverflow Wrote: (10-06-2019, 12:03 PM) -- Hi! I have faced with problem with Model()->find() and Model()->findAll(). If i call ones of this methods i get null. It's doesn't work after update to 4...
27,974 Views
14 Replies
10-30-2019, 02:32 AM
RobT

Theme © iAndrew 2016 - Forum software by © MyBB