Search Results
Post Author Forum Replies Views Posted [asc]
    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...
aparedesv CodeIgniter 4 Support 4 1,200 11-28-2019, 03:14 AM
    Thread: redirect()->to() doesn't work in controller __construct()
Post: RE: redirect()->to() doesn't work in controller __...

thanks! I try filters...
aparedesv CodeIgniter 4 Support 4 1,200 11-27-2019, 09:57 AM
    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('admin_a...
aparedesv CodeIgniter 4 Support 4 1,200 11-27-2019, 04:40 AM
    Thread: validation if_exist
Post: RE: validation if_exist

Sorry, the correct rule for this case is "permit_empty"
aparedesv CodeIgniter 4 Support 1 963 11-20-2019, 12:37 AM
    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...
aparedesv CodeIgniter 4 Support 1 963 11-19-2019, 06:59 AM
    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' => ['r...
aparedesv CodeIgniter 4 Support 6 2,199 11-18-2019, 04:23 AM
    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 validationR...
aparedesv CodeIgniter 4 Support 6 2,199 11-14-2019, 09:57 AM
    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()) ...
aparedesv CodeIgniter 4 Support 3 1,261 11-08-2019, 12:29 AM
    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...
aparedesv CodeIgniter 4 Support 3 1,261 11-07-2019, 09:34 AM
    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', [], $i...
aparedesv CodeIgniter 4 Support 3 1,280 10-21-2019, 02:59 AM
    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...
aparedesv CodeIgniter 4 Support 3 1,280 10-20-2019, 11:42 PM
    Thread: pagination getPrevious() & getNext
Post: pagination getPrevious() & getNext

Hi, I create a App/Views/Pagers/bootstrap_full.php file: <?php $pager->setSurroundCount(2) ?> <nav aria-label="Page navigation">     <ul class="pagination">     <?php if...
aparedesv CodeIgniter 4 Support 0 735 10-14-2019, 12:54 AM
    Thread: protected $DBGroup = 'ywl_data';
Post: RE: protected $DBGroup = 'ywl_data';

Uauhhhhhh!!! it works perfectly, thanks a lot!
aparedesv CodeIgniter 4 Support 2 1,073 10-08-2019, 11:38 PM
    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' =&g...
aparedesv CodeIgniter 4 Support 2 1,073 10-08-2019, 12:58 AM
    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]: DateTim...
aparedesv CodeIgniter 4 Support 6 2,089 10-07-2019, 12:51 AM
    Thread: session_start() error
Post: RE: session_start() error

(10-02-2019, 05:05 AM)Digital_Wolf Wrote: Here is the documentation for CI3: https://codeigniter.com/userguide3/libra...sions.html And this for CI4: https://codeigniter4.github.io/userguide...sions....
aparedesv CodeIgniter 4 Support 6 2,089 10-02-2019, 11:45 PM
    Thread: session_start() error
Post: RE: session_start() error

i resolve with .env file: app.sessionSavePath = 'session'
aparedesv CodeIgniter 4 Support 6 2,089 10-02-2019, 02:56 AM
    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/Ses...
aparedesv CodeIgniter 4 Support 6 2,089 10-02-2019, 01:21 AM
    Thread: How to access CI4 on live server
Post: RE: How to access CI4 on live server

(09-22-2019, 02:49 AM)TamasD Wrote: This thread helped: https://forum.codeigniter.com/thread-74347.html Works perfect! Thank's
aparedesv CodeIgniter 4 Support 5 1,681 09-22-2019, 09:50 AM
    Thread: How to access CI4 on live server
Post: RE: How to access CI4 on live server

Hi, I have the same problem. I understand that the base_url is the public path; for example, if your hosting public folder is httpdocs, is here when you upload the CI4 public folder (index.php, rob...
aparedesv CodeIgniter 4 Support 5 1,681 09-22-2019, 01:41 AM

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.