Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: CORS diference between 4.0.4 and 4.1.18
Post: CORS diference between 4.0.4 and 4.1.18

Hi, I have a cors filter in production API developed with the version 4.0.4 and works perfect; now, I clone the same repo in local envirorment and run composer install (with 4.1.18 CI version) and co...
672 Views
0 Replies
01-28-2022, 02:27 AM
aparedesv
    Thread: redirect()->to() doesn't work in controller __construct()
Post: RE: redirect()->to() doesn't work in controller __...

thanks MGatner, I create a filter... class AuthFilter implements FilterInterface { public function before(RequestInterface $request) { $session = session(); $auth_us...
2,683 Views
4 Replies
11-28-2019, 03:14 AM
aparedesv
    Thread: redirect()->to() doesn't work in controller __construct()
Post: RE: redirect()->to() doesn't work in controller __...

thanks! I try filters...
2,683 Views
4 Replies
11-27-2019, 09:57 AM
aparedesv
    Thread: redirect()->to() doesn't work in controller __construct()
Post: redirect()->to() doesn't work in controller __cons...

Hi, why redirect()->to() doesn't work in controller __construct()?? some options? I need to put the redirect()->to() in the method public function __construct()     {         helper('adm...
2,683 Views
4 Replies
11-27-2019, 04:40 AM
aparedesv
    Thread: validation if_exist
Post: RE: validation if_exist

Sorry, the correct rule for this case is "permit_empty"
2,117 Views
1 Replies
11-20-2019, 12:37 AM
aparedesv
    Thread: validation if_exist
Post: validation if_exist

Hi, this rule is correct? 'nom_anterior' => ['rules' => 'if_exist|min_length[2]|max_length[100]'], I get this when the field isn't value: The nom_anterior field must be at least 2 characters i...
2,117 Views
1 Replies
11-19-2019, 06:59 AM
aparedesv
    Thread: how load helper in a model?
Post: RE: how load helper in a model?

thanks! finally, I load the helper in controller: in model: protected $validationRules = [ 'nom' => ['rules' => 'required|min_length[2]|max_length[100]'], 'nom_anterior' => ['rules' ...
6,744 Views
6 Replies
11-18-2019, 04:23 AM
aparedesv
    Thread: how load helper in a model?
Post: how load helper in a model?

Hi, I need load a custom helper in a Model... It's possible? I need translate $validationsRules label Some idea? I think to load custom helper for get user lang and set label each valid...
6,744 Views
6 Replies
11-14-2019, 09:57 AM
aparedesv
    Thread: Unable to save the image.
Post: RE: Unable to save the image.

thank's a lot durairaj! a combination of each code work's! $image = \Config\Services::image(); $file = $this->request->getFile('imatge'); if($file->isValid()) { ...
3,759 Views
3 Replies
11-08-2019, 12:29 AM
aparedesv
    Thread: Unable to save the image.
Post: Unable to save the image.

Hi, the public/assets/img/equips/ have 777 permisions, but show a error: Unable to save the image. SYSTEMPATH/Images/Exceptions/ImageException.php at line 30 ->save(base_url().'assets/img/equips/'....
3,759 Views
3 Replies
11-07-2019, 09:34 AM
aparedesv
    Thread: validation
Post: RE: validation

after trying, $validation->setRule('nom', lang('Admin.nom', [], $idioma), 'required|min_length[2]|max_length[100]'); $validation->setRule('cognoms', lang('Admin.cognoms', [], $idioma), 'required|m...
2,780 Views
3 Replies
10-21-2019, 02:59 AM
aparedesv
    Thread: validation
Post: validation

Hi, in CI3, I use the form_validation library some this: $this->form_validation->set_rules('text_es', $this->lang->line('text').' '.$this->lang->line('castella'), 'min_length[2]'); $this->form...
2,780 Views
3 Replies
10-20-2019, 11:42 PM
aparedesv
    Thread: pagination getPrevious() & getNext
Post: pagination getPrevious() & getNext

Hi, I create a App/Views/Pagers/bootstrap_full.php file:                             >                                                            
1,281 Views
0 Replies
10-14-2019, 12:54 AM
aparedesv
    Thread: protected $DBGroup = 'ywl_data';
Post: RE: protected $DBGroup = 'ywl_data';

Uauhhhhhh!!! it works perfectly, thanks a lot!
2,261 Views
2 Replies
10-08-2019, 11:38 PM
aparedesv
    Thread: protected $DBGroup = 'ywl_data';
Post: protected $DBGroup = 'ywl_data';

Hi, I have some DBgroups declared in App/Config/Database: // localhost public $ywl_config = [ 'DSN'      => '', 'hostname' => 'localhost', 'username' => 'yachtworklist', 'password' => 'REDACTED', '...
2,261 Views
2 Replies
10-08-2019, 12:58 AM
aparedesv
    Thread: session_start() error
Post: RE: session_start() error

Hi, I solve the load library, but when I try to set a session with ($this->session-set('', '');) I get a new error Invalid serialization data for DateTime object#0 [internal function]: DateTime->_...
5,230 Views
6 Replies
10-07-2019, 12:51 AM
aparedesv
    Thread: session_start() error
Post: RE: session_start() error

Digital_Wolf Wrote: (10-02-2019, 05:05 AM) -- Here is the documentation for CI3: https://codeigniter.com/userguide3/libraries/sessions.html And this for CI4: https://codeigniter4.github.io/usergui...
5,230 Views
6 Replies
10-02-2019, 11:45 PM
aparedesv
    Thread: session_start() error
Post: RE: session_start() error

i resolve with .env file: app.sessionSavePath = 'session'
5,230 Views
6 Replies
10-02-2019, 02:56 AM
aparedesv
    Thread: session_start() error
Post: session_start() error

Hi, :huh: I want initialize a session library in controller follow the instructions of the manual $session = \Config\Services::session($config); but, I get a error SYSTEMPATH/Session/S...
5,230 Views
6 Replies
10-02-2019, 01:21 AM
aparedesv
    Thread: How to access CI4 on live server
Post: RE: How to access CI4 on live server

TamasD Wrote: (09-22-2019, 02:49 AM) -- This thread helped: https://forum.codeigniter.com/thread-74347.html -- Works perfect! Thank's
5,029 Views
5 Replies
09-22-2019, 09:50 AM
aparedesv

Theme © iAndrew 2016 - Forum software by © MyBB