Skip to content
Advertisement

Tag: codeigniter-4

SQL join codeigniter 4

Codeigniter 4 is throwing the following error: Argument 2 passed to view() must be of the type array, null given called in D:xampphtdocslordeCIappControllersBlog.php on line 35 That is about the block of code below: I am very grateful to who help me with that. Answer First you can remove the first select *, you either select * or define the

CI4 Inserting ID from selected Strings

I’m so tired of thinking how to solve this case. already search by internet and never solved. straight to the point this is my Controller of Product.php this is my Models Model_product.php and this is my Views create.php i want to insert new data from Controller Product function store. i’ve this problem, i cannot change string value into integer value

Undefined database variable

Blog.php code below: blog_index.php code below: I can’t see where is my mistake, it raises a errorException: “Undefined Variable:dados”. About $categorias variable, am learning how to use more than one table per controller. Codeigniter version: 4.0.4 Running through xampp Answer Controller Blog.php View blog_index.php Note :- For Reference see this:- https://codeigniter4.github.io/userguide/outgoing/views.html#adding-dynamic-data-to-the-view

How to use refresh token in codeigniter rest api?

I’m new in codeigniter 4 rest api and oath. I’m able to create login that return the token and the refresh token. My problem is when the token has expired. How can I get new token using the refresh token? Do I have to create a new function in the controller for that? Or can it be the same endpoint

How to use renderSection in Codeigniter 4?

From the official documentation of Codeigniter 4 for view layouts there is a function renderSection that you can use at your templates. The main problem though is that I couldn’t figure out how this works. Please have in mind that I don’t want a work-around for this, I really need to know how the renderSection works and what I am

Advertisement