Welcome Guest, Not a member yet? Register   Sign In
Widget plugin (intelligent view partials)
#61

[eluser]wiredesignz[/eluser]
Yes add parameters. Why don't you read the widget code in this thread and figure it out for yourself? The very first post has an example passing parameters to a widget.
#62

[eluser]Andy78[/eluser]
I did read it bud. Your examples are short and to the point and often don't have a lot of explanation behind them. Maybe that should be enough from your point of view but to us beginners it can take a good bit more explaining to fully grasp.
#63

[eluser]wiredesignz[/eluser]
So which part of this example shown in the first post of this thread is unclear to you?
Code:
<?php widget::run('user_login', (bool) $this->user->is_guest); ?>
#64

[eluser]Andy78[/eluser]
Yes that's perfectly clear that you are passing a param in that line of code. Obviously I wasn't sure that passing the data in this way is exactly what you meant. All I'm saying is have a little patience..
#65

[eluser]jfox[/eluser]
This is pretty cool so I'm going to check it out. Do you know if this works with the Form Generation Library?
#66

[eluser]quasiperfect[/eluser]
this works with reactor ? if so any changes needed ?
#67

[eluser]ClaudioX[/eluser]
@Quasi
I copy the PHP5 version and put it in helpers folder, autoload it, and works fine.

The only change i do is clareting the functions static, however, without that, the class works fine.
#68

[eluser]quasiperfect[/eluser]
@ClaudioX ty i will try
#69

[eluser]vee[/eluser]
hello,
if i use <?php widget::run('somw_widget'); ?>.
it's echo immediately.

i want to keep it in string, not echo.
how to make it just return value?

thank you. Smile

( i am using ci2+modular extensions+php5 )
#70

[eluser]umefarooq[/eluser]
then echo output in widget run function .

Code:
function run(){
  echo $output;
}




Theme © iAndrew 2016 - Forum software by © MyBB