Where do you get the favorite posts from? Do you have them in a db?
On Fri, Sep 24, 2010 at 7:19 AM, calzone wrote:
> I would save to both the db and the session when changes are made and
> read from the database to the session on login and then read from the
> session while it's active.
>
> If
Also keep in mind that you won't be able to send bulk e-mails using Gmail.
They have a lot of limitations.
On Fri, Sep 24, 2010 at 6:41 AM, archF6 wrote:
> I ran into this problem too.
>
> First, make sure ssl is enabled on your server.
>
> Next, make sure you format all email addresses in the f
You could deny access in beforeFilter in AppController to all admin_ actions
for everyone except one ore more groups, I guess.
On Thu, Sep 23, 2010 at 11:14 PM, calzone wrote:
> Yes, he wrote the tutorial on book.cakephp.org I followed to begin
> with.
>
> But neither the tutorial nor his site
Regarding containable behavior. Does anyone know which is better from
performance point of view: use it with $actAs or attach it on the fly?
On Thu, Sep 23, 2010 at 11:05 PM, Chris wrote:
> Hi there!
>
> I just tryied your Containable behavior and it works! I had some
> problems but I simply for
I would save to both the db and the session when changes are made and
read from the database to the session on login and then read from the
session while it's active.
If there is a memory limitation on the server that you risk hitting
because you have too many users that all have too many favorite
Hi
yes, I agree on this too; but I also trust on Dave decition. I think that if
he took the time to check the session filesize he is smart enough to note
this obvious manner too; and I think that if he asks about storing this in
sessions is because in some way it's important to have that informati
I ran into this problem too.
First, make sure ssl is enabled on your server.
Next, make sure you format all email addresses in the following way:
$this->Email->to = 'Recipient ';
Note the "<" and ">" around the actual email address. Google's SMTP
server requires this.
You must also do this for
Why not just create a new table to store the favorites?
UserFavorites
id
user_id
post_id
seems like it would be better than using a session
On Sep 23, 5:13 pm, "Dave Maharaj" wrote:
> I have my Users who save favourite Posts
>
> At login I get all the saved Posts id's and save then to the users
It is passed in as an argument to password_match().
On Sep 23, 5:24 pm, John L wrote:
> Thanks Miles!
>
> I follow you on $this->alias but where does $password_field come from. I'm
> searching everywhere to find something on this.
>
> On Thu, Sep 23, 2010 at 8:11 PM, Miles J wrote:
> > $this->al
Thanks Miles!
I follow you on $this->alias but where does $password_field come from. I'm
searching everywhere to find something on this.
On Thu, Sep 23, 2010 at 8:11 PM, Miles J wrote:
> $this->alias is the name of the model. If your model is User, then you
> must do that on $data to get the co
$this->alias is the name of the model. If your model is User, then you
must do that on $data to get the correct value.
$data['User']['password'] is equivalent to:
$data[$this->alias][$password_field] which is the better approach
because its dynamic.
On Sep 23, 4:59 pm, John L wrote:
> Hello,
>
>
Hello,
I'm following this tutorial on the Auth component: http://bit.ly/aNWz3J
I'm confused about three things and I can't figure it out on my own (trust
me I tried).
Class User extends AppModel {
// ..
function password_match($data, $password_field, $hashed=true) {
$password = $this->
I think your approach is good. It depends on how many users you'll have
simultaneosly.
Also I had issues with Cake when the TMP directory was a NFS mount, so try
to avoid this if you can.
Best,
Nicolás Andrade
On Thu, Sep 23, 2010 at 6:13 PM, Dave Maharaj wrote:
> I have my Users who save fa
I have my Users who save favourite Posts
At login I get all the saved Posts id's and save then to the users session,
when they save new one it adds it's ID to the list, delete removes the ID
from the session. Now this list can get rather long as you can imagine say
roughly 200 saved favourite i
> On Thu, Sep 23, 2010 at 12:40 PM, j.blotus wrote:
> > I think you have used up your question quota for the week.
On Sep 23, 6:46 am, Joshua Muheim wrote:
> What a luck that weekend is coming soon...!
Haha nice.
Check out the new CakePHP Questions site http://cakeqs.org and help others with
t
hi i am new in cakephp and json and ajax in need
menu 1 have category,when user selece category show subcategory in
other menu
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
Yes, he wrote the tutorial on book.cakephp.org I followed to begin
with.
But neither the tutorial nor his site answer my specific question.
I'm trying to blanket deny any controller action that is accessed via
admin routing to anyone who is not part of one specific group.
Sure, I could manually
Hi there!
I just tryied your Containable behavior and it works! I had some
problems but I simply forgot the $actAs attribute in the events model!
Thank you for your help! (-:
On 23 sep, 19:55, cricket wrote:
> On Thu, Sep 23, 2010 at 7:09 AM, Chris wrote:
> > Hi there!
>
> > I'm pretty new to
On Thu, Sep 23, 2010 at 2:12 PM, euromark wrote:
> i have a related problem
> using exec('rm xyz') i can delete any (own) file (www-data/apache)
> but how i can i delete a file which has been uploaded with ftp and
> under a different username (e.g. "ftpaccount")?
>
> i tried everything
> from "sud
i have a related problem
using exec('rm xyz') i can delete any (own) file (www-data/apache)
but how i can i delete a file which has been uploaded with ftp and
under a different username (e.g. "ftpaccount")?
i tried everything
from "sudo rm xyz" to "password | sudo -S rm xyz"
i also tried writing
On Thu, Sep 23, 2010 at 8:59 AM, marvelade wrote:
> Dear all
>
> For a documentation system we have a tree structure of key words (came
> from an excel file).
>
> it's now in a MySQL table with the following columns (field names are
> pretty self-explanatory)
>
> CREATE TABLE IF NOT EXISTS `keywor
Mark covers this here
http://mark-story.com/posts/view/auth-and-acl-an-end-to-end-tutorial-pt-1
- S
On 23 September 2010 17:45, calzone wrote:
> No takers? I thought for sure there was a simple obvious answer I had
> overlooked somehow.
>
> On Sep 22, 1:36 pm, calzone wrote:
> > So I have
On Thu, Sep 23, 2010 at 7:09 AM, Chris wrote:
> Hi there!
>
>
> I'm pretty new to CakePHP and I recently met a problem that I actually
> can not resolve by myself, so I would like some help understanding the
> source of the problem.
>
> I have an events table that contains, with others things, a
>
On Thu, Sep 23, 2010 at 7:19 AM, Guru wrote:
> Hi,
>
> How can we execute bash(.sh) files from controller?
>
> Example : I have a file abc.sh. Whose contents are
> #!/bin/bash
> # declare STRING variable
> STRING="Hello World"
> #print variable on a screen
> echo $STRING
>
>
On Wed, Sep 22, 2010 at 7:07 AM, avanrotciv wrote:
> Hi,
>
> I'm getting this error, when trying to run a fresh copy of cakephp:
>
> Fatal error: Class 'Router' not found in ./cake/dispatcher.php on line
> 264
>
> I just copy and paste the code version 1.3.4 from github, didn't to
> any modificati
The controller just acts as the middle man between the database (modes
and business logic) and the templates (views and helpers).
I would suggest looking at some example apps/plugins. For example, my
forum plugin: http://github.com/milesj/cake-forum/tree/master/controllers/
On Sep 22, 5:08 am, Po
No takers? I thought for sure there was a simple obvious answer I had
overlooked somehow.
On Sep 22, 1:36 pm, calzone wrote:
> So I have acl and admin routing on a site.
>
> I'd like to create an aro-aco that blanket denies all admin actions to
> anyone who is not in group x.
>
> And vice versa,
there's a way (helpers or just howto) to use prototype based tooltip
inside my page?
Everything i've found is out of date
Regards
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
Another some free template,
http://blogfreakz.com/web-design/excellent-free-admin-template-for-web-applications/
Mufti Ali
http://webdev5.com
http://blogfreakz.com
On Thu, Sep 23, 2010 at 11:06 PM, Tilen Majerle wrote:
> Type in google simpla admin and modify template for cakePHP...its awesome
Type in google simpla admin and modify template for cakePHP...its awesome
design
On Sep 23, 2010 1:31 PM, "Alex Bovey" wrote:
Hi all,
Has anyone used any nice admin interface templates with CakePHP?
I'm trying to choose one from this list, but wondering whether anyone
has done anything similar
Moxby,
That is what I thought too but it isn't working. I am wondering if
after the plugin verifies a user from a social site and returns the
user to my site do I then need to add some sort of function to have
the plugin check if the user is in the table then either run the
gigyaCreateUser functio
Hi everyone, any chance someone can give me some pointers on creating
a photo carousel in cakePHP?
Basically I would like it to have a big image at the top, and then
thumbnails underneath, which the user can scroll through. When a
thumbnail is clicked on, the corresponding image & caption should
I met a strange problem while using gmail as SMTP server.
What I want to do is to send bulk email with my domain email
serv...@tagroup.se,
I used cakephp Email component to handle this , I followed exact
configuration as mentioned in links below (CakePHP official tutorial
site), but the email can
Dear all
For a documentation system we have a tree structure of key words (came
from an excel file).
it's now in a MySQL table with the following columns (field names are
pretty self-explanatory)
CREATE TABLE IF NOT EXISTS `keywords` (
`id` smallint(5) unsigned NOT NULL auto_increment,
`parent_i
I don't know how your models are linked together but if "recursive" doesn't
get you all the data you need, "containable" will do the trick.
On Thu, Sep 23, 2010 at 2:09 PM, Chris wrote:
> Hi there!
>
>
> I'm pretty new to CakePHP and I recently met a problem that I actually
> can not resolve by
Hi,
How can we execute bash(.sh) files from controller?
Example : I have a file abc.sh. Whose contents are
#!/bin/bash
# declare STRING variable
STRING="Hello World"
#print variable on a screen
echo $STRING
I need to execute abc.sh from controller.
Check out the new
Hi there!
I'm pretty new to CakePHP and I recently met a problem that I actually
can not resolve by myself, so I would like some help understanding the
source of the problem.
I have an events table that contains, with others things, a
'location_id' field.
I have a locations table containing a 'c
Hi,
I am using the cakePHP translation behaviour for a project and after
my initial enthusiasm I encountered some of its shortcomings. For
instance, when I have a model, e.g. Article with a translated field
"description", querying the model I will always get an empty result
when there are no transl
Hi
I saw this and it got me interested in the Amazon EC2. Could someone
please give a short explanation on how EC2 works and how to go about
setting it up.
Thanks
A
On Sep 22, 5:07 am, bowikaxu wrote:
> How does Amazon EC2 works?
> Ive been checking the webpage and looks a great alternative, bu
Hi,
The column type is correct: tinyint(1)
I assumed that if the field is needed only to type tinyint declare the
label and the field, correct?
input ('active', array ('label' => 'Active'))?>
user_group_id is a combo, it works fine.
The only checkbox is the 'active' field
Thanks!
On 23 sep,
In
Try do this:
link('Excluir', *array('controller' => 'controllerName',
action' => 'delete', `id` =>**
** $contrato['Contrato']['id'])*, null, 'Deseja realmente excluir
contrato?'); ?>
I haven't cake here to test, but try it...
http://book.cakephp.org/view/543/Passing-parameters-to-act
Are u serious? GoD! I always did logic in controller and in model only
gets/sets and validation data.
wow, I have to go back to the MVC books o.o
On Tue, Sep 21, 2010 at 5:13 PM, Miles J wrote:
> No because this is model (business) logic. The controller is only used
> to validation specific data
Thanks Euromark. Could you point me to an example of what you mean
and how it works?
I can get the information to appear in a new page, I think, but it
needs to have the layout etc as well.
Thanks,
Sharon
On 22 Sep, 22:33, euromark wrote:
> i use ajax and display it beneath the form
> with t
yea i did used
some free templates from
http://www.mostinspired.com/blog/2008/10/11/admin-templates/
with cakephp forms on these looks great
On Sep 23, 4:31 pm, Alex Bovey wrote:
> Hi all,
>
> Has anyone used any nice admin interface templates with CakePHP?
>
> I'm trying to choose one from
2 things:
1) Is the column type in the table set to boolean or tinyint(1)?
2) There is no array with the options passed in for your checkbox:
echo $this->Form->input('field', array('options' => array('option1',
'option2')));
If user_group_id is supposed to be the checkbox then the type is
wrong,
Hi,
This is the class I have.
class ThingController extends AppController{
public $helpers = array('Cache');
public $cacheAction = array('config' => 36000);
function config(){
// code here
}
}
It seems to work fine caching view files, but not xml files.
This is
Yes, it's in the app_controller.php...
On Thu, Sep 23, 2010 at 1:49 PM, Jeremy Burns | Class Outfit
wrote:
> Have you included the Session component and helper?
>
> Jeremy Burns
> Class Outfit
>
> jeremybu...@classoutfit.com
> http://www.classoutfit.com
>
> On 23 Sep 2010, at 12:44, psybear83 wro
hi Alex
On Thu, September 23, 2010 12:31 pm, Alex Bovey wrote:
> Hi all,
>
> Has anyone used any nice admin interface templates with CakePHP?
>
> I'm trying to choose one from this list, but wondering whether anyone
> has done anything similar and done the necessary work to get the
> templates wor
Have you included the Session component and helper?
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 23 Sep 2010, at 12:44, psybear83 wrote:
> Hi everybody
>
> After upgrading from 1.2 to 1.3 my login (using the Auth component)
> doesn't work anymore. I'm try
What a luck that weekend is coming soon...!
On Thu, Sep 23, 2010 at 12:40 PM, j.blotus wrote:
> I think you have used up your question quota for the week. I would
> recommend spending some time learning how to debug basic php errors
> before going any further in your work.
>
> On Sep 23, 3:48 am,
Hi everybody
After upgrading from 1.2 to 1.3 my login (using the Auth component)
doesn't work anymore. I'm trying to find the code where username and
password are checked, but I couldn't so far. Anybody can give me a
hint?
Ah yeah, and the following errors/warnings occur now when trying to
log in
Hi all,
Has anyone used any nice admin interface templates with CakePHP?
I'm trying to choose one from this list, but wondering whether anyone
has done anything similar and done the necessary work to get the
templates working nicely with Cake?
http://www.ourtuts.com/34-outstanding-admin-panels-f
Hi!
I have a problem with a checkbox.
I always get value 0.
My code is this: http://bin.cakephp.org/view/1438225730
Thanks
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
I think you have used up your question quota for the week. I would
recommend spending some time learning how to debug basic php errors
before going any further in your work.
On Sep 23, 3:48 am, Joshua Muheim wrote:
> Another thing: now it tells me that $cakeDebug is not defined:
>
> Notice (8): U
maybe this help you
http://bakery.cakephp.org/articles/view/cakephp-s-routing-explained
On Thu, Sep 23, 2010 at 11:23 AM, Vivi Vivi wrote:
> No,
> You can mix them and get better results. From my point of view it's much
> easier to put some rules into .htaccess and after treat them into routes.
No,
You can mix them and get better results. From my point of view it's much
easier to put some rules into .htaccess and after treat them into routes.php
But we can made a controller to treat the images.
in route.php add Router::connect("/img/*", array('controller' => 'image',
'action'=>'some act
Oh, yeah, found it now... ;-)
http://nuts-and-bolts-of-cakephp.com/2009/12/22/bye-bye-cakedebug/
On Thu, Sep 23, 2010 at 9:48 AM, Joshua Muheim wrote:
> Another thing: now it tells me that $cakeDebug is not defined:
>
> Notice (8): Undefined variable: cakeDebug
> [APP/views/layouts/default.ctp,
Another thing: now it tells me that $cakeDebug is not defined:
Notice (8): Undefined variable: cakeDebug
[APP/views/layouts/default.ctp, line 124]
I guess the solution is quite easy, again, but I just don't find it...
On Thu, Sep 23, 2010 at 9:38 AM, Joshua Muheim wrote:
> Thanks guys!
>
> On W
Thanks guys!
On Wed, Sep 22, 2010 at 5:49 PM, j.blotus wrote:
> http://book.cakephp.org/view/1561/Migrating-from-CakePHP-1-2-to-1-3
>
> Session is no longer included by default. You have to put it into your
> helpers/components array.
>
>
> On Sep 22, 11:16 am, psybear83 wrote:
>> Hi everybody
>
Probably but then wouldn't that kind of defeat the purpose of using
Cake?
On Sep 23, 1:34 am, Vivi Vivi wrote:
> Maybe can be done within htaccess with rewrite rule.
>
>
>
>
>
> On Thu, Sep 23, 2010 at 8:28 AM, Kyle Decot wrote:
> > I've tried the following w/ no success
>
> > Router::connect('/
60 matches
Mail list logo