Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Accessing Controller with CRON
Post: RE: Accessing Controller with CRON

https://codeigniter4.github.io/userguide/cli/cli.html#cli-only-routing
2,715 Views
8 Replies
11-17-2021, 02:20 PM
Secux
    Thread: Undefined array key 1
Post: Undefined array key 1

SYSTEMPATH/View/Cell.php at line 167 PHP Code: -- 160             } 161 162             $params = explode($separator, $params); 163             unset($separator); 164 165             foreach ($para...
1,222 Views
0 Replies
11-17-2021, 02:13 PM
Secux
    Thread: dynamic input with jquery and insert to database
Post: dynamic input with jquery and insert to database

I have the following form PHP Code: --                               Name                 Level                 Action                                                           ...
613 Views
0 Replies
11-15-2021, 01:43 PM
Secux
    Thread: multiple domein/subdomein
Post: multiple domein/subdomein

How do I configure my app to work with both domain and subdomains (websites.com, sub.website.com)? base_url and CORS I only managed the sessions to configure
1,141 Views
1 Replies
11-14-2021, 05:25 AM
Secux
    Thread: How can i use form_radio and set_radio
Post: How can i use form_radio and set_radio

How can I use form_radio and set_radio together? my code is: PHP Code: -- form_radio(['name'=> 'customRadio','id'=> 'customRadio','value'=> '3','class'=> 'form-check-input']) -- how to add P...
447 Views
0 Replies
11-06-2021, 03:50 PM
Secux
    Thread: check for found results in controller
Post: check for found results in controller

How to check if there are results found with a model? PHP Code: -- $array = ['country_id' => $postData['country_id']]; $cities = $this->CitiesModel->where($array)->orderBy('id', 'asc')->findAll()...
701 Views
2 Replies
11-05-2021, 02:22 PM
Secux
    Thread: question about routes and filter
Post: question about routes and filter

is it possible to take a dynamic value from (:num) and use it in a filter? routes: PHP Code: -- $routes->group('(:num)', ['subdomain' => 'test1', 'filter' => 'filtertest:$1'], function ($routes) { -...
718 Views
1 Replies
10-27-2021, 02:36 PM
Secux
    Thread: problem with ContentSecurityPolicy
Post: problem with ContentSecurityPolicy

enabled 'public $ CSPEnabled = true;' and trying to adjust ContentSecurityPolicy.php ,but it doesn't work, I tried all possible options: https://website.com https://*.website.com *.website.com ...
1,095 Views
1 Replies
10-27-2021, 12:30 PM
Secux
    Thread: retrieving data from a database and re-retrieving from another database
Post: RE: retrieving data from a database and re-retriev...

php_rocs Wrote: (10-26-2021, 05:33 AM) -- @"Secux" , How where you able to solve your problem? -- I found this solution. I don't know how correct and optimized it is PHP Code: -- $list_bus...
1,669 Views
7 Replies
10-27-2021, 12:23 PM
Secux
    Thread: retrieving data from a database and re-retrieving from another database
Post: RE: retrieving data from a database and re-retriev...

nfaiz Wrote: (10-25-2021, 07:26 AM) -- Join table using SQL? -- I want to use a model only
1,669 Views
7 Replies
10-25-2021, 07:28 AM
Secux
    Thread: retrieving data from a database and re-retrieving from another database
Post: RE: retrieving data from a database and re-retriev...

can anyone give an idea how to do it?
1,669 Views
7 Replies
10-25-2021, 06:21 AM
Secux
    Thread: retrieving data from a database and re-retrieving from another database
Post: retrieving data from a database and re-retrieving ...

how to i make the following request correctly and optimized? PHP Code: -- $BusinessOwnership = $this->BusinessOwnership->where('userID', session()->get('id')); foreach($BusinessOwnership as $r...
1,669 Views
7 Replies
10-24-2021, 12:19 PM
Secux
    Thread: Get select for all controllers
Post: RE: Get select for all controllers

I gave the code as an example only :) that is, my code must be put in basecontrolles to work in all controllers?
1,659 Views
4 Replies
10-12-2021, 11:23 PM
Secux
    Thread: Get select for all controllers
Post: Get select for all controllers

where this select must be added to apply to all controllers PHP Code: -- $builder = $db->table('users'); $builder->select('title, content, date'); $builder->from('mytable'); $data[‘user’] = $buil...
1,659 Views
4 Replies
10-10-2021, 09:36 PM
Secux
    Thread: Help for alpha_numeric_punct
Post: Help for alpha_numeric_punct

I'm trying to add Cyrillic as well as a new line but it doesn't work PHP Code: -- /** * Alphanumeric, spaces, and a limited set of punctuation characters. * Accepted punctuation characters are...
761 Views
1 Replies
10-06-2021, 12:24 PM
Secux
    Thread: safely display html code- quilljs
Post: RE: safely display html code- quilljs

it is imported as html code and so it is saved in the database, when it selects it it produces html code but at the moment there is xss I don't know how to protect it
872 Views
2 Replies
10-04-2021, 04:08 AM
Secux
    Thread: safely display html code- quilljs
Post: safely display html code- quilljs

I use "quilljs" how to safely display html code entered via quilljs but at the same time to be protected by XSS  output data from a database PHP Code: -- --
872 Views
2 Replies
10-03-2021, 07:37 AM
Secux
    Thread: XMLHttpRequest error and isAjax not work
Post: RE: XMLHttpRequest error and isAjax not work

I tried to add a header but it doesn't work. there may be some special way to add a header in codeigniter 4? Help me
1,446 Views
3 Replies
09-03-2021, 12:54 AM
Secux
    Thread: XMLHttpRequest error and isAjax not work
Post: XMLHttpRequest error and isAjax not work

i am trying to make the following request with ajax but i get an error -  XMLHttpRequest cannot load https://api.domain.com/view?id=1&csrf_name=fbadd9981aa3c2850b03b8eb52aa75ca&_=1630524468477 due to...
1,446 Views
3 Replies
09-01-2021, 12:34 PM
Secux
    Thread: I have a problem with ajax and csrf - The action you requested is not allowed.
Post: I have a problem with ajax and csrf - The action y...

Hello, I have a problem with ajax and csrf. - this is my code: view: Code: -- $('#view').html(''); $.ajax({ url: "https://site.com/api/view", type: "POST", contentType: "application/json", hea...
4,110 Views
6 Replies
08-29-2021, 05:37 AM
Secux

Theme © iAndrew 2016 - Forum software by © MyBB