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

How can i validate sefurl rule after change value for $_POST['sefurl'] ? This code return false ( sefurl error ) PHP Code: -- if ( $this->request->getPost('title') ) { $_POST['sefurl'] = u...
1,014 Views
1 Replies
11-30-2022, 01:57 AM
cvlancvlan
    Thread: Call function from controller in view
Post: Call function from controller in view

How can i call products() function from CategoryController in app/views/category.php app/views/category.php app/controllers/CategoryController.php PHP Code: --
4,063 Views
1 Replies
11-19-2021, 02:03 AM
cvlancvlan
    Thread: Redirect inside Constructor NOT WORKING
Post: RE: Redirect inside Constructor NOT WORKING

PHP Code: -- public function __construct() { throw new \CodeIgniter\Router\Exceptions\RedirectException('login'); #throw new \CodeIgniter\Router\Exceptions\RedirectException('login', 302); ...
25,119 Views
13 Replies
08-04-2021, 08:11 AM
cvlancvlan
    Thread: My template library
Post: My template library

I'm beginner in codeigniter 4. Recently i created this Template Library for my project. If someone have suggestions please put here. I inspired from this project: https://github.com/lonnieezell/myt...
2,198 Views
1 Replies
07-04-2020, 10:47 PM
cvlancvlan
    Thread: How can i move force_https in before filter
Post: How can i move force_https in before filter

How can i move force_https in before filter ? I wan't remove this force_https from system/Controller.php and i want add in filter. I created an login sistem in filters where i recive informations fro...
832 Views
0 Replies
07-03-2020, 11:57 AM
cvlancvlan
    Thread: Is my library function from common file a good practice ?
Post: RE: Is my library function from common file a good...

Thank you @ivantcholakov
2,683 Views
4 Replies
07-02-2020, 01:31 AM
cvlancvlan
    Thread: What is the better solution for check if is logged in
Post: What is the better solution for check if is logged...

What is the better solution for check if is logged in ? app/Controllers/Back/DashbardController.php PHP Code: --
1,242 Views
1 Replies
07-01-2020, 02:04 AM
cvlancvlan
    Thread: Is my library function from common file a good practice ?
Post: RE: Is my library function from common file a good...

ivantcholakov Wrote: (06-30-2020, 04:13 PM) -- No, it is not. 1. You are making your own unique loading system that somebody else should get used with. Also, this system makes your code less porta...
2,683 Views
4 Replies
06-30-2020, 11:36 PM
cvlancvlan
    Thread: Is my library function from common file a good practice ?
Post: Is my library function from common file a good pra...

I created this library function in app/Common.php because i want to call easier my libraries but i don't know if this function is a good practice for codeigniter 4. Please tell me if this function is ...
2,683 Views
4 Replies
06-30-2020, 01:22 PM
cvlancvlan
    Thread: How to create a library?
Post: RE: How to create a library?

This is a great post for beginners like me in ci4
17,358 Views
8 Replies
06-30-2020, 09:38 AM
cvlancvlan
    Thread: Modules code example for codeigniter 4
Post: Modules code example for codeigniter 4

If i don't use routes for this app/Modules/Product/Controllers/ProductController.php how can i acces this controller from url ? If i use this route then url for this controller app/Modules/Product/Co...
1,106 Views
0 Replies
06-30-2020, 02:28 AM
cvlancvlan
    Thread: Redirect all urls to lowercase
Post: Redirect all urls to lowercase

My question is how can i set header 301 for this redirect ? I think i didn't setup correctly header 301 for this redirect. PHP Code: -- $response->setHeader('HTTP/1.1 301 Moved Permanently', '');...
974 Views
0 Replies
06-29-2020, 09:49 AM
cvlancvlan
    Thread: Virtual hosting is forcing https
Post: RE: Virtual hosting is forcing https

app/Config/App.php $forceGlobalSecureRequests = false
4,094 Views
6 Replies
06-29-2020, 06:18 AM
cvlancvlan
    Thread: Bug? CI 4 not remove method from params when use routes ?
Post: RE: Bug? CI 4 not remove method from params when u...

This is my solution for CI 4. If someone have a good idea please tell me. PHP Code: -- public function _remap($method, ...$params) { $router = service('router'); $directory = trim(st...
1,780 Views
2 Replies
06-29-2020, 03:04 AM
cvlancvlan
    Thread: Bug? CI 4 not remove method from params when use routes ?
Post: RE: Bug? CI 4 not remove method from params when u...

In CI 3 i use this _remap in MY_Controller and work perfectly for my app. PHP Code: -- public function _remap($method, $params = array()) {         if ( method_exists($this, $method) ) {          ...
1,780 Views
2 Replies
06-28-2020, 11:45 PM
cvlancvlan
    Thread: Bug? CI 4 not remove method from params when use routes ?
Post: Bug? CI 4 not remove method from params when use r...

Url: site[.]com/p/seo-url/param1/param2/... app/Config/Routes.php  PHP Code: -- $routes->add('p/(:any)', 'Post::index'); -- app/Controllers/BaseController.php PHP Code: -- public function...
1,780 Views
2 Replies
06-28-2020, 11:15 AM
cvlancvlan
    Thread: css, js, img in view don't work
Post: RE: css, js, img in view don't work

i know use assets but i need this structure application - views -- template --- admin ---- css ----- style.css ---- js ---- img --- default ---- css -----...
4,568 Views
5 Replies
04-08-2018, 05:29 AM
cvlancvlan
    Thread: css, js, img in view don't work
Post: css, js, img in view don't work

I have this structure but can't acces (css, js, img) files Code: -- -- application  - views   -- template    --- admin     ---- css      ----- style.css     ---- js     ---- img   --- default   ...
4,568 Views
5 Replies
04-01-2018, 01:12 AM
cvlancvlan
    Thread: Seo friendly url
Post: Seo friendly url

I'm beginner in codeigniter and i try obtain seo friendly url for may project. This url domain[.]com/blog/category/subcategory/ i want to go here controllers/Blog.php->index() i want redirect this u...
2,454 Views
0 Replies
03-31-2018, 11:23 AM
cvlancvlan

Theme © iAndrew 2016 - Forum software by © MyBB