Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 30 19:15
    paranoiq edited #245
  • Sep 30 19:02
    paranoiq edited #245
  • Sep 30 19:02
    paranoiq edited #245
  • Sep 30 19:01
    paranoiq edited #245
  • Sep 30 15:36
    paranoiq edited #245
  • Sep 30 15:25
    paranoiq opened #245
  • Sep 30 15:06
    hrach commented #230
  • Sep 30 14:54
    dg closed #849
  • Sep 30 14:54
    dg commented #849
  • Sep 30 14:49
    dg closed #230
  • Sep 30 14:48
    dg synchronize #230
  • Sep 30 14:46
    dg commented #230
  • Sep 29 13:27
    hrach commented #230
  • Sep 29 13:09
    ondrejmirtes commented #231
  • Sep 29 13:02
    dg commented #231
  • Sep 29 13:02
    dg closed #231
  • Sep 29 13:02
    dg commented #231
  • Sep 29 12:19
    ondrejmirtes opened #231
  • Sep 29 11:29
    ondrejmirtes commented #235
  • Sep 29 09:42
    jiripudil commented #393
markosko
@markosko
@freshaim
可能是写代码第二好的太极拳爱好者,哈哈哈!!
@sunkangchina
$this->template->posts = $posts = $this->db->table('posts')->limit(10); foreach($posts as $p){ echo $p->user->user; }
markosko
@markosko
what with this ? @freshaim
可能是写代码第二好的太极拳爱好者,哈哈哈!!
@sunkangchina
```
$this->template->posts = $posts = $this->db->table('posts')->limit(10); foreach($posts as $p){ echo $p->user->user; }
this is a db query
markosko
@markosko
it must be in one message if u want to new line without sending use shift+enter
可能是写代码第二好的太极拳爱好者,哈哈哈!!
@sunkangchina
use raletionshop
markosko
@markosko
@freshaim ň
yea but not sure what u want
可能是写代码第二好的太极拳爱好者,哈哈哈!!
@sunkangchina
$this->template->posts = $posts = $this->db->table('posts')->limit(10); foreach($posts as $p){ echo $p->user->user; }
markosko
@markosko
do u have error there or ?
可能是写代码第二好的太极拳爱好者,哈哈哈!!
@sunkangchina
no error,there's a problem,this sql has create 3 , two is the same, how can i use inner join.
just one sql
markosko
@markosko
either u will use query and write out whole sql or this will always use more sql queries
cehc kdatabase explorer docs for this @freshaim
可能是写代码第二好的太极拳爱好者,哈哈哈!!
@sunkangchina
OK
thank you
Jakub Vitásek
@jvitasek
Hey guys, I have a Nette Form with class "ajax". On the first submit, the form fires all expected events (success, submit etc). But on the second submit, the form only fires onAnchor and onRender. What could be wrong?
Jakub Vitásek
@jvitasek
I figured it out, I was removing the previous values from the form via javascript and I guess Nette Forms are protected against that. Removing this script submits the form, so now I have to find out how to set the default values when the form is already anchored and rendered :)
markosko
@markosko
@jvitasek $form->setValues([]); at end of form processing
Daniel Lungu Byrne
@daannielism_twitter
Hi guys, not sure who to ask this
I'd really like to make a website similar for my product, is there a template similar? I'm new to nette web development
matak
@matak
hi, do you have someone solved alternative to kdyby\facebook?
markosko
@markosko
@matak suggested alternative is https://github.com/thephpleague/oauth2-facebook
matak
@matak
@markosko it doesnt seems to be comparable, or usable without lot of work
aolko
@aolko
hi there
hopefully someone is alive
tl;dr using only nette/databse, how do i fetch correctly?
function get_feedposts(){
    global $database;
    global $context;

    $feed_posts = $context->table("posts")->fetchAll();

    return $feed_posts;
}
markosko
@markosko
@aolko whats problem ?
aolko
@aolko
fetching an associative array for twig, not entire object
markosko
@markosko
@aolko u can try fetchAssoc(...); but it still be different than what u want
aolko
@aolko
so, how do i achieve what i want?
markosko
@markosko
@aolko whats problem with object ?
aolko
@aolko
well, try to shove that into twig and {{access.your.field}} in the template
aolko
@aolko
surprisingly, that wasn't resolved
Renato Marinho
@renato2marinho_twitter
Hey guys, I'm GitScrum founder. I want to invite group members to get to know GitScrum. Site: https://site.gitscrum.com/
aolko
@aolko
terrible pricing 0/10
Filis Futsarov
@filisko
Hello guys,
How could I change the form 'pair container' for a specific control?
I have this : '$renderer->wrappers['pair']['container'] = 'div class="pure-control-group"';'
As default, but then I need to change it when doing "foreach ($form->getControls() as $control)"
anaroxia
@anaroxia
hery guys
need some help with google app engine deployment
does any one have experience with it
i followed this
cakephp is working fine
I really like Nette