Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: URI Routing
Post: URI Routing

Hello, yesterday I wrote in a similar topic, but it was already lost and the information on this issue went in parts. Therefore, I still decided to create a new topic and collected all the information...
1,019 Views
0 Replies
04-14-2020, 04:21 AM
Nome
    Thread: Myth/Auth - Routing problem
Post: RE: Myth/Auth - Routing problem

includebeer Wrote: (04-13-2020, 07:08 AM) -- DId you add your module’s namespace in the Autoload file? -- in Autoload.php : PHP Code: -- public function __construct() { parent::__construct(...
13,730 Views
10 Replies
04-13-2020, 07:19 AM
Nome
    Thread: Myth/Auth - Routing problem
Post: RE: Myth/Auth - Routing problem

includebeer Wrote: (04-13-2020, 06:39 AM) -- I’m not sure if this is causing this, but you should set auto route to false if you are defining your own route. It is looking for User:add instead of Us...
13,730 Views
10 Replies
04-13-2020, 06:51 AM
Nome
    Thread: Myth/Auth - Routing problem
Post: RE: Myth/Auth - Routing problem

My problem is of a similar nature, so I did not begin to create a new topic. I still use modular code, it is very convenient. But now I am faced with an incomprehensible problem. I have a user mod...
13,730 Views
10 Replies
04-13-2020, 06:16 AM
Nome
    Thread: Model - no data to update
Post: RE: Model - no data to update

InsiteFX Wrote: (07-09-2019, 02:42 AM) -- If your using CodeIgniter's Model then you need to extend it into your own Model Class. -- What do you mean? Example?  I have my namespace and use CI Model...
14,207 Views
5 Replies
07-09-2019, 03:14 AM
Nome
    Thread: Model - no data to update
Post: RE: Model - no data to update

InsiteFX Wrote: (07-08-2019, 08:16 AM) -- Are you using CodeIgniter 4 Model or Query Builder? Not sure where you are getting this-> from -- Before i have: PHP Code: --  protected $table        ...
14,207 Views
5 Replies
07-08-2019, 01:37 PM
Nome
    Thread: Model - no data to update
Post: Model - no data to update

My model : PHP Code: -- public function updateTest($id, $stat, $title) {    $this->asArray()->where(['id' => 2])->protect(false)->update([      'stat' => $stat,      'title'=> $title]); } -- re...
14,207 Views
5 Replies
07-08-2019, 07:59 AM
Nome
    Thread: Model return id record
Post: Model return id record

What are the ways to return the id of the created record in the table? PHP Code: --   public function insertAny($title, $slug) {     $this->table('node')->protect(false)->place([       'title'    =>...
4,419 Views
2 Replies
06-30-2019, 07:08 AM
Nome
    Thread: Code Modules
Post: RE: Code Modules

So i understanding... 1. ex.com\app\Config\Autoload.php (in __construct) write any namespaces... (Don't change name of the 'CodeIgniter') PHP Code: -- $psr4 = ['Any' => ROOTPATH.'Anymodules']; ...
7,707 Views
8 Replies
06-27-2019, 01:24 AM
Nome
    Thread: Code Modules
Post: RE: Code Modules

InsiteFX Wrote: (06-25-2019, 04:33 AM) -- I have my Admin module setup like this and it works fine. PHP Code: -- // Autoload.php 'Insitefx\Admin'    => ROOTPATH.'Insitefx\Admin',   // Our Admin Mod...
7,707 Views
8 Replies
06-25-2019, 05:32 AM
Nome
    Thread: Code Modules
Post: RE: Code Modules

kilishan Wrote: (06-24-2019, 08:54 AM) -- What error are you receiving? Sounds like you need to set environment to development (https://codeigniter4.github.io/CodeIgniter4/general/environments.html...
7,707 Views
8 Replies
06-25-2019, 02:47 AM
Nome
    Thread: Code Modules
Post: Code Modules

Earlier, I already wrote about problems with module code (https://forum.codeigniter.com/thread-70755.html). And again, I experienced deja vu, what was before now does not work. I get an error at pag...
7,707 Views
8 Replies
06-24-2019, 08:31 AM
Nome
    Thread: Routes Configuration
Post: RE: Routes Configuration

dannywebdev Wrote: (09-11-2018, 09:20 PM) -- application/Config/Routes.php set true discoverLocal $routes->discoverLocal(true); -- This allows you to search for routes for the code modules......
3,478 Views
2 Replies
09-13-2018, 05:11 AM
Nome
    Thread: Form Data reset before submit
Post: RE: Form Data reset before submit

I agree, this is more true for CI3... In CI4 just specify the: PHP Code: -- use App\Config\Validation; ... if (!$this->validate([         'example' => ['label' => 'example', 'rules' => '...
3,230 Views
3 Replies
09-05-2018, 05:00 AM
Nome
    Thread: Routes Configuration
Post: Routes Configuration

What can be the cause of non-working paths by default. in my: ..\application\Config\Routes PHP Code: -- $routes->setDefaultNamespace('Modules\Test\Controllers'); // $psr4 in autoload 'Modules\Tes...
3,478 Views
2 Replies
09-05-2018, 03:53 AM
Nome
    Thread: No like in getResultArray
Post: RE: No like in getResultArray

John_Betong Wrote: (08-09-2018, 08:40 AM) -- Try this because it works for me: PHP Code: --  $db = \Config\Database::connect();  $tmp = $data['title'];    $sql = getResultArray(); -- Tha...
8,444 Views
8 Replies
08-09-2018, 11:54 AM
Nome
    Thread: No like in getResultArray
Post: RE: No like in getResultArray

John_Betong Wrote: (08-09-2018, 02:09 AM) -- Where what was the print_r(...); statement inserted? It looks as though the connection to the database failed. -- Oh sure... Code: -- Modules\Par...
8,444 Views
8 Replies
08-09-2018, 03:05 AM
Nome
    Thread: No like in getResultArray
Post: RE: No like in getResultArray

John_Betong Wrote: (08-08-2018, 11:18 PM) -- I would first start with the Class and check the return values to ensure that the script returns exactly what you expect then continue to the next variabl...
8,444 Views
8 Replies
08-09-2018, 01:58 AM
Nome
    Thread: No like in getResultArray
Post: No like in getResultArray

Hello, I previously used query builder $db->query("MY_QUERY"); Now decided to try the patterns method $builder->like(), in which I get something wrong... The error concerns the output function, but w...
8,444 Views
8 Replies
08-08-2018, 02:00 PM
Nome
    Thread: dropdown with multiple
Post: RE: dropdown with multiple

dave friend Wrote: (07-27-2018, 05:20 AM) -- The array syntax makes no difference and isn't the point. The point is the use of form_multiselect instead fo form_dropdown. -- No, I'm sorry I did not ...
5,997 Views
6 Replies
07-29-2018, 10:05 AM
Nome

Theme © iAndrew 2016 - Forum software by © MyBB