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] =
= $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) {
$findPlayer = $this-Player-find('first', array
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,
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
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
should both return/contain the full user information -
i.e. all fields from the users DB table. This behaviour is
strange. Can you provide more info on your exact implementation.
Cheers,
Borislav.
On Wednesday, 20 June 2012 00:36:24 UTC+3, Max Dörfler wrote:
http
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 first and
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:
-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 Android Phone but when I try to use
On 25 Mai, 08:46, luca capra luca.ca...@gmail.com 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 permission
sudo chown
On 25 Mai, 15:22, Mike Griffin griff...@gmail.com 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
= 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 for the community: CakePHP Video Tutorials
http://tv.cakephp.org
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:~/akk/cake
I'm not getting through a login now... if i try to
debug $this-CoreAuth at any point during the login process, Auth
doesnt appear to be instantiated at all... inheritance hasn't occurred
after extending it in CoreAuthComponent.
Some guidance would be appreciated.
Max
--
Our newest site
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 the user to go into the attribute
countercache and then just add
post_count 0 to conditions... if you cant zdf countercache for some
reason you could also inner join the posts Table, which would leave
all blogs that have no assocciated post...
On 1 Nov., 18:29, Max D max.doerf...@googlemail.com wrote:
Hi,
i use cake 1.3
.
Any ideas how I can achieve this?
Thanks in advance
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 group.
To post to this group, send email
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
Check out the new
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 with this issue
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
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 free for deletion
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 isAuthorized
for 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 access
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(
'Link' = array
', 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 easier way.
Regards
Max
Am 17.08.2010 10:39, schrieb Konstantin:
Hello!
I have a settings table and I want
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 a users
details from
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 group.
To post to this group, send email to cake-php@googlegroups.com
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 kann es via hasMany auf Friends (friends) zugreifen
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
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 because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe
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 k...@kirkkahn.com wrote:
Why are
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, Dinu464dineshsu...@gmail.com wrote:
1) XAMPP 1.7.3 setup and workinghttp://localhost/xampp/-
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 b2 ORDER BY b
How I can add USE INDEX into
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
I use Komodo edit too, it's a great editor I recommend it ;D
On Mar 4, 5:43 pm, uristar robert.rusz...@gmail.com wrote:
Komodo :)http://www.activestate.com/komodo_edit/
On Mar 1, 10:35 pm, Samuel DeVore sdev...@gmail.com wrote:
a tutu and go go boots
On Sun, Mar 1, 2009 at 12:34 PM,
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
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:
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
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
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/.
It doesnt do string modifiers
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
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:
Your users
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 cake-php@googlegroups.com
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
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:
In file /app/controllers/users_controller.php
//review is the plugin model which is here: /app/plugins/reviews/
models
}videos'),
'PluginName.Trackable' =
array(),
);
This trackable behavior is inside some plugin.. so, will it work?
doesnt look like so.
On Apr 24, 7:04 am, Max [EMAIL PROTECTED] wrote:
Great info... Thanks
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@googlegroups.com
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
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
-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:
On Tue, Apr 15, 2008 at 12:40 AM, Max [EMAIL PROTECTED
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?
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,
... :)
.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, send email to [EMAIL PROTECTED]
For more options
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 this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send
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;
}
, Max [EMAIL PROTECTED] wrote:
I was wondering if there's good component/helper or anything is
available to support themes in my app.
shameless plug
http://www.sanisoft.com/blog/2007/12/29/theming-your-cakephp-apps-v12/
/shameless plug
Are you looking for something else?
Cheers
Tarique
Hey guys,
I was wondering if there's good component/helper or anything is
available to support themes in my app.
This solution a href=http://abing.gotdns.com/posts/2006/themeable-
view-class-for-cakephp/here/a doesnt look too good, as it changes
CakePHP's folder default structure. Please
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
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
?php echo $html-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:
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 group.
To post
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 because you
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 more about behaviors to start with them. But
I
- 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, send email to cake-php
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, send email to [EMAIL PROTECTED
= 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
path to controllers', 'etc...');
*
*/
On Feb 22, 7:38 pm, Max [EMAIL PROTECTED
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
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)
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
installation
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.
I'm now
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 post a link when you post to your blog
Cheers
Tarique
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.
As far as
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 lngcode is
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
instead of
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 inside the component directory ??
I can try
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'm sure you would like to see this:
http://www.gigapromoters.com
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 take
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
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
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
80 matches
Mail list logo