After more thorough debugging, I've come to the conclusion that the
above IF test - if (!isset($Model->data[$Model->alias]['file'])) is
true, because in plugins/media/models/behaviors/transfer.php:213 there
are these lines:
if (TransferValidation::blank($file)) {
l behaviors'
callbacks have been executed
Am I failing to configure something so that new records do not depend
on the file being uploaded?
Thanks in advance!
Greetings,
Nasko
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
Have you read the Frequent discussions page:
http://groups.google.com/group/cake-php/web/frequent-discussions?hl=en
There are a bunch of useful links to articles regarding various
problems experienced repeatedly - your case is one of them. Scroll
down to 'How to retain search param in paging?', I
Why don't you try using a debugger:
VIM & Xdebug:
http://tech.blog.box.net/2007/06/20/how-to-debug-php-with-vim-and-xdebug-on-linux/
Notepad++ & Xdebug (DBGP Plugin for Notepad++):
http://sourceforge.net/project/showfiles.php?group_id=189927&package_id=236520
Eclipse PDT & Zend debugger:
http:/
Should be:
echo $form->input("User.username", array("label" =>
"Benutzername")); // 'User.username' vs. 'username'
On Apr 4, 10:06 pm, Tomka <[EMAIL PROTECTED]> wrote:
> Hello.
>
> I have a model "User" which I use with the Auth-component for Login to
> the admin-area.
> I also hava an UserContr
f('username' == $sortKey) {
if(!empty($this->params['named']['sort'])) {
switch($this->params['named']['sort']) {
case 'Sender.username':
$sender_options['class'] = $sortDir;
grigri,
I've upgraded my CakePHP core to current beta: rev. 6311 and can
verify that what you suggested works just fine!
AD7six, grigri, thank you both for your help!
On Feb 11, 2:24 pm, grigri <[EMAIL PROTECTED]> wrote:
> What version are you using? I just did a quick test using my
> playgroun
I'm using rev. 5693. Didn't want to upgrade whenever a newer revision
appeared in the branch, and when the pre-beta was released we were
close to finishing the project - I didn't want to take the risk of
missing deadlines by fixing backward inconsistencies, etc.
Your example produced identical er
grigri,
I tried this an got this SQL query:
SELECT Array, 1, COUNT(DISTINCT User.id) AS count, `User`.,
`User`.`id` FROM `users` AS `User` LEFT JOIN `groups` AS `Group` ON
(`User`.`group_id` = `Group`.`id`) LEFT JOIN `genders` AS `Gender` ON
(`User`.`gender_id` = `Gender`.`id`) LEFT JOIN `countr
Andy, thank you for your input!
Okay now I feel like a total **rk for asking something that has been
a) explained so well in a discussion and b) stuck in the frequent
discussion page :) The thing is I've actually read that specific
discussion (plus a bunch of other threads/articles), but because
conditions. It just doesn't feel right to use something like:
$filterConditions = array(
'Post.active' => 1,
'Post.user_id' => $user_id,
'CategoryPost.category_id' => $cat1_id,
'CategoryPost.
org/projects/noswad
and download the 1.1 Pagination demos package. There are alternative
controllers/views bundled for different use scenarios in it. This has
been a tremendous source of help for me, so I think you should be able
to borrow an idea from them.
Greetings,
Nasko
On 22 Ян, 11:18, bhusha
Have you read the second page of the article you were referring to?
There are links to online demos by AD7Six in it.
Anyways, I think the answer you're looking for can be found here:
http://www.ad7six.com/Pagination/Named
Use the 'show' param and make sure it's not listed in 'privateParams'.
HTH
nate, Sam D: thank you for your replies!
> could be this one
> http://othy.wordpress.com/2006/06/03/unbind-all-associations-except-s...
> Sam D
Yes, I'm using Oth's method mainly in an effort to optimize my
applications as a last phase - to remove unnecessary DB queries. I
didn't feel it was wor
Could anyone help me out with this one? I'm really stuck :-(
--~--~-~--~~~---~--~~
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 gr
Sorry, I forgot to specify:
I'm using CakePHP 1.2 rev. 5693 from the branches.
--~--~-~--~~~---~--~~
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 unsub
oing');
$this->log($incoming_requests, 'incoming');
}
[app/tmp/logs/incoming.log]
Array
(
[0] => Array
(
[UserFriend] => Array
(
[id] => 3
[user_id] => 3
[friend
idelines only. You
should definitely read through the wonderful othAuth documentation.
It's all in there :)
Regards,
Nasko
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this gro
=> 'aphrazeofyourchoice',
'noaccess_page' => '/admin/users/noaccess',
'strict_gid_check' => false,
);
This way, if someone tries: http://mydomain.com/admin/ and is not
currently identified as a user with the corr
> So your answer is the same as mine.
Well, you could have used 3 or 4 intermediate variables along the way
and that piece of code would still have worked. This doesn't make my
answer the same as yours.
> You can't use these variables directly in the controllers.
Why not?
--~--~-~--~-
> I think that $this->set function create a variable in the view and you
> can't use it in the controller.
>
Yes, you can:
$this->set('products', $whatever);
pr($this->viewVars['products']);
--~--~-~--~~~---~--~~
You received this message because you are subsc
On Jun 21, 6:06 pm, Nasko <[EMAIL PROTECTED]> wrote:
> Unfortunately, defining the fake model association in the Bookmarks
> model caused the normal $this->Bookmark->findAll() requests in other
> actions to return multiple records for each bookmark :(
As advised by AD7six
Chris, we've cross-posted :)
> I'd go with Adam's suggestion of creating a method in your models to
> do the binding for you when you need it, and also don't set recursive
> so high and I think that should prevent the duplicate records coming
> back.
yes, I just did that.
I've set recursive = 2
Unfortunately, defining the fake model association in the Bookmarks
model caused the normal $this->Bookmark->findAll() requests in other
actions to return multiple records for each bookmark :(
> Note, that I didn't use bindModel() on the fly, because I couldn't
> find a way to make the binding
$this->Pagination-
>init($constraint, null, $this->pagerSettings);
$tempBookmarks = $this->Bookmark->findAll($constraint, NULL,
$order, $limit, $page);
foreach($tempBookmarks as $key => $row) {
$tempBookmarks[$key]['Bookmark']['tagString
VIM +
PHP syntax highlighting
Bufexplorer
NERD_tree
Taglist
CTags w/ custom tag definitions to catch //TODO, //FIXME, etc.
This gives me pretty much the same experience that I've had using ZDE.
I only switch occasionally to ZDE when I need some deep debugging for
I haven't been able to get VIM t
... but I couldn't get it to work for me, so I used a non-admin action
for this - Image::upload()
I didn't have similar issues with the ajax request made for rotating
the images.
On Jun 2, 9:10 am, Nasko <[EMAIL PROTECTED]> wrote:
> @al
@all:
Thanks guys, I'll let you know how I tackled this :-)
--~--~-~--~~~---~--~~
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
On Jun 1, 7:07 pm, Joshua McFarren <[EMAIL PROTECTED]> wrote:
> Don't mean to hijack the thread but could you post some links to the
> gallery tutorials you found? This would be really helpful to me and
> probably others.
Sure:
http://web.archive.org/web/20060427223358/http://wiki.cakephp.org/t
Hello,
This is my second CakePHP-driven project, so I'm a newbie. I'm
building an image gallery, where images can be tagged.
Before someone curses me - I did search the old wiki archives, the
bakery and this group's discussions and have already read several
gallery tutorials. However, I have a fe
30 matches
Mail list logo