Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Why - You must set the database table to be used with your query.
Post: RE: Why - You must set the database table to be us...

Is it a MUST to define all these "protected ...." settings, i dont wont to work with the  built-in CRUD methods, so i guess that i dont need to define it!? I have figure out that the problem comes...
225 Views
2 Replies
01-05-2025, 06:17 AM
4usol
    Thread: Why - You must set the database table to be used with your query.
Post: Why - You must set the database table to be used w...

Hi, I wondering about getting this error " You must set the database table to be used with your query." The marked line is this  Code: -- $var=$this->MyModel ->my_function($vars,$id); -- I ...
225 Views
2 Replies
01-05-2025, 12:22 AM
4usol
    Thread: Set username procedurally in SHIELD
Post: RE: Set username procedurally in SHIELD

may by events?  https://shield.codeigniter.com/references/events/
210 Views
3 Replies
01-04-2025, 11:59 PM
4usol
    Thread: shield - error "is null. You should not use the incomplete User object"
Post: shield - error "is null. You should not use the in...

Hi, i recieved this error "CodeIgniter\Shield\Exceptions\LogicException "$user->id" is null. You should not use the incomplete User object." I dont understand the message - the entered username is...
118 Views
0 Replies
01-04-2025, 05:13 AM
4usol
    Thread: DEPRECATED on construct?
Post: RE: DEPRECATED on construct?

thats it - thank you!
194 Views
2 Replies
01-04-2025, 04:57 AM
4usol
    Thread: DEPRECATED on construct?
Post: DEPRECATED on construct?

I see the following infos in the debug-toolbar "[DEPRECATED] Creation of dynamic property App\Libraries\MyLib::$ModulesModel is deprecated in APPPATH/Libraries/MyLib.php on line 128. 1 APPPATH/Cont...
194 Views
2 Replies
01-04-2025, 12:22 AM
4usol
    Thread: redirect not working
Post: RE: redirect not working

InsiteFX Wrote: (01-03-2025, 11:25 PM) -- For one routes with (:any) need to be the last routes in the route list or they will not work. -- Thats a interesting info, it it for a "any" rout for the sa...
199 Views
2 Replies
01-03-2025, 11:37 PM
4usol
    Thread: redirect not working
Post: redirect not working

Hi i try to run a function from a library wich returns a redirect. It failed, the redirect not fired, i dont know what i do wrong. Here is the situation in basecontroller i add my library on initCo...
199 Views
2 Replies
01-03-2025, 12:23 PM
4usol
    Thread: Basecontroller load helpers / library depend on loggedin
Post: RE: Basecontroller load helpers / library depend o...

Great thats explain a lot, i see "parent::__construct();" what does it effects? How does it works? Is there a way to make a function automatically runs to beginneing of each controller - without co...
551 Views
6 Replies
01-03-2025, 02:28 AM
4usol
    Thread: Basecontroller load helpers / library depend on loggedin
Post: RE: Basecontroller load helpers / library depend o...

one gerneral question. If i put something in the base_controller, will this loaded on every single request again and again or only one-time an stored in session or mem ...?
551 Views
6 Replies
01-03-2025, 01:42 AM
4usol
    Thread: Basecontroller load helpers / library depend on loggedin
Post: RE: Basecontroller load helpers / library depend o...

in my Autoload if've: 'public $helpers = ['auth', 'setting','error'];' already defined. it seems this works only inside a function. What i want to do is to setup dynamically the helpers on top o...
551 Views
6 Replies
01-03-2025, 12:13 AM
4usol
    Thread: Route wont work
Post: RE: Route wont work

Hi, i've this service('auth')->routes($routes, ['except' => ['login', 'register','change-password']]); $routes->get('login', '\App\Controllers\Shield\LoginController::loginView'); ...
613 Views
11 Replies
01-02-2025, 11:06 AM
4usol
    Thread: Route wont work
Post: RE: Route wont work

After enable the autoroute, my shield login wont work corretly. For example the routes for "auth/a/handle" etc. runs into a 404-error. May i have to go back to the beginning to create a kind of dyna...
613 Views
11 Replies
01-02-2025, 10:22 AM
4usol
    Thread: Check a second field on shield login from another table
Post: Check a second field on shield login from another ...

Hi, i need to add a new field into the login authentification of shield. I edit the login page and setup the routes to the own file. It works. Here we have a new field named "mynewfield" ...
110 Views
0 Replies
01-02-2025, 09:58 AM
4usol
    Thread: Route wont work
Post: RE: Route wont work

Great, but now i've decide to use the filter function not and add a own function to every page. Now i need a bit help to create a dynamic routes for the logged-in area. I cannot define all possibl...
613 Views
11 Replies
01-02-2025, 08:40 AM
4usol
    Thread: Route wont work
Post: RE: Route wont work

Ok, but is there still a way to change the way it works? At the moment all pages will "protected" i've not defined in the "except" Array. Much easier for me it will be if i - define a subfolder...
613 Views
11 Replies
01-02-2025, 08:18 AM
4usol
    Thread: Route wont work
Post: RE: Route wont work

thanks i've update my code above, the problems seems to comes from the filter-config. May you have a look at this?
613 Views
11 Replies
01-02-2025, 02:47 AM
4usol
    Thread: Route wont work
Post: Route wont work

Hi, i try to run a simple redirection but i failed. Code: -- redirect('access_denied/index/myval'); -- it should rout to the controller in my base-folder "access_denied" to the funtion "index...
613 Views
11 Replies
01-02-2025, 01:16 AM
4usol
    Thread: Basecontroller load helpers / library depend on loggedin
Post: Basecontroller load helpers / library depend on lo...

Hi, i want to load different helper in case of a user is logged in (shield) or not. For this i try to do it like this in my basecontroller: Code: -- if( auth()->loggedIn() )         // Load...
551 Views
6 Replies
12-29-2024, 09:47 PM
4usol
    Thread: Load model in helper
Post: RE: Load model in helper

@captain-sensible Thank for your detailed code, it makes something clear for me. But let me ask again: Is there any way to setup a global db-connection, to avoid, setup the db connection in each mod...
347 Views
3 Replies
12-27-2024, 09:53 AM
4usol

Theme © iAndrew 2016 - Forum software by © MyBB