Search the web
Sign In
New User? Sign Up
codeigniter-id · Codeigniter Indonesia
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Bls: [codeigniter-id] Re: acces Controller & hoo   Message List  
Reply | Forward Message #1650 of 3756 |
Re: Bls: [codeigniter-id] Re: acces Controller & hoo

tambahan lagi :)
dengan library juga bisa dibuat mirip hook, yang akan dipanggil pada
setiap pemanggilan controller
misal kita bikin

class Common
{
function Common() // constructor
{
fungsi_yang_selalu_dipanggil_tiap_page_load();
}
}

kemudian daftarkan library ini pada config/autoload.php
sehingga setiap page di load, Common akan dijalankan

AndyBr


syamsul bachri wrote:
>
> setuju ama pendapatnya bung bolongsox....:D
> itu sih balik lagi ke diri masing2..
> tapi dari pada hooks mending bikin library baru yang sesuai ma
> kebutuhan kita...
> pake hooks kalo emang udah bener2 perlu..
>
> best Regards,
> Syamsul Bachri
> * coding, never give up *
> http://syamsulbachri.co.cc <http://syamsulbachri.co.cc>
> http://syabac.blogspot.com <http://syabac.blogspot.com>
> --------------------------
>
> .
>
>




Wed Nov 19, 2008 1:14 am

andybr93
Offline Offline
Send Email Send Email

Forward
Message #1650 of 3756 |
Expand Messages Author Sort by Date

setuju ama pendapatnya bung bolongsox....:D itu sih balik lagi ke diri masing2.. tapi dari pada hooks mending bikin library baru yang sesuai ma kebutuhan...
syamsul bachri
syamsul_sule
Offline Send Email
Nov 18, 2008
4:12 pm

tambahan lagi :) dengan library juga bisa dibuat mirip hook, yang akan dipanggil pada setiap pemanggilan controller misal kita bikin class Common { function...
AndyBr
andybr93
Offline Send Email
Nov 19, 2008
1:14 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help