Hi,
I want to paginate over posts which has some comments. That is, I want to
get from the database only those posts which has al least one comments and,
for each post, all the associated comments:
$post => array(
[0] => array(
Post,
Comments => array(
[0] => com
this->Player->id = $playerID) and then save
or saveField
Max
On 09/16/2012 11:18 PM, d6games wrote:
The following code in my PlayersController doesn't error but also
doesn't save anything to the database table...
private function authorize($tag, $pass) {
$findPla
Is the Auto Increment attribute set for the ID column?
On 07/11/2012 03:39 PM, mohit kumar wrote:
Hi Folks,
I created an add action for users,
I am trying to register them using this action. Everything is going
fine, the data is being submitted, the passwords are being hash and if
I check the
I guess in your view you have to pass in the id (echo
$this->Form->input('id');). This should include a hidden id field.
I wonder why it works the first time (without leaving a field blank).
Are you sure the user gets edited and not a new user created? Because
when you save $this->request->data,
Hi,
have you tried copying the core "CakeRequest.php" to
"app/Lib/Cake/Network/CakeRequest.php" and do your changes there? I
think I remeber doing something like this with the Dispatcher and cake
automagically used the one from the app. The problem I had back then was
that I had to copy the w
rote:
This could be the case - a wrongly implemented Authentication
system. @Joey Hauschildt $this->Auth->user() and the "Auth.User"
Session key should both return/contain the full user information -
i.e. all fields from the users DB table. This behaviour is
stra
http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#identifying-users-and-logging-them-in
"In 2.0 $this->Auth->login($this->request->data) will log the user in
with whatever data is posted, whereas in 1.3
$this->Auth->login($this->data) would try to identify the user fi
You could get the size of $result['Post'] if you already have the
$result like you wrote. See count() or sizeof().
Or you could do a find('count') on the Post Model like
$this->User->Post->find('count', array('conditions' =>
array('Post.user_id' => 2)));
On 06/19/2012 12:24 AM, JonStark wrote:
ivery-mobile-devices
I hope to find the time to clean up and release the code.
Am Donnerstag, 24. Mai 2012 17:57:48 UTC+2 schrieb Max D:
>
> Hi,
>
> Cake: 2.0.3
>
> I'm using MediaView to deliver videos to the user. This works great on
> Firefox, Safari and on my Andr
On 25 Mai, 15:22, Mike Griffin wrote:
>
> Have you got the php mysql packages installed? And mysql-server and
> mysql-client?
>
> Mike.
I've got xampp installed. Is that enough?
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Qu
On 25 Mai, 08:46, luca capra wrote:
>
> Don't use sudo. Try:
>
> # cd in your app dir
> cd /home/max/akk/app
> # run cake with the full path, or relative like ../cake/console/cake
> /home/max/akk/cake/console/cake bake
>
> Probably you will need to reset perm
Hello guys,
im pretty new to CakePHP and at the moment im trying to bake a user-
system via the console. I used this tutprial for this:
http://insanityville.com/2010/04/how-to-bake-on-ubuntu-using-cakephp/
But everytime I do "cake bake" i get this Error-message:
max@max-ubuntu:
U
I tried using "download => true", but it did nothing.
One thing I noticed is, that the Video is requested by a different
User-Agent called "AppleCoreMedia".
Anybody has experience with MediaView, Videos and an iPad?
Thanks in advance.
Max
--
Our newest site
s with its standard HABTM/HasMany construct.
Max H. Thayer
maxtha...@gmail.com
On Apr 26, 2011, at 10:31 PM, turbo2ltr wrote:
> I'm working on a system that needs to allow users to add their own
> attributes to the DB. For instance if you had a movies database, I
> need to allow
to Auth now
parent::indentify($user, false);
}
}
I have gone through my scripts and replaced "$this->Auth" with "$this-
>CoreAuth" I'm not getting through a login now... if i try to
debug $this->CoreAuth at any point during the login process, "Aut
eturned 1.
Anyway, having the counter_cache is nice anyway. So my problem is
solved.
On Nov 2, 9:12 am, ohcibi wrote:
> The easiest way would be to Use countercache and then just add
> post_count > 0 to conditions... if you cant zdf countercache for some
> reason you could also inner j
But all the PaginatorHelper functions
return wrong results.
$this->Paginator->counter(array('model' => 'Post'));
always returns 1, although there are 3 results in the $blogs array.
Any ideas how I can achieve this?
Thanks in advance
Max
Check out the new CakePHP Questi
Am 27.10.2010 12:19, schrieb Max D:
Hey,
the RSS feed in the bakery seems to be broken. I worked a while ago,
but now http://bakery.cakephp.org/articles/rss throws an error:
Error: The requested address '/articles/rss' was not found on this
server.
I didn't know who to contact
Hey,
the RSS feed in the bakery seems to be broken. I worked a while ago,
but now http://bakery.cakephp.org/articles/rss throws an error:
Error: The requested address '/articles/rss' was not found on this
server.
I didn't know who to contact with this issue.
Regards
Max
Ch
't go into great detail, because now I'm not sure what causes the
problem. I thought it just was the rmdir thingie. ;) Sorry!
Max
Am 07.09.2010 14:40, schrieb Tomfox Wiranata:
thx max...
but even if it is empty i get the same error
is there maybe a file where i can set some paths fr
rmdir just works on emty directories
NAME
rmdir - remove empty directories
SYNOPSIS
rmdir [OPTION]... DIRECTORY...
DESCRIPTION
Remove the DIRECTORY(ies), if they are empty.
"rm -r" would recursively delete a nonempty directory, but it's a
dangerous c
Hi,
Since it's the login and register action, I bet you have them in
allow(). So the Auth component is disabled for those actions and
isAuthorized is never called. You need to check it somewhere else (e.g.
beforeFilter).
Max
Am 05.09.2010 22:28, schrieb Simon:
I have a isAutho
all/some actions, read about the
allow() function (http://book.cakephp.org/view/1257/allow)
Max
Am 01.09.2010 20:04, schrieb Skip Evans:
Hey all,
I'm pretty new to CakePHP, but a long time PHP coder, and am doing
some maintenance work on an existing Cake site. Right now, any attempt
to a
Hi,
whats the find call for $user?
what does debug($user); spit out?
Greetings
Max
Am 19.08.2010 20:58, schrieb Tomfox Wiranata:
hi,
weird thing. i declare a hasOne relation:
class User extends AppModel
{
var $name = 'User';
var $hasOne = array(
'
.'.$key.'.id', array('value' =>
$setting['Setting']['id']));
echo $this->Form->input('Setting.'.$key.'.value');
}
echo $this->Form->end('edit');
?>
This should work. Please correct me, if there is an ea
ntext password).
So, to keep the encrypted password, don't save it again. (unset the
password field or don't load it or exclude it from your fields array or ...)
Greetings
Max
Am 12.08.2010 14:32, schrieb james:
Hi,
I'm using the auth component and ive noticed that if i edit
wesentlich höher. ;)
Gruß
Max
Am 11.08.2010 10:30, schrieb JuMiFi:
Hallo liebe Community,
ich habe eine Frage bzgl. hasMany...
Ich habe ein Model "User" (users), welches via hasOne u.a. auf
"Account" (users_accounts) und "File" (users_files) zugreift.
Ausserdem ka
? Is there any way to add custom find methods in a
behavior?
Thanks
Max
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" grou
Hi,
have a look at File Fields:
http://book.cakephp.org/view/1411/File-Fields
and the FileUpload Component, which does pretty much everything for you.
http://github.com/webtechnick/CakePHP-FileUpload-Plugin
It works with or without a model, but it's all explained in the readme.
Am 22.07.2010 11
action_id is set? How can I avoid disabling validation? Am I doing something
wrong?
I hope I provided enough info to understand my problem.
Cheers
Max
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message becau
Not sure if this applies but I had an existing DB that has:
id | name | parent_id
I added the two other fields (lft and rght) but how to I get these
populated with the correct values so 'generatetreelist' will work
correctly?
Thanks.
On Jul 16, 8:37 am, Kirk wrote:
> Why are you editing the 1.
And try "registration" in the url, not "registeration"
cheers
Am 12.07.2010 10:30, schrieb nini:
Try
http://localhost/cake1.3.2/users/registeration
and please read manual.
On Jul 12, 1:20 am, Dinu464 wrote:
1) XAMPP 1.7.3 setup and workinghttp://localhost/xampp/-> success
2) Unpacked c
Hello
I want force use mysql multiple-field index.
Mysql don't use multiple-field index in my query.
How I can add USE INDEX to the Model->find() method?
After call Model->find() method
Cakephp executed this query
SELECT * FROM `table` where a=1 AND b>2 ORDER BY b
How I can add USE INDEX into que
Well, I think I don't undestand very well what are you trying to do,
I use requestAction in an proyect Im working.
$results = $this->requestAction('/diferentController/function/'.
$parameter);
and in that function I validate and work with the info, as a tip
requestAction doesn't accept or return
well, what exactly Im trying to do is make a function that registers
every movement of my application;
I tried make a component but because depending of the parameters its
the table that I extract the information;
the component doesn't work
so I tried the metod above cause was the one someone sugg
I use Komodo edit too, it's a great editor I recommend it ;D
On Mar 4, 5:43 pm, uristar wrote:
> Komodo :)http://www.activestate.com/komodo_edit/
>
> On Mar 1, 10:35 pm, Samuel DeVore wrote:
>
> > a tutu and go go boots
>
> > On Sun, Mar 1, 2009 at 12:34 PM, Tomás Laureano Peralta Tormey
>
> >
Hello Everyone!
I want to now if someone knows how to call a function from another
controller, I have already tried
$results = $this->WhateverModelIs->TheModelIWantToCall-
>thefunctionIwanttocall($passeddata);
but cake sends me this notice:
Notice: Undefined property: WhateverModelIs::$TheMod
Thank you ever so much!
So much easier.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
c
Hello guys.
Sorry for the terrible English.
Today, I sуе that changed api.cakephp theme design.
Theme very nice, but properties and methods sorted randomly =(
This is very inconvenient for me.
But in previous version of alphabet
(Perhaps I am wrong, but the old version was more convenient for me
Thank you Ianh, this looks nice... I'll give it a try.
Max
On Jun 2, 10:05 pm, ianh <[EMAIL PROTECTED]> wrote:
> For a super-lightweight templating system a modified version of which
> I use for customizable emails, you could
> tryhttp://www.massassi.com/bTemplate/.
&
Thank you Dr. Sani,
The problem with that is that it limits features that the user can do.
No iterations, string modifiers, etc... I am looking to implement
roughly the same features and flexibility that smarty supports.
--~--~-~--~~~---~--~~
You received this messa
Thanks for your e-mail!
Users are expected to be familiar with HTML. This templating thing is
mostly aimed at web developpers. The main goal here is security. I
want to prevent them from executing php code on the server.
Max
On May 31, 12:18 am, mbavio <[EMAIL PROTECTED]> wrote:
> Y
e past but I am wondering what has been tried with CakePHP and
works well.
Regards,
Max Deputter
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cak
Just went through the conversation and I think I should start posting
more here from today itself.
A bit harsh though, but benjam did had a point
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To po
;mpeg','3gp','wmv'),
'dir' => '{WWW_ROOT}{DS}uploads{DS}videos'),
'PluginName.Trackable' =>
array(),
= array('User', 'Reviews.Review');
>
> You should do the same when creating associations within the plugin's
> models: PluginName.ModelName.
>
> Good luck.
>
> On Apr 22, 12:59 am, Max <[EMAIL PROTECTED]> wrote:
>
> > Consider a scenario:
>
Consider a scenario:
In file /app/controllers/users_controller.php
//review is the plugin model which is here: /app/plugins/reviews/
models/review.php
var $uses = array('User', 'Review');
function getUserReviews()
{
$reviews = $this->Review->getRecent(); //this will throw sql
error.. any
Just checking... Any thoughts on this, anyone? :)
Thanks,
Max Romantschuk
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegro
>From last few days, I was trying to create plugins which will have CSS/
JS/Images inside them.
I tried .htaccess way, it might work, but that is something which I
dont want to implement as that would be a hack. So basically, I am not
able to find any good solution for the same.
Is anybody here
I'm working on a form for a three-level hasMany relationship.
Conceptually: Book hasMany Chapter hasMany Paragraph. (Model names for
illustrative purposes.)
I'm using the form helper to render my form. The main parent model
(Book) stuff works fine, and I can do the Chapters by supplying
"Chapter.
ility-taking-advantage-of-plugins-in-cakephp/
I've somehow worked with the 'vendors' inside plugin to server css and
js, but that wouldn't be enough when my plugins start gaining weight.
On Apr 15, 3:26 pm, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> O
Are you setting up HABTM between plugin models and app models? ..just
curious.
On Apr 14, 11:34 pm, leafspan <[EMAIL PROTECTED]> wrote:
> Ok, so I've run into an issue that is literally just stupid, and I'm
> baffled.
>
> I have a plugin with several controllers and models, fully
> operational,
>
I've been looking for the very same thing from last few hrs..
Changeset 6189 (https://trac.cakephp.org/changeset/6189) suggests that
JS and CSS support is added, but I cant seem to even access css/js
files inside my plugin directory.
What folder am I supposed to keep inside my plugin folder? webr
es a little bit differently in
Linux distro X... :)
.max
--~--~-~--~~~---~--~~
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 g
docs for details.
Hopefully this is useful to someone else out there! :)
Regards,
Max Romantschuk
http://max.romantschuk.fi/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to th
I'm on a shared host too.
in configure.php
$path = rtrim($path, DS);
if ( $path=='/usr/local/lib/php') continue;//for SAFE MODE
Restriction
if ( $path=='.' || in_array(realpath($path), $used)) {
continue;
}
--~--~-~--~~~--
ED]> wrote:
> On Jan 3, 2008 6:25 PM, Max <[EMAIL PROTECTED]> wrote:
>
> > I was wondering if there's good component/helper or anything is
> > available to support themes in my app.
>
>
>
> http://www.sanisoft.com/blog/2007/12/29/theming-your-cakeph
Hey guys,
I was wondering if there's good component/helper or anything is
available to support themes in my app.
This solution http://abing.gotdns.com/posts/2006/themeable-
view-class-for-cakephp/"here doesnt look too good, as it changes
CakePHP's folder default structure. Please suggest if ther
I recently had this idea which might be the BETTER way to send out
Emails using CakePHP.
http://www.gigapromoters.com/blog/2007/12/11/a-better-way-to-send-emails-than-cakephps-default-email-component/
Looking for your feedbacks..
--~--~-~--~~~---~--~~
You received
I agree with you... Infact, I've been thinking about it from long
time. Its surely a security risk... Though it looks like we are just
exposing the database structure, but its still a confidential
information, which can take attacker to his aim
Cake might be secured enough, but consider some
There's an error with your PHP code
checkboxTag("customer/
f_name",'',array("id"=>"f_name","onclick"=>"enableField()")); ?>
Above should work...
Here's the syntax: checkboxTag ($fieldName, $title=null,
$htmlAttributes=null, $return=false)
On Aug 17, 7:33 pm, Unite <[EMAIL PROTECTED]> wrote:
>
which will help us implement the pre-developed code
easily ? Please share your ideas and do post your methods which you
use to handle it...
Thanks
Max
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP&quo
Hi Guys,
Just to see your opinion... What editor you use to edit/create views ?
I've been using Notepad ever since I started using cake, and now I'm
using Dreamweaver... What about you guys ?
Max
--~--~-~--~~~---~--~~
You received this message becau
Thanks a lot for explanation, Ad and Dan. I guess it will be
interesting to work more with them :)
Max
On Jun 19, 12:00 pm, AD7six <[EMAIL PROTECTED]> wrote:
> On Jun 19, 6:26 am, Max <[EMAIL PROTECTED]> wrote:
>
> > Hi All,
>
> > I've been trying to find m
ation like - why we
use them ? what are the advantages ? etc...
I would appreciate your response. Thanks a lot...
Max
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group
= array('full path to models', 'second full path to
models', 'etc...');
* $viewPaths = array('this path to views', 'second full path to
views', 'etc...');
* $controllerPaths = array('this path to controllers', 'second full
as will be appreciated...
Thanks
Max
--~--~-~--~~~---~--~~
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,
Good work Mariano... Its finally taking a great shape.
On Feb 15, 9:47 am, "Mariano Iglesias" <[EMAIL PROTECTED]>
wrote:
> You asked, and you've got it ;) I've set up a demo to run Cheesecake
> (getting Cheescake "all in one" release on its Cakeforge site, which
> includes CakePHP 1.1.11.4064) on
Do you mind posting some textual information here ? Will be really
helpful for everyone to see...
On Feb 15, 4:00 am, "fredBH" <[EMAIL PROTECTED]> wrote:
> Hi everyone !
>
> I wanna share with u my modified version of decorate( bake script with
> pagination e others stuff ).
>
> The link ishttp:/
Also, I am looking forward to see your contribution so that we can
work together on the project.
On Feb 14, 12:27 am, "Mariano Iglesias" <[EMAIL PROTECTED]>
wrote:
> It's getting even awesomer:
>
> Jake can now be installed/uninstalled by using the Joomla's component
> installation facility.
>
>
Thanks Mariano for extending the project. I can work more on inter-
communication of Joomla components and Jake.
On Feb 14, 12:27 am, "Mariano Iglesias" <[EMAIL PROTECTED]>
wrote:
> It's getting even awesomer:
>
> Jake can now be installed/uninstalled by using the Joomla's component
> installatio
Just posted it: http://www.gigapromoters.com/blog/
On Feb 9, 8:34 pm, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> On 2/9/07, Max <[EMAIL PROTECTED]> wrote:
>
>
>
> > I have successfully done this. Will post soon on my blog...
>
> Hurray!! Do pos
I have successfully done this. Will post soon on my blog...
On Feb 6, 8:48 pm, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> On 2/7/07, timblack1 <[EMAIL PROTECTED]> wrote:
>
>
>
> > The reason is that Joomla components ARE applications. They run in a
>
> Excellent reasons - Do let us know of
Hi Mindchanger,
I will be interested in knowing more about the main requirements
behind this... It looks interesting.
On Feb 9, 1:50 am, "mindcharger" <[EMAIL PROTECTED]> wrote:
> Hi Hawk,
>
> I'm currently developing a system that shares that "dynamic table
> creation" requirement with yours.
>
I believe it will just increase complexity than being more flexible...
However, I would like to know more about your example and why you need
to do this ?
On Feb 8, 1:53 am, "Hawk|" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> i wonder if it would be possible to store the associations in a table
> inst
I am looking for the same solution..
On Feb 8, 12:38 am, Ámon Tamás <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have a site with cake with normal routing (like /controller/action/).
> And I like to make it multilingual. I wondering to change every link to
> /lngcode/controller/action, where is lngc
Yes, you are right Then the component might be more practical to
use.
I'm gonna try it in a few days...
On Jan 30, 1:07 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> On 1/30/07, Max <[EMAIL PROTECTED]> wrote:
>
> > Do you mean all the cake files
Do you mean all the cake files inside the component directory ??
I can try that but what different does it make ?
On Jan 29, 9:29 pm, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> On 1/30/07, Max <[EMAIL PROTECTED]> wrote:
>
>
>
> > I
I'm sure you would like to see this:
http://www.gigapromoters.com/blog/2007/01/28/joining-powers-of-two-
great-systems-joomla-and-cakephp/
On Jan 11, 9:42 am, "timblack1" <[EMAIL PROTECTED]> wrote:
> I'll let you all know here once I've got my own component working with
> Cake inside, and I'll ta
Are you getting 404 error ?
If so, then I would suggest you to check the mod_rewrite again.
--~--~-~--~~~---~--~~
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@googlegrou
You can paste full code here.. This must not be a big problem..
BTW, Did you ever used 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@googleg
If each release has not more than 5 styles, then its fine to use this
one. However, I would personally recommend 'hasAndBelongsToMany' since
it will provide flexibility to my system in case I decide to have 6 or
more 'styles' later.
--~--~-~--~~~---~--~~
You rece
82 matches
Mail list logo