Session problem

2008-04-12 Thread herc

If I change value of dropdown list, I change value of session.
Every time I need refresh page to make session alive. Why?
In dropdown list I use javascript MM_jumpMenu() to refresh page, but
that is not enought.


{foreach from=$langs item=lang}
{$lang.I18nLang.name}
{/foreach}

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Access method of another controller

2008-03-29 Thread herc

Thank you!!!  This solved my problem.





> Probably because of the "_".
>
> You can access the AdminUser model directly if you add it to the $uses
> of MainMenusController.
>
> class MainMenusController extends AppController {
>
> var $uses = array('MainMenu', 'AdminUser');
>
> It is not what you asked for, but this is more efficient.
>
> >  $administrator =$this->requestAction('/admin_users/admin_user_list');
> >  some code-
> >  }
>
> >  }
> >  ?>
>
> >  How can I solve this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Access method of another controller

2008-03-28 Thread herc

How  can I access method of another controller?

There is controller:
AdminUser->findAll('ORDER BY AdminUser.position');
return $results;
}

}
?>

and second controller is:

requestAction('/admin_users/admin_user_list');
some code-
}

}
?>

How can I solve this?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



requestAction

2008-03-09 Thread herc

How to translate this code in smarty?

View Template:

$posts = $this->requestAction('posts/index');
foreach($posts as $post):
 echo $post['Post']['title'];
endforeach;

I don't know how to connect (smarty) view element  with (cake)
controller?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Reusable elements

2008-03-09 Thread herc

How to translate this code in smarty?

View Template:

$posts = $this->requestAction('posts/index');
foreach($posts as $post):
 echo $post['Post']['title'];
endforeach;

I don't know how to connect (smarty) view element  with (cake)
controller?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Reusable Elements

2008-03-08 Thread herc

How to translate this code in smarty?

View Template:

$posts = $this->requestAction('posts/index');
foreach($posts as $post):
 echo $post['Post']['title'];
endforeach;
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Reusable elements

2008-03-08 Thread herc

I know for that article,but  there in no answer on my question




On Mar 8, 12:57 pm, Jason <[EMAIL PROTECTED]> wrote:
> Isn't there an article on that here:
>
> http://bakery.cakephp.org/articles/view/how-to-use-smarty-with-cake-s...
>
> or is that not what you're asking?
>
> On Mar 8, 11:55 am, herc <[EMAIL PROTECTED]> wrote:
>
> > How to create 'cake' reusable elements in Smarty Template engine?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Reusable elements

2008-03-08 Thread herc


How to connect view element (smarty) with controller?

On Mar 8, 12:55 pm, herc <[EMAIL PROTECTED]> wrote:
> How to create 'cake' reusable elements in Smarty Template engine?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Reusable elements

2008-03-08 Thread herc

How to create 'cake' reusable elements in Smarty Template engine?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: setFlash('foo')

2008-02-17 Thread herc

Thanks.

On Feb 16, 5:04 pm, "Samuel DeVore" <[EMAIL PROTECTED]> wrote:
> probably because you wrapped it in an echo or a short tag, it auto echos
>
> don't
> Session->setFlash('foo'); ?>
> don't
> Session->setFlash('foo'); =?>
>
> do
>
> Session->setFlash('foo'); ?>
>
> it returns 'true' or 1
>
> Sam D
>
> On Feb 16, 2008 5:31 AM, herc <[EMAIL PROTECTED]> wrote:
>
>
>
> > Any idea why my $this->Session->setFlash('foo'); outputs Foo 1 in my
> > view? :)
> > CODE:
> > foo1
>
> --
> --
> (the old fart) the advice is free, the lack of crankiness will cost you
>
> - its a fine line between a real question and an idiot
>
> http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/http://blog.samdevore.com/cakephp-pages/my-cake-wont-bake/http://blog.samdevore.com/cakephp-pages/i-cant-bake/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Session->setFlash()

2008-02-17 Thread herc

I can't remove number 1. That is a problem.

On Feb 16, 8:46 pm, Baz <[EMAIL PROTECTED]> wrote:
> Because that's what setFlash does???
>
> On Feb 16, 2008 10:04 AM, Samuel DeVore <[EMAIL PROTECTED]> wrote:
>
>
>
> > wow you echoed again ;)
>
> > On Feb 16, 2008 7:20 AM, herc <[EMAIL PROTECTED]> wrote:
>
> > > Any idea why my $this->Session->setFlash('foo'); outputs Foo 1 in my
> > > view? :)
> > > CODE:
> > > foo1
>
> > --
> > --
> > (the old fart) the advice is free, the lack of crankiness will cost you
>
> > - its a fine line between a real question and an idiot
>
> >http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/
> >http://blog.samdevore.com/cakephp-pages/my-cake-wont-bake/
> >http://blog.samdevore.com/cakephp-pages/i-cant-bake/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Session->setFlash()

2008-02-16 Thread herc

Any idea why my $this->Session->setFlash('foo'); outputs Foo 1 in my
view? :)
CODE:
foo1

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



setFlash('foo')

2008-02-16 Thread herc

Any idea why my $this->Session->setFlash('foo'); outputs Foo 1 in my
view? :)
CODE:
foo1

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---