You can either set a variable in app_controller or add a define to
core which will apply globally
Mike Karthauser
Brightstorm limited
Tel: 07939252144
On 14 Dec 2009, at 07:44, Tom wrote:
>
> How to set (where?), read and change global variable in controllers?
>
> Pleas help!
>
> Check out th
How to set (where?), read and change global variable in controllers?
Pleas help!
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post
Just one tip: From your tables I can see you have a data_registo which
implies you're probably Portuguese and want these to be populated when
creating a new row on the table. As I said before, I believe CakePHP
understands English better: modify all of them to 'created', and they'll be
automagicall
You can find /many/ applications on GitHub. Just be careful when adapting
your code according to them; it seems a lot of coding are not done the right
way, so you might learn things wrong.
As a Brazilian, I always try to write my apps in English, and then just
change the views to Portuguese. I hav
I suggest you look at the advanced installation at:
http://book.cakephp.org/view/35/Advanced-Installation
It may have what you need!
Enjoy,
John
On Dec 14, 5:53 am, Silver wrote:
> My configuration are as follows
> Cakes is installed under htdocs
> I have cake installed as ems
> and under em
Hi Dave,
Try changing this:
[code]
> 'contain' => array(
> 'Profile' => array(
> 'conditions' => array(
> 'Profile.id' => $auth_id)))
[/code]
into this:
[code]
> 'contain' => array('Profile')
[/code]
CakePHP should
Would you be so kind to share this? Would love to use it.
Thanks!
On Sat, Dec 12, 2009 at 11:40, jgadbois wrote:
> So I got it working (still not sure if it's the best way). I made a
> WP Authentication Component that copies Wordpress's mechanism for
> authentication (does a bunch of hash stuf
My configuration are as follows
Cakes is installed under htdocs
I have cake installed as ems
and under ems I have app as well as two seperate apps users and
logistics
now, users is basicly dealing with user authentication, modification
etc, and logistics is another app where need to use the user
a
Contain is not grabbing my related model and I don't know why. Tried with
fields or without and still nothing.
public function getUser($auth_id)
{
$params = array(
'conditions' => array(
'User.id' => $auth_id),
'fields' => array(
'User.firstname
Hey,
I managed to create the db-table for i18n (thanx to 'cake i18n'
hehe :) ) and attached the "Translate" Behaviour to my Model for which
I want to save let's say the title in 3 different languages.
I also made a 'title' => 'translateTitle' in my model, because I read
that in this case all lang
I have the following Scenario
Customer hasmany DomainName
CustomerAccount hasmany Domain Name
DomainName belongsto Customer
DomainName belongsto CustomerAccount
What I am trying to do is the following:
When creating a new customerAccount, a user first choses what customer
they would like. Then,
I have problem with ajax->autocompleter.
When I input data autocompleter div doesnt show. It has display: none
style and it doesnt change.
I noticed some users have the same problem but there is no solution.
I use firebug to debug and when I manually edit div style and clear
display: none it sho
The function is called at the top of the multibyte file.
if (function_exists('mb_internal_encoding')) {
$encoding = Configure::read('App.encoding');
if (!empty($encoding)) {
mb_internal_encoding($encoding);
}
}
On Dec 13, 5:52 am, Brendon Gleeson wrote:
>
Why would you want a query string of params? The main reason
frameworks are helpful is for the pretty URLs, which is better for
SEO, and less uncluttered.
On Dec 13, 9:02 am, Jon Bennett wrote:
> > If its possible, then how can i do it?
>
> > That doesn't work:
> > Router::connect('/:controller.p
Hey,
I managed to create the db-table for i18n (thanx to 'cake i18n'
hehe :) ) and attached the "Translate" Behaviour to my Model for which
I want to save let's say the title in 3 different languages.
I also made a 'title' => 'translateTitle' in my model, because I read
that in this case all lang
Hello,
>> Do you use closing ?> tag in your classes?
>
> yes I do use it.
My suggestion is to stop doing that :) There is no profit, but it can
break your code.
> I read on one post that you can't have whitespace
> before it (but newlines are OK). Still, that doesn't seem to be the
> problem.
_
> If its possible, then how can i do it?
>
> That doesn't work:
> Router::connect('/:controller.php?action=:action&qs=*');
ermm, the way urls are accessed is crucial to how cake works. To get
to an edit method of you users class you do one of 2 things:
1. with mod rewrite: domain.com/users/edit
2
Hi all,
I'm trying to display a list of records in my view and limiting the records
to 20. However, there are duplicate data in the model. So the view is not
displaying properly. I've tried this method (
http://www.littlehart.net/atthekeyboard/2008/03/04/custom-cakephp-12-pagination-queries/)
but
If its possible, then how can i do it?
That doesn't work:
Router::connect('/:controller.php?action=:action&qs=*');
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google
Start of the second paragraph:
http://book.cakephp.org/view/95/View-Templates
On Dec 13, 3:11 pm, 00Cake wrote:
> Altight,
>
> Thank you guys...
>
> As I was telling if you don't know zhat is a .ctp extension file, you
> are not suppose to know that it is a html/php file but with .ctp
> extensio
Altight,
Thank you guys...
As I was telling if you don't know zhat is a .ctp extension file, you
are not suppose to know that it is a html/php file but with .ctp
extension.
There is nothing logical in that and nothing explained...
Thank you!
On 11 déc, 02:05, Marcelo Andrade wrote:
> On Wed,
Hi Everyone,
The Blog video appears to be broken !
Does anyone know if it can be downloaded from somewhere ?
regards, Dave
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to th
Well like I said in the original message, all the open tickets on
code.cakephp.org were moved to lighthouse with the comments intact.
-Mark
On Dec 11, 2:34 am, Farhadi wrote:
> So, What did happen to the old tickets at code.cakephp.org and trac?
> Do you have any plans to migrate them to the new
I had this wierd problem the other day. I was using mb_strtoupper()
with on strings having unicode latin characters (french) and the
special characters where all staying lowercase. I figured out that the
multibyte cakephp library was only being called when I use the text
helper? I don't use anythin
Hello people,
I am having a little problem in my app where i have a list of services
which are in 2 categories,XML and JSON.All i want to do is when i
activate the XML service the JSON service must be deactivated.I am
using tinyint fields for this but i can't save both values at same
time.for examp
25 matches
Mail list logo