Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: How to get view as data in CI4 ?
Post: RE: How to get view as data in CI4 ?

MGatner Wrote: (08-07-2021, 04:43 AM) -- The helper function `view()` simply returns a string. You can capture that however you like, and when you are ready you either echo it or return it from your ...
369 Views
2 Replies
08-07-2021, 04:54 AM
munggaran
    Thread: How to get view as data in CI4 ?
Post: How to get view as data in CI4 ?

in CI3, I just have to add parameter like: $page = $this->load->view('page',$data,true); how i do this in CI4?, it seems the view function has been changed.
369 Views
2 Replies
08-07-2021, 04:20 AM
munggaran
    Thread: How to Routes for Function with parameter?
Post: RE: How to Routes for Function with parameter?

vitnibel Wrote: (11-18-2020, 04:57 AM) -- Just replace last '\' to '/' PHP Code: -- $routes->get('blog/page/(:num)', '\Modules\Blog\Controllers\Blog::page/$1'); -- -- Superb!!, thanksss  :D :D ...
944 Views
2 Replies
11-18-2020, 07:10 PM
munggaran
    Thread: How to Routes for Function with parameter?
Post: How to Routes for Function with parameter?

I made module with following tree: module\Blog module\Blog\Config module\Blog\Controller module\Blog\View I put Blog.php inside module\Blog\Controller with 2 below functions: Code: --...
944 Views
2 Replies
11-18-2020, 02:26 AM
munggaran
    Thread: How to call helper function from Controller's Constructor?
Post: RE: How to call helper function from Controller's ...

T.O.M. Wrote: (11-11-2020, 06:58 AM) -- In BaseController constructor is initController() method (not __constructor()). So your __constructor() is called earlier then BaseController::initController(...
978 Views
4 Replies
11-11-2020, 07:41 AM
munggaran
    Thread: How to call helper function from Controller's Constructor?
Post: RE: How to call helper function from Controller's ...

T.O.M. Wrote: (11-11-2020, 02:01 AM) -- If you loaded your helper then you can call it's function only with name - thefunction(); -- I loaded helper in basecontroller so all controller will have the ...
978 Views
4 Replies
11-11-2020, 02:05 AM
munggaran
    Thread: How to call helper function from Controller's Constructor?
Post: How to call helper function from Controller's Cons...

Anyone know how to call helper function from Controller's Constructor?, iIve tried and thrown an error, tried adding $this->thefunction() but it also produce an error since this will make complication...
978 Views
4 Replies
11-10-2020, 09:04 AM
munggaran
    Thread: Codeigniter 4 license?
Post: Codeigniter 4 license?

Hi, Wondering if I made something with CI4, can I sell it?, I found someone selling product based on CI3 but is it also works same with CI4?, or is there any documentation I can read? I'm trying...
780 Views
1 Replies
10-15-2020, 10:20 PM
munggaran
    Thread: Need advise for CRUD Builder
Post: RE: Need advise for CRUD Builder

jreklund Wrote: (05-08-2020, 12:51 PM) -- Hi, the function you are looking for are "Code Modules" in CI4. https://codeigniter.com/user_guide/general/modules.html You create a Module namespace, in...
1,478 Views
2 Replies
05-08-2020, 01:26 PM
munggaran
    Thread: Need advise for CRUD Builder
Post: Need advise for CRUD Builder

Currently I have CRUD Builder made with CI3 + HMVC and want to try make it into CI4 but not sure if CI4 will support HMVC or maybe someone will make some extension, it's simply by generating 1 instanc...
1,478 Views
2 Replies
05-08-2020, 11:21 AM
munggaran

Theme © iAndrew 2016 - Forum software by © MyBB