Thanks for your help. PLease I still cant restrict access to only the
loggen in users details this is my edit code
function edit($id = null) {
if (!$id && empty($this->data)) {
$this->Session->setFlash(__('Invalid profile', true));
Sorry, because poor my English.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+uns
Sorry because poor my Engish.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsub
When i use this line:
$this->User->saveField('last_activity', date('Y-m-d H:i:s', time()));
CakePHP delete all cache of model relation with User. ( Almost all model
relate with User) .
I must use Configure::write('Cache.check', false); prevent Cakephp clear all
.
Is this normal in cakePHP ?
--
You need to scope the update to only update the logged in user. That
way when a user accesses the update action it will only allow them to
update their own account.
For instance on the action to update a user fetch that user like so:
public function update() {
// This sets the logged in user as
Ultimately I do plan to move this into a plugin.
On Sep 2, 12:11 am, Thomas Ploch wrote:
> I am liking this as well (since I am doing a lot of stuff for clients
> with magento), though I think this should be bundled in a plugin, don't
> you think? This way you can easily drop this into any existi
Hello,
I have a model where a field needs a valudation rule to verify if the
value already exists.
The easy way to implement this is by using the isUnique validation.
However I want to also modify the message the user gets to give him an
url to a location where that value/field is already used.
S
I have already setup the auth component and it is working perfectly.
But I just discovered a problem.
There are two users in my users table when I am login as one of the
users I can access the other users details just by changing the i.d.
This wouldnt be secure as a login user can access all the de
__() wont work in a non-cake app, it's cake functionality.
__() is just a custom function cake wrote that extends their i18n
class. The i18n class deals with the loading of .po files and the
extraction of message strings using gettext (I believe).
On Aug 30, 1:09 pm, dole doug wrote:
> hi there
https://github.com/m3nt0r/cakephp-redis-session is an implementation of
Redis in Sessions, you might be able to adapt this for caching as well.
Jose
On Wed, Aug 31, 2011 at 9:39 PM, Priyank wrote:
> Are there packages available to use Redis in CakePHP applications?
>
> --
> Our newest site for
Are you calling
Model::create()
before you atempt to save the record?
Is your parent model validating?
I use save all a bunch and make it a habbit of checking these things.
Saveall works a-ok ;)
Sent from my iPhone
On Sep 2, 2011, at 9:29 AM, Stephen Latham wrote:
> If you have a read of the
If you have a read of the manual it says you can either save multiple records
of a single model using saveall, or a model and it's associated records. You
are trying to do both at once with the save all. That's my understanding of it
anyway - I had a similar issue with saveall so ended up just
With GET request your data goes to $this->params['url']
On 31 авг, 21:11, Thomas wrote:
> I am trying to make a very simple link up between an android app
> (appinventor) and a standard cake app. I have created the blog tutorial and
> it all works great. I can make my app link to another web si
Daniel, that's not my problem. In the development environment i have no
problem (using localhost or the ip, this don't care, both options work
well).
My problem is with the production environment, I'm using a typical url, with
it's domain name and directories... ( http://www.ub.edu/areintra/apps/Y
I saw this bug last week but i dont had time to debug and check where
is the problem.. but to me, Auth just bug like you said if i try to
access app with IP of server.. if o access with domain all work
fine... Ex.. 127.0.0.1/app will not work. but localhost/app work fine.
On Sep 2, 10:57 am, CaSt
When i write incorrect data: the same, appears an error message, no
surprises.
When i wrote the correct login data: :( , appears the error box (no
surprises here, it's the html+css code), but empty, without error messages.
As in the other cases, i can't reach the dashboard.
2011/9/2 Teddy Zeenny
No, i don't think this is it... I think the login function is not running at
all if login is successful because you don't have autoRedirect=false.
Which means we didn't find the problem yet.
Ok, next step, in the login view, replace:
No ha introduit les dades correctes
with this:
Session->
WoW!! ... O_O ...
The "else" statement is not executed... it's so strange :s . Then, the unic
statement can be executed is the "elseif" statement, and is because this why
i see the "clean login" with no error messages... but I don't understand
what happens with the form data... (because when the
Uf, no, I can't reach.. xD . I'm sorry again. I confused the local app with
the production app. I'll try what you are suggesting.
Thanks.
2011/9/2 CaStarCo
> Ei!! Yes, now I'm reaching the user dashboard action. I'm sorry, i didn't
> wait enough time.
>
> I'll look if i can reach the "specific
Ei!! Yes, now I'm reaching the user dashboard action. I'm sorry, i didn't
wait enough time.
I'll look if i can reach the "specific" dashboard (there are many
controllers with speciallized dashboards for different groups of users).
2011/9/2 CaStarCo
>
>
> 2011/9/2 Teddy Zeenny
>
>> Can you che
Ok no problem...
I don't think it will be hard to fix.. Just need to locate the problem.
It might be that the login action in the users controller is not redirecting
at all.
Replace the login function with this and let me know what happens.
public function login () {
$this->set ('title_for_layo
2011/9/2 Teddy Zeenny
> Can you check if you are reaching the dashboard action (in users
> controller) before being logged out?
>
> For example by setting
>
> function dashboard()
> {
> exit('in dashboard');
>
>//dashboard code here
> }
>
>
I've checked it :( , i'm not reaching the dashbo
Can you check if you are reaching the dashboard action (in users controller)
before being logged out?
For example by setting
function dashboard()
{
exit('in dashboard');
//dashboard code here
}
On Fri, Sep 2, 2011 at 3:08 PM, CaStarCo wrote:
> Hello, I've wrote here one month ago about
Hello, I've wrote here one month ago about the same problem, I couldn't
solve it, and I'll try another time.
I have a login method in users controller that works well in my development
environment (Windows 7 + Apache 2.2 + PHP 5.3.6) , if i write the correct
user and the correct pass, then I can l
You can set: var $uses=array('ModelName') in each of the controllers.
But just my opinion:
Don't name the table "objects" because your model name would be Object which
is a class that already exists in CakePHP.
Second, why link multiple controllers to one model. Instead, link multiple
models to
Can you show the sql log ? Is the data you're showing the actual
pr($this->data) output ?
ps: i'm assuming Application array having two [name] keys is a typo.
On Fri, Sep 2, 2011 at 1:35 PM, Dwayne Hanekamp wrote:
> Hey all,
>
> I'm building an application on which people need to fill in some
>
Hey all,
I'm building an application on which people need to fill in some
information and answer some questions.
I have two database tables:
Applications / Answers, Applications has a 'hasMany'-relationship with
Answers. The array coming from my form looks this way:
Array
(
[Application] => A
---
satya prakash wants to stay in better touch using some of Google's coolest new
products.
If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-9eaf684a61-9417917281-ATCqfS-f7QAtPTgwpEnlPTg2Vbc
You'll
---
satya prakash wants to stay in better touch using some of Google's coolest new
products.
If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-9eaf684a61-45b7054ac5-OP0oHb45K-Ahz1lfAKtVSG-Ry80
You'll
you should as a guideline always post a form to itself.
therefore the same action can work with the posted data and afterwards
redirect to the secure page
On 1 Sep., 22:27, vinay wrote:
> Hi,
> Looking for help on implementing requirement where user will see a
> form even without logging in to t
My thought is you may be having issues with the variable scope. Have
you tried just using local variables and returning the profile? This
is how I have done it in the past and it's worked flawlessly.
On Sep 1, 1:01 pm, koreill1 wrote:
> I'm trying to implement Facebook authentication in my app,
I had a similar problem, with google. The problem could have been about the
cookie's domain. My problem was this:
My urls on google looked like this: mysite.com/ and on my server
I had a redirect from mysite.com to www.mysite.com. And since the my logged
in users cookie's domain was
Hi,
Looking for help on implementing requirement where user will see a
form even without logging in to the website. Once user submit the form
the data is posted to secured page, that' s why user is redirected to
login page.
How do I get the data posted by user because based on that I need to
show h
nevermind, routing.php did the trick.
2011/9/1 Ricardo
> Hi,
>
> I wonder how to do, in order to get my url look like
>
>
> www.mysite.com/mode/1290132
>
> and not
>
> www.mysite.com/mode/index/1290132
>
> thanks for the help :)
>
>
--
cccaf...
--
Our newest site for the community: Cak
Try $this->Paginator->sort('country_id AS Country', 'Country.name');
2011/9/1 mthabisi mlunjwa
> In my view I have the following:
>
> Paginator->sort('country_id', 'Country.name');?
> >
>
> The above code will display country_id as the heading of a list of
> counties. I'm looking for a way to r
Hi,
I wonder how to do, in order to get my url look like
www.mysite.com/mode/1290132
and not
www.mysite.com/mode/index/1290132
thanks for the help :)
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cak
I have a table called 'objects' and each record has an item_type.
for example :
row 1:
id = 1
item_type = event
row 2:
id =2
item_type = news
row 3:
id =3
item_type = booking
I have a model for the table but is it possible to have multiple
controllers accessing this model,
I want to have an even
Are there packages available to use Redis in CakePHP applications?
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from thi
I am trying to make a very simple link up between an android app
(appinventor) and a standard cake app. I have created the blog tutorial and
it all works great. I can make my app link to another web site with a URL
and return XML (a simple API request) so I know it works, I just want to do
th
hi there
I have an old webapp on which i have to add i18n support. At this
moment I've added a __() around my messages which i need to be
translated and changed in my interface.
I don't have great experience with cake or programming in OO but I'll
like to know the logic by which cakephp can offer
yeah sure
On Sun, Aug 28, 2011 at 11:36 PM, Sri Kanth wrote:
> Hi Friends
> thanks for your suggestions ... definitely i will go through it
> thanks Tarique , thanks Paul
>
>
> lOvE U aLL
> Srikanth
> 955 345 0999
>
>
>
> > Date: Sat, 27 Aug 2011 02:11:40 -0700
> > Subject: Re: beginning of ca
When a user tries to access a protected action they are automatically
taken to the login form which then sets the previous page in a session
called Auth.Redirect and on successful login sends the user back to
that session value.
However if I put a check to see the referrer it will NOT show the
pre
you should use distint kyeword in query
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
cake
Thanks SCS, it works!
On Sep 1, 2:59 pm, scs wrote:
> Change:
> Paginator->sort('country_id',
> 'Country.name');?>
> To:
> Paginator->sort('Country', 'Country.name');?
>
> >
>
> http://book.cakephp.org/view/1233/Pagination-in-Views
>
> On Sep 1, 5:06 am, mthabisi mlunjwa wrote:> In my
I am liking this as well (since I am doing a lot of stuff for clients
with magento), though I think this should be bundled in a plugin, don't
you think? This way you can easily drop this into any existing project.
Regards
Thomas
Am 01.09.2011 11:13, schrieb Jeremy Rottman:
I have spent a bit
45 matches
Mail list logo