by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 20 22:00
    urugator opened #436
  • Sep 20 12:12
    JanTvrdik commented #435
  • Sep 19 07:47
    janbarasek edited #435
  • Sep 19 07:46
    janbarasek opened #435
  • Sep 18 15:54
    oallain commented #21
  • Sep 18 14:44
    guilhermeaiolfi commented #205
  • Sep 18 14:40
    guilhermeaiolfi commented #205
  • Sep 18 13:24
    dg commented #21
  • Sep 18 09:52
    oallain opened #21
  • Sep 17 17:19
    mabar edited #65
  • Sep 17 17:18
    janbarasek edited #67
  • Sep 17 17:15
    janbarasek opened #67
  • Sep 17 11:10
    dg commented #422
  • Sep 15 22:47
    diegosardina commented #257
  • Sep 15 21:08
    badmansan commented #257
  • Sep 15 21:08
    badmansan commented #257
  • Sep 15 16:11
    milo commented #434
  • Sep 15 15:21
    dakur commented #434
  • Sep 15 15:20
    dg commented #434
  • Sep 15 15:14
    dakur opened #434
markosko
@markosko
@freshaim
可能是写代码第二好的太极拳爱好者,哈哈哈!!
@sunkangchina
where's the component?
for database orm , <code>$this->template->posts = $posts = $this->db->table('posts')->limit(10);
foreach($posts as $p){
echo $p->user->user;
}</code>
markosko
@markosko
https://github.com/Kappa-org/ThemesManager @freshaim but didnt used this
if u want formatting code then use ```
on start and end of code snippet
@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