Hey Frederik
check out the replies I gave you on the blog post ... grouping is
quite easy actually, all you need to do is change the datastore into a
GroupingStore and give it a groupField (ie. what field to group by).
Ext will take care of the rest ...
wirtsi
On 30 Aug., 07:00, FrederickD wro
Not very positive, but you would have to edit the core cake files,
which you should never do.
So you either have to deal with the someAction URL or just deal with
writing it as some_action.
Someone clarify if I am wrong.
On Aug 31, 10:52 pm, Raph wrote:
> Yes - I know. But I would like it to b
Yes - I know. But I would like it to be "/some_controller/some_action"
without changing methods names.
On 1 Wrz, 02:08, Miles J wrote:
> Your URL would simply be /some_controller/someAction/.
--~--~-~--~~~---~--~~
You received this message because you are subscrib
Hi,
I've an app generating reports in xls/pdf/html. I want to add new
feature so that user can create those reports in background (scheduled
by cron). I plan to use shell but need to re-use the same View/Element
I've made earlier. Is there any way to do it?
Thanks in advance.
--~--~-~--~
I did an install of CakePHP on my local device (Windows XP) with an
Apache server. I did the install to the letter as far as I can tell
(removed comment in front of mod_rewrite's load module statement), but
I'm getting a welcome page with no layout. And it seems like the whole
page isn't even sho
The only things that look odd are 'Prioridad' (should be lowercase?)
and 'order'=>'ORDER BY RAND()'. I think that should be just
'order'=>'RAND()', but I could be wrong.
Looking at line 21 of 8166, there are 2 properties that it may be
failing on. I'd add these lines just above 921:
die(debug($t
The model file names should be singular -- client.php, contact.php.
On Mon, Aug 31, 2009 at 4:09 PM, mdrisser wrote:
>
> Hi all, I am officially completely stumped. I cannot seem to get
> associations to work at all, here is my code:
>
> clients table
> mysql> DESCRIBE clients;
> +---+---
What I meant was that perhaps an enhancement ticket should be opened
to have the core changed.
On Mon, Aug 31, 2009 at 4:54 PM, Aivaras wrote:
> Or just create a custom validation rule, where you can add your own regexp -
> remember, that not changing the core will always be so helpful sooner or
Your URL would simply be /some_controller/someAction/.
--~--~-~--~~~---~--~~
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, se
found it, i've added ~E_DEPRECATED for php5.3 and then switched back
to 5.2, this was the root of the problem
On Aug 31, 8:06 pm, brian wrote:
> Set debug = 2. Also, use:
>
> error_reporting(E_ALL);
> ini_set('display_errors', '1');
>
> ... in order to have PHP show something in the browser. If
this is all done
all logs are empty, only Notice: Use of undefined constant
E_DEPRECATED - assumed 'E_DEPRECATED' in /var/www/nginx-default/cake/
libs/configure.php on line 295
is hown even if there is a fatal error after that
On Aug 31, 8:06 pm, brian wrote:
> Set debug = 2. Also, use:
>
> erro
> oh, I get what you mean. You want to display different content for loggen in
> and guest users.
>
> You know, it's so hard to do that, but the key to cakePHP is that you
> actually need to think simple. I mean not programmer's simple, but - simple.
>
> What I did is I used a different layout!
g
I would like to urls in my app were look like "/some_controller/
some_action". The problem is I use camel-case methods naming
conventions, so I would have class "SomeControllerController" with
method "someAction()". Actually I like this convention and I don't
want to change it. In this case "/some
I have a problem with a hasMany relationship. Locally everything works
fine, but when I upload files to the server I get the following error
Fatal error: Cannot access empty property in /sitiotmp/www2/nuevositio/
cake/libs/model/model.php on line 921
I'm using cake 1.2.3.8166
My models with de
Hi all, I am officially completely stumped. I cannot seem to get
associations to work at all, here is my code:
clients table
mysql> DESCRIBE clients;
+---+--+--+-+-+---+
| Field | Type | Null | Key | Default | Extra |
+---+--
Hello Martin,
Thank you for the answer, indeed that approach worked brilliantly.
$app = new App();
On Aug 31, 10:04 am, Martin Westin wrote:
> It really is as simple as Felix writes. It is just that his post is
> from 2006 and a few details have changed.
>
> I just tried this on 1.2 stable and
Coffee, and very understanding girlfriends/boyfriends/husbands/
wives ;-).
On Aug 31, 12:08 pm, d wrote:
> how do you guys find the time? seriously. you people are awesome.
>
> On Aug 31, 7:19 am, jperras wrote:
>
> > Alright guys, it seems like you're all a bit confused.
>
> > If you only read
Yep, indeed, symlink would be an elegant solution!
On Mon, Aug 31, 2009 at 22:52, Aivaras wrote:
> indeed, defining it is so simple! On the other hand you can still create a
> symlink from /var/www/app_name/logs/ to app_path/tmp/logs.
>
> I bet that will work like a charm if you have +Options
>
Or just create a custom validation rule, where you can add your own regexp -
remember, that not changing the core will always be so helpful sooner or
later ;)
Faifas
http://www.voveris.eu/
On Mon, Aug 31, 2009 at 18:58, brian wrote:
>
> It looks like the Validation regex needs to be updated. T
indeed, defining it is so simple! On the other hand you can still create a
symlink from /var/www/app_name/logs/ to app_path/tmp/logs.
I bet that will work like a charm if you have +Options
FollowSymlinksOnOwnerMatch also ;)
Faifas
http://www.voveris.eu/
On Mon, Aug 31, 2009 at 23:16, Crazy wro
oh, I get what you mean. You want to display different content for loggen in
and guest users.
You know, it's so hard to do that, but the key to cakePHP is that you
actually need to think simple. I mean not programmer's simple, but - simple.
What I did is I used a different layout! Sounds crazy, b
Yay! The query works! :)
Thank you! I really appreciate your patience. :)
Thanks for your time and knowledge!
~Sarah
On Aug 30, 11:07 pm, delocalizer wrote:
> now I understand, you want associated user & animal info for all
> specified Userpages...
> so as I suggested before, do the find
Thanks, that's just what I was looking for.
I'll just define the TMP, to /var//
On Aug 31, 4:12 pm, Kornelije Sajler wrote:
> There is a LOGS constant for Paths in CakePHP. You can find it in your
> cake_1.2.4.8284/cake/config/paths.php default is:
> define('LOGS', TMP.'logs'.DS);
>
> TMP = if
Regarding the mimetype, it allows all mimetypes listed in the config
folder. If you want to restrict the type, use the file validation
behavior.
For the second part of your question. You would do a normal controller
action setup like /files/download/1 and then use the media view and
your own logi
Hi everyone,
I've read through all the various posts regarding losing session data
on redirects. Tried most everything, including
* Setting security to low
* Toggled useragent check off
* Tried starting session manually
* Within redirect function and commented out anything regarding
sessions
*
hi Nancy
yes :) . i test this and understand that we can store array into
session :).
thanks for your reply.
On Aug 31, 8:25 pm, Nancy wrote:
> Have you tried it? It does store it as a string but seems to recreate
> it as an array when you read it back in. At least, I tried it
> yesterday an
Have you tried it? It does store it as a string but seems to recreate
it as an array when you read it back in. At least, I tried it
yesterday and it seemed to do the right thing.
On Aug 28, 1:31 am, persianshadow wrote:
> hi
>
> i want store array of ids into session but i explore API of cakep
Hey,
yeah that's what I intend to do. I used your Uploader to upload files
for testing purposes, this works well, BUT I think that the allowed
mimetypes are not working as they should. I can upload ANY file,
although I allowed only JPEG and GIF to the plugin. That's a bit
weird, but I'm sure I'll
I need to add a custom validation rule but cant quite figure out how to do
it.
The field being validated has to be unique specific to the user. So User1
can use 'foo' , User2 can use 'foo' but each user cannot use 'foo' twice.
What would be the best way to handle something like this?
Dave
-
Hi guys
thanks you all for this information. Finally I think I'll move forward with
this line:
input('', array('label' => 'URL', 'id' => '', 'name' =>
'data[Blogurl][url][]')); ?>
Anyway I need to check how it works once it's POSTed.
If this succeeds OK I'll send you the relevant part of the v
Do you have your own AppHelper defined? I saw a tip once for getting
HTML output with newlines:
class AppHelper extends Helper
{
function output($string)
{
return parent::output("${string}\n");
}
}
Maybe that's the problem? In any case, the newlines should
Yeah but thats pretty pointless if your just uploading images.
But yes what you said would be the ideal situation if you want to do a
download system, or supply files to users.
On Aug 31, 4:56 am, Stinkbug wrote:
> There is one thing to keep in mind when uploading files and that's the
> securit
how do you guys find the time? seriously. you people are awesome.
On Aug 31, 7:19 am, jperras wrote:
> Alright guys, it seems like you're all a bit confused.
>
> If you only read one line of this entire post, read this: CakePHP 1.3 !
> = Cake3
>
> Now, while this may seem obvious to many, you g
Set debug = 2. Also, use:
error_reporting(E_ALL);
ini_set('display_errors', '1');
... in order to have PHP show something in the browser. If you can,
check Apache's error log.
On Mon, Aug 31, 2009 at 8:16 AM, XuMiX wrote:
>
> Unable to find the root of the problem. My cake install does not show
It looks like the Validation regex needs to be updated. This:
$_this->regex = '/\\A\\b[A-Z]{1,2}[0-9][A-Z0-9]?
[0-9][ABD-HJLNP-UW-Z]{2}\\b\\z/i';
should be:
$_this->regex =
'/\\A\\b[A-Z]{1,2}[0-9][A-Z0-9]?[\s]?[0-9][ABD-HJLNP-UW-Z]{2}\\b\\z/i';
Ditto for the Canadian one.
On Mon, Aug 31, 2009
Might be worth checking this link out
http://www.jamesfairhurst.co.uk/posts/view/compressing_jquery_javascript_with_php/
2009/8/31 Dr. Loboto
>
> Or place prototype and scriptaculous back into header and deal with
> load time by cache or do not use ajax helper and write your own
> javascript co
Hi Mark
yes, that's very possible ... the panels are the bread and butter
component of Ext. You can have them either managed by a layout manager
or you can append them to any div you want.
Check out the demos on the Ext site to see what else you can do with
them ...
wirtsi
On 27 Aug., 08:04, M
Or place prototype and scriptaculous back into header and deal with
load time by cache or do not use ajax helper and write your own
javascript code that can live in such conditions.
On Aug 31, 8:00 pm, persianshadow wrote:
> hi
>
> i using prototype and scriptaculous in my project but these fram
Your function does all right - alphanumeric values only as you did
nothing with it.
'/^[a-zA-Z0-9_-]+$/'
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@
It is not normal behavior. Check PHP files (not views/elements) for
whitespace before/after tags - remove it if find. Check
for files saved in UTF-8 with BOM mark - remove it if find. You can
try just update your cake to not check its files for modifications and
only check your ones.
On Aug 31,
There is a LOGS constant for Paths in CakePHP. You can find it in your
cake_1.2.4.8284/cake/config/paths.php default is:
define('LOGS', TMP.'logs'.DS);
TMP = if (!defined('TMP')) {
define('TMP', APP.'tmp'.DS);
}
DS = define('DS', DIRECTORY_SEPARATOR);
I wouldn't change that!
So you have two choic
i know that but i want change general route '/' so yes your trick
witch redirect working after user did login but after even go to /
load default general route from /
but i'll try user Route::conntect in login() :)
On 31 Sie, 10:32, Aivaras wrote:
> Hey,
>
> did you take a look at thishttp://bo
Hi folks,
I can't use a View for the union query as it requires parameters. Even
if I take away the fulltext, and then do a fulltext search on the
view, MySQL can't then delegate the indexes across the union within
the view, so it doesn't work. Any more ideas or sample pieces of code
would be app
Alright guys, it seems like you're all a bit confused.
If you only read one line of this entire post, read this: CakePHP 1.3 !
= Cake3
Now, while this may seem obvious to many, you guys have made the same
mistake that I've seen a few times on the #cakephp channel. The first
is a branch in the ca
Alright guys, it seems like you're all a bit confused.
If you only read one line of this entire post, read this: CakePHP 1.3 !
= Cake3
Now, while this may seem obvious to many, you guys have made the same
mistake that I've seen a few times on the #cakephp channel. The first
is a branch in the ca
Hi,
In one of my projects it's required that the log files are being
logged to /var/logs/
I was wondering if it was possible to change the default location of
app/tmp/logs?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Generally you can just replace your cake folder with the new one or do
a pull if you use Git.
Unless you were having problems with some specific feature you are
unlikely to notice the changes as they are just to correct for less
common bugs that were not caught in beta. A number of changes to the
Well I don"t know why but I tried this with the bake console and Cake
just replace my
$conjoints = $this->Membre->Conjoint->find('list');
by my adress association
$adresses = $this->Membre->Adress->find('list');
So I wasn't able to have the both lines with the bake console..
Then, I j
hi
i using prototype and scriptaculous in my project but these frameworks
are heavy size and
final pages load very slow , i searching for find solution for this
problem , i want put these
framework in bottom of my layout (near close body tag) but after this
work , ajax method and
scriptaculous
I'm talking about the upgrade from the 2nd latest stable release
(1.2.3) to the latest stable (1.2.4).
There seem to be a lot of differences between the files, at least
that's what I get when using WinMerge to compare the files.
On 31 Aug., 13:13, Martin Westin wrote:
> I am not sure you mean v
Unable to find the root of the problem. My cake install does not show
any errors to browser in case of critical error.
But errors from DB queries are shown as usual. Where should I dig?
Php logging is enabled, those fatal errors are not logged even in the
log file.
--~--~-~--~~
Are you sure? It looks ok to me.
How do you check that it does not work? If you try: $this->Member-
>Conjoint->find('count'); that should throw a non-object warning if it
does not work.
Sorry, I can't suggest anything else since it does look like an ok
association.
/Martin
On Aug 31, 1:37 pm, B
There is one thing to keep in mind when uploading files and that's the
security risks in uploading files to the webroot where people can
access them directly. It's generally recommended to upload files to a
directory outside of the webservers document root and give them a
unique name, so that the
Hey guys,
Having a weird problem here... In my validation everything was working fine
except now I needed to change the first + surname validation fields to allow
for spaces + dashes. It was originally just working on only alphanumeric
characters. The dashes + underscores was an extra addition adde
Hi !
I figured an issue and I'm turning around to find the solution..
I have a Member table and each member can have one (only) other member
as partner.
So I want to make a self-join with the table Member to say that my
foreign key itn my member_model 'partner_id' point to another member
from th
I am not sure you mean version 1.1 to 1.2 or every small update like
1.2.3 to 1.2.4?
I will assume you are talking about possible incompatibilities between
versions and updated "cake files" in the app dir.
Small updates to the stable 1.2 will probably not ever change any file
in the app director
Hi Fabio -
same way you would do for any array - look at the output from this:
foreach (data['Amenity'] as $key => $value){
echo "key: ".$key."";
echo "name: ".$value[name]."";
}
On Aug 31, 8:01 pm, fabio <3bi...@gmail.com> wrote:
> Dears delocalizer and DrLoboto,
>
> tnx for your suggestio
Hi
I've got a model that uses
'rule'=>array('postal',null,'uk')
to successfully validate UK postcodes.
However testing has shown that many people enter their postcodes in
forms without using the space, so:
W1W 5QU <-- validates
W1W5QU <-- does not validate
Has anyone got any tips on gettin
Dears delocalizer and DrLoboto,
tnx for your suggestions... i'm working in that way now but i hade
some difficulties...
Basically I have this portion of the $form array:
[Amenity] => Array
(
[0] => Array
(
Anybody? I have now started seeing this with other helpers, such as
time, when I have a comma or fullstop appearing after the html the
helper generates.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group
That's fair enough, the problem is not with CakePHP it's with a poorly
designed legacy schema. Good luck with that ;o)
I just get all protective when people come bashing Cake for things
that are not its fault!
--~--~-~--~~~---~--~~
You received this message becaus
Been a while since I did this but as CakePHP uses the id of each
record as the key I think I did
$array[0] => 'value';
ksort($array);
Should work as you can't have a primary key of 0 so it should always
sort to first, actually this would mess with an array sorted by a-z
values.
Ok, how about ..
yes that worked, it was the debug output that was confusing me, it
interpreted that string as an Array for some reason..
On Aug 31, 9:58 am, Aivaras wrote:
> Ever tried $this->Email->to = '@user.com, t...@user.com';// ?
>
> Faifas
>
> On Mon, Aug 31, 2009 at 09:56, Brendon Gleeson wrote:
>
>
I have a slight workaround at the moment... I'm converting the area geometry
box to a text field and then performing the search
$area = $this->Property->Seller->Agency->Channel->Area->find('first',
array(
'conditions' => array('Area.id' => $areaId),
'fields' => 'AsText(Exterio
I have a ajax application form , i need to add state country select
boxes to it (again using ajax)
in my view file every thing goes fine if i use
///apply.ctp
echo $form->create('User');
echo $form->select('country_id',array($countries),null,array
('id'=>'countries'),false);
echo $form->select('
Hey,
did you take a look at this http://book.cakephp.org/view/391/loginAction ?
Faifas
On Mon, Aug 31, 2009 at 11:05, andrzejborkow...@gmail.com <
andrzejborkow...@gmail.com> wrote:
>
> i want to change default route after login my users, i try like this:
>
> [/project/app_controller.php]
> pu
Hi,
is there any tutorial available how to upgrade to the latest Cake PHP
build? Or is this a task everybody has to do "by hand" by checking
every file manually what has changed?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goo
Hi there,
No, properties do not have an associated area ID. Properties are located via
their location_id.
Area ID's are used in another portion of the site but in this case it is
necessary to do a search on area's instead of locations.
Lemme give the full picture to explain it more...
Properties
Ever tried $this->Email->to = 'o...@user.com, t...@user.com';// ?
Faifas
On Mon, Aug 31, 2009 at 09:56, Brendon Gleeson wrote:
>
> How do I specify multiple $to addresses in the email component? when I
> specify a comma separated string the mail debug indicates "Array"
> instead of a string?
>
i want to change default route after login my users, i try like this:
[/project/app_controller.php]
public function beforeFilter() {
(...)
if($this->Auth->user()){
Router::connect('/', array('controller' => 'users', 'action'
=> 'profile'));
Router::promote(
Well,
you could change links to make them more SEO friendly, for example
/portfolio_projects/520/topper-08 would be more effective than
/portfolio_projects/view/520, but other stuff looks good!
Cheers,
Faifas
On Mon, Aug 31, 2009 at 01:20, Enrique wrote:
>
> Thanks a lot!
> The design was not
It really is as simple as Felix writes. It is just that his post is
from 2006 and a few details have changed.
I just tried this on 1.2 stable and it does work:
$_GET['url'] = 'favicon.ico';
require_once('path_to_app_dir'.DS.'webroot'.DS.'index.php');
// and then for example:
$PostModel =& Class
72 matches
Mail list logo